0% found this document useful (0 votes)
44 views27 pages

MCQ Unit 1

Uploaded by

legal1008data
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views27 pages

MCQ Unit 1

Uploaded by

legal1008data
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

303-Database Handling Using Python SY BCA SEM 3

MCQ : UNIT-1 Introduction to SQLite


Que.1)SQLite is a ?
A. NoSQL database
B. Distributed database
C. Relational database
D. Operational database
Ans.C

Que.2)SQLite written in?


A. C++
B. C
C. JAVA
D. Python
Ans.B

Que.3)SQLite is an in-process library that implements a?


A. self-contained
B. serverless
C. zero-configuration
D. All the mentioned
Ans.D

Que.4)Which command is used to modifies an existing database object, such as a table?


A. Create
B. Alter
C. Drop
D. Modify
Ans.B

Que.5)Does SQLite is case insensitive?


A. True
B. False
C. Can be true or false
D. Can not say
Ans.A

Que.6)Which of the following command is true regarding ROLLBACK Statement?


A. ROLLBACK;
B. ROLLBACK TO SAVEPOINT savepoint_name;
C. None
D. ROLLBACK TO savepoint_name;
Ans.C
303-Database Handling Using Python SY BCA SEM 3

Que.7)what is SQL?
A. Structured Query Language
B. Structured Question Language
C. Structured Query Level
D. Sturctued Query Lavels
Ans.A

Que.8)What is SQLite?
A. Stracture Query Language
B. Structure Question Language
C. Embeddable Relational Database Management System
D. Standalone Query Langauge
Ans.C

Que.9)Explain DML
A. Data Maintain Language
B. Date Manipulation Language
C. Data Multiple Language
D. Data ManipulDation Language
Ans.D

Que.10)Real Data Types Storage Classes is :


A. 8 Bytes
B. 2 Bytes
C. 4 Bytes
D. 16 Bytes
Ans.A

Que.11)BLOB data types is useful for


A. Numeric Value
B. Null Value
C. storage large files of Images or Text
D. stores text strings
Ans.C

Que.12)Which of the following Join is an alternative of Inner join?


A. Outer Join
B. Natural Join
C. Cross Join
D. Self Join
Ans.B

Que.13)SQLite is a
A. NoSQL database
303-Database Handling Using Python SY BCA SEM 3

B. Distributed database
C. Relational database
D. Operational database
Ans.Option c: SQLite is a relational database management system

Que.14)Which command is used to modify an existing database object, such as a table?


A. Create
B. Alter
C. Drop
D. Modify
Ans.B. Alter

Que.15)Any column can still store any type of data but the preferred storage class for a column is
called its?
A. Affinity
B. Type affinity
C. Column store
D. Type storage
Ans.A. Affinity

Que.16)Which of the following is true with respect to Order By


A. When a mixed-type column is sorted, NULLs will be sorted to the Bottom.
B. When a mixed-type column is sorted, NULLs will not get sorted
C. When a mixed-type column is sorted, NULLs will be sorted to the top.
D. None of the above
Ans.C

Que.17)SQLite is written in?


A. C++
B. C
C. Java
D. Python
Ans.B. C

Que.18)We can write sub-query in


A. where clause
B. select clause
C. from clause
D. all of the above
Ans.D

Que.19)Where can we store data using SQLite?


A. Local
B. Global
C. Server
303-Database Handling Using Python SY BCA SEM 3

D. None of the above


Ans.A. Local

Que.20)Which of the following query give RIGHT JOIN in SQLite ?


A. select A2.name,B1.name from A2 RIGHT JOIN B1 using(name);
B. select A2.name,B1.name from A2 LEFT JOIN B1 using(name);
C. select B1.name,A2.name from A2 LEFT JOIN B1 using(name);
D. select B1.name,A2.name from A2 RIGHT JOIN B1 using(name);
Ans.C

Que.21)Feature of SQLite includes


A. Serverless
B. Self-contained
C. Zero Configuration
D. All of the above
Ans.D

Que.22)What is type affinity?


A. Column can store fixed sized data
B. Column can store any data of any type
C. Column can store any type of data preferred by its storage class.
D. Column can store everything in string type
Ans.C

Que.23)Which of the following is true to open Database in SQLite?


A. .open <DBname>
B. .databases <DBName>
C. open Database <DBName>
D. None of the above
Ans.A

Que.24).schema command is used to


A. View table data
B. view table structure
C. view table list
D. view database list
Ans.B

Que.25)Which of the following is not Storage Class?


A. Number
B. Integer
C. BLOB
D. Text
Ans.A
303-Database Handling Using Python SY BCA SEM 3

Que.26)What will be the output of following query : select * from EMP order by ename limit 2,3;
A. first all records are arranged in ascending order of ename column and then only display
only 3rd, 4th and 5th records from this ordered data
B. first all records are arranged in ascending order of ename column and then only display
only 4th and 5th records from this ordered data
C. First fetch only 4th and 5th records from EMP and then display in ascending order of
ename column
D. First fetch only 3rd, 4th and 5th records from EMP table and then display in ascending
order of ename column
Ans.A

Que.27)SQLite uses a dynamic typing technique also known as ________? Any column can still store
any type of data but the preferred storage class for a column is called its _______?
A. Affinity typing, Private storage
B. Manifest typing, Affinity
C. Affinity typing, Manifest
D. Storage typing, Private storage
Ans.B

Que.28)Which column can be used equivalent of AUTOINCREMENT ?


A. INT PRIMARY KEY
B. INT
C. PRIMARY KEY
D. INTEGER PRIMARY KEY
Ans.D

Que.29)Which of the following statements can be used to disable auto-commit mode and control
transactions based on our requirements ?
A. disable auto-commit;
B. begin...commit and begin...rollback
C. pragma auto_commit off;
D. auto_commit to user;
Ans.B

Que.30)Which kind of SQLite database is ?


A. NoSQL Database
B. Distributed Database
C. Relational Database
D. Operational Database
Ans.C

Que.31)Which are the features of SQLite?


A. Server-less & Self-Contained
B. Zero-configuration
303-Database Handling Using Python SY BCA SEM 3

C. Transactional
D. All Of the Above
Ans.D

Que.32)SQLite written in which basic language?


A. C++
B. ANSI-C
C. JAVA
D. PYTHON
Ans.B

Que.33)Which Data type is ALL


A. nan
B. INTEGER
C. TEXT
D. All of the Above
Ans.D

Que.34)Which SQLite keyword is used to combine result of query from more than one tables of a
database?
A. IN
B. JOIN
C. BETWEEN
D. SELECT INTO
Ans.B

Que.35)In SQLite, which command is used to Enable/Disable a database Trigger?


A. ALTER TRIGGER
B. ALTER DATABASE
C. ALTER TABLE
D. MODIFY TRIGGER
Ans.A

Que.36)In which of the operation trigger is not specified?


A. INSERT
B. UPDATE
C. DELETE
D. ALTER
Ans.D

Que.37)Which of the keyword used to display the unique values of the column in SQLite?
A. ALL
B. FROM
C. DISTINCT
D. EXCEPT
303-Database Handling Using Python SY BCA SEM 3

Ans.C

Que.38)By whom & When SQLite was released? a) Korth in 2002 b) c) d) Dr. Edgar.Frank. Codd, in
2002
A. Guido van Rossum, in 2000
B. Dr. Edgar.Frank. Codd, in 2002
C. D. Richard Hipp, in 2000
D. David Axmark, in 2002
Ans.C

Que.39)Which of the following are the limitation of SQLite?


A. Foreign key without using pragma
B. For each Statement in trigger
C. Full Outer Join
D. All of the above
Ans.D

Que.40)For SQlite date and time, Real datatype is used to store days in?
A. Julian day numbers
B. Unix Time
C. ISO8601 strings
D. None
Ans.A

Que.41)Which database object is executed automatically when DML statement is issued against the
associated table.
A. Table
B. Trigger
C. View
D. Sequence
Ans.B

Que.42)In operator is also called_______


A. Multi-Or Operator
B. Multi-And Operator
C. Exclusive-Or Operator
D. Exclusive-And Operator
Ans.A

Que.43)Which Command is used to view records on column format?


A. .column mode
B. .mode column
C. .column format
D. .format column
Ans.B
303-Database Handling Using Python SY BCA SEM 3

Que.44) Which conditional logic CASE expression only compares for equality?
A. Simple Case expression
B. Search Case expression
C. Both A and B
D. None of these
Ans.A

Que.45)Which operator is used to combine the results of two SELECT statements including
duplicate rows.
A. UNION
B. INTERSECT
C. UNION ALL
D. INTERSECT ALL
Ans.C

Que.46)Which clause returns only common rows returned by the two SELECT statements.
A. UNION
B. INTERSECT
C. EXCEPT
D. None of the above
Ans.B

Que.47)Which join returns all records from the left table, and the matched records from the right
table?
A. Inner join
B. Left outer join
C. Right outer join
D. Full outer join
Ans.B

Que.48)Using the _______ clause retains only one copy of identical tuples
A. Limit
B. Distinct
C. Intersect
D. Except
Ans.B

Que.49)What among following is supported in SQLite


A. LEFT OUTER JOIN
B. RIGHT OUTER JOIN
C. FULL OUTER JOIN
D. All of the mentioned
Ans.A
303-Database Handling Using Python SY BCA SEM 3

Que.50)which of the following is not the storage class


A. BLOB
B. none
C. Real
D. Auto
Ans.D

Que.51)What is correct method to delete all the rows where the 'name' is"Raj" in the 'Employee'
table?
A. DELETE FROM Employee where name = 'Raj'
B. DELETE name= 'Raj' FROM Employee
C. DELETE FROM Employee WHERE name == 'Raj'
D. DELETE 'Raj' FROM Employee
Ans.A

Que.52)In SQLite,which operation cannot be performed using trigger


A. ALTER
B. INSERT
C. UPDATE
D. DELETE
Ans.A

Que.53)One of the difference between SQL and SQLite is


A. SQL is server based and SQLite is file based
B. SQL does not supports Triggers SQLite supports Triggers.
C. SQL is used for data storage ;SQLite is used for mainly mobile devices.r
D. None of the Above
Ans.A

Que.54)In context to SQLite trigger, which amongst the following statements specifies a condition?
A. WHILE statement
B. FROM statment
C. WHERE statement
D. WHEN statement
Ans.D

Que.55)To view field name while exporting data from the SQLite database to a csv file _____ is used
A. .headers on
B. .header on
C. .column-name on
D. .mode csv
Ans.A
303-Database Handling Using Python SY BCA SEM 3

Que.56)This clause compares the results set of two queries and return distinct rows from the left
query that are not output by the right query.
A. Except clause
B. Union Clause
C. Intersect Clause
D. None of the Above
Ans.A

Que.57)Is SQLite a case insensitive?


A. True
B. False
C. can be true or false
D. Cannot say
Ans.A

Que.58)Which of the following are the storage classes of SQLite?


A. none
B. INTEGER
C. REAL
D. All of the mentioned
Ans.D

Que.59)Which data type is used to store large files like images, files
A. BLOB
B. TEXT
C. REAL
D. NONE
Ans.A

Que.60)Which of the following is not Constraint in SQL?


A. Primary Key
B. Not Null
C. Check
D. Union
Ans.D

Que.61)By using sqlite3 , we can store our data on


A. local
B. Global
C. Server
D. None
Ans.A

Que.62)Mention when to use SQLite


303-Database Handling Using Python SY BCA SEM 3

A. Embedded Applications
B. Disk Access Replacement
C. Testing
D. All of the mentioned
Ans.D

Que.63)The property of without installing the SQLite software is known as


A. Transactional
B. Zero Configuration
C. Serverless
D. Self contained
Ans.B

Que.64)At a time multiple databases can be operated using


A. Attach
B. detach
C. Connect
D. Join
Ans.A

Que.65)The ______ commands are special commands which don’t end with a semicolon
A. Backup
B. Sub query
C. Dot
D. DML
Ans.C

Que.66)To filter the records of the sub groups the _____clause is used
A. Where
B. Between
C. Having
D. Like
Ans.C

Que.67)Which clause is used to check an already existing trigger?


A. Before
B. After
C. New
D. Exists
Ans.D

Que.68)Which dot (.) command is used to display the structure of the table?
A. .table
B. .schema
C. .tabs
303-Database Handling Using Python SY BCA SEM 3

D. .tcl
Ans.B

Que.69)In python any column can store any type of data but preferred storage class is called
its__________
A. affinity
B. manifest
C. class
D. Namespace
Ans.A

Que.70)What is the use of typeof()?


A. check storage class of a value based on its format
B. check whether the condition is true or false
C. check the function name
D. check date format
Ans.A

Que.71)What is the correct way to create database in sqlite?


A. sqlite database_name
B. sqlite3 database_name
C. sqlite3 database_name.db
D. database_name.db
Ans.C

Que.72)Which one is(are) the Sqlite Transaction control statement?


A. Begin
B. Commit
C. Rollback
D. all of this
Ans.D

Que.73)The expression TRUE AND NULL is _______ in SQLite.


A. True
B. False
C. null
D. None of the above
Ans.C

Que.74)If you attempt to store a value with a numeric type (float or integer) into a column with a
text affinity,
A. it will be converted into an integer type before being stored
B. it will be converted into an floating type before being stored
C. it will be converted into a text representation before being stored as a text value type
D. it will be stored without any conversion
303-Database Handling Using Python SY BCA SEM 3

Ans.C

Que.75)Which of the following trigger can be fired on views rather than on tables?
A. instead of
B. before
C. after
D. all of the above
Ans.A

Que.76)What will happen if you give a column type to a table's column which does not match with
any of the SQLite column type then
A. the column is given the float affinity.
B. the column is assigned the numeric affinity.
C. then the column is given the text affinity.
D. then the column is given the integer affinity.
Ans.B

Que.77)Which of the following SELECT clause will skips over rows at the beginning of the result set.
A. DISTINCT
B. LIMIT
C. WHERE
D. OFFSET
Ans.D

Que.78)Which one of the following statement is not true about SQLite?


A. In SQLite only LEFT outer join can be implemented
B. In ALTER TABLE command drop column is not supported
C. FOR EACH STATEMENT trigger is not supported
D. Only READ ONLY views are supported
Ans.B

Que.79)For what purpose SQLite is used ?


A. Front end
B. Back end
C. CLI
D. GUI
Ans.B

Que.80)1. Any column can store any type of data what concept is it called ?
A. Manifest type
B. Affinity type
C. Both A and B
D. Type casting
Ans.A
303-Database Handling Using Python SY BCA SEM 3

Que.81)Which of the following is not a valid Affinity?


A. Date
B. None
C. Text
D. Integer
Ans.A

Que.82) What kind of statements performed against a database ?


A. BEGIN Transaction
B. ROLLBACK Transaction
C. COMMIT Transaction
D. All above
Ans.D

Que.83)A CASE SQL statement is ________?


A. A way to establish a loop in SQL
B. A way to establish an IF-THEN-ELSE in SQL
C. A way to establish a data definition in SQL
D. All of the above
Ans.B

Que.84) How many characters are match using underscore ?


A. Single
B. Multiple
C. Paragraph
D. Line of a string
Ans.A

Que.85) Sqlite is called dynamic type system because


A. you cannot change the data type of the column
B. a value stored in any column defines its data type
C. When the value changes data type is not changed
D. All of the above
Ans.B

Que.86) Which of the following are Benefits of Triggers?


A. Enforcing referential integrity
B. Auditing
C. Imposing security authorizations
D. All of the above
Ans.D

Que.87)Which data type stores the group of data exactly as it is entered


A. Integer
303-Database Handling Using Python SY BCA SEM 3

B. Text
C. Blob
D. NULL
Ans.C

Que.88)Which of the following sqlite statement is not a DML Statement


A. Alter table
B. Insert
C. Update
D. Delete
Ans.A

Que.89)4. In SQLite who will evaluates multiple conditions and returns the result based on
evaluation ?
A. UNION Clause
B. HAVING Clause
C. CASE
D. GROUP BY Clause
Ans.C

Que.90)Inner join is also known as _________


A. Left Join
B. Equi Join
C. Right Join
D. Natural Join
Ans.B

Que.91)5. In which year SQLite invented ?


A. September 2000
B. August 2011
C. October 2000
D. August 2000
Ans.D

Que.92)To Find any value that starts with 2 and have exactly 3 characters in length
A. SELECT * FROM COMPANY WHERE ADDRESS LIKE '2_%’
B. SELECT * FROM COMPANY WHERE ADDRESS LIKE ‘2%_’
C. SELECT * FROM COMPANY WHERE ADDRESS GLOB '2??'
D. d)All of the above
Ans.C

Que.93)SQLite does not support ____________ Join


A. LEFT Outer Join
B. Right Outer Join
C. Inner Join
303-Database Handling Using Python SY BCA SEM 3

D. cross join
Ans.B

Que.94)What is type affinity?


A. The type affinity of a row is the recommended type for data stored in that row.
B. The type affinity of a column is the recommended type for data stored in that column.
C. The type affinity of a column is not the recommended type for data stored in that column.
D. None of the above
Ans.B

Que.95)Which data type is the following type affinities?


A. TEXT
B. NUMERIC
C. BLOB
D. All of the Above
Ans.D

Que.96)Which Constraint can be used to ensure that the Emp_id in emp table must start with e?
A. Check Contraint
B. Not Null Contraint
C. Unique Contraint
D. Forign Key Contraint
Ans.A

Que.97)To Display 2 records starting from the 3rd position


A. SELECT * FROM student LIMIT 3 OFFSET 3
B. SELECT * FROM COMPANY LIMIT 3 OFFSET 2
C. SELECT * FROM COMPANY LIMIT 2 OFFSET 3
D. SELECT * FROM COMPANY LIMIT 2 OFFSET 2
Ans.D

Que.98)Which type of content stores in Sqlite database?


A. TEXT
B. none
C. REAL
D. All of the Above
Ans.D

Que.99)Which database is serverless?


A. Sqlite
B. MS Access
C. MySQL
D. MS SQL server
Ans.A
303-Database Handling Using Python SY BCA SEM 3

Que.100)How to end transaction in SQLite database?


A. When ROLLBACK statement fire
B. When COMMIT statement fire
C. When ROLLBACK and COMMIT statement fire
D. All of the Above
Ans.D

Que.101)What is the correct sequence of using following clauses?


A. where, order by ,group by,having
B. group by,having,order by,where
C. where, group by ,having, order by
D. where ,having,group by ,order by
Ans.C

Que.102)SQL _______ constraints are used to enforce "exists" relationships between tables
A. Primary Constraints
B. Unique Constraints
C. Foreign Key Constraints
D. Check Constraints
Ans.C

Que.103)Which one is not a standard commands in SQLite?


A. SELECT
B. DELETE
C. DROP
D. MODIFY
Ans.D

Que.104)Which of the following is not a SQL constraint?


A. UNIQUE
B. PRIMARY KEY
C. LOGICAL KEY
D. NOT NULL
Ans.C

Que.105)Which command list names and files of attached databases?


A. db
B. use
C. .databases
D. .datab
Ans.C

Que.106)For what purpose sqlite3 is used ?


A. Front End
303-Database Handling Using Python SY BCA SEM 3

B. Back End
C. CUI
D. GUI
Ans.B

Que.107)Which of the following command is true regarding SQLite ALTER TABLE Statement
(Rename)?
A. ALTER TABLE table_name ADD COLUMN column_def...;
B. ALTER TABLE table_name RENAME TO new_table_name;
C. ALTER TABLE table_name COLUMN column_def...;
D. ALTER TABLE table_name TO new_table_name;
Ans.B

Que.108)Which operator is negation of IN operator?


A. NIN
B. NOT
C. Exists
D. NOT IN
Ans.D

Que.109)Which of the following command is true regarding ROLLBACK Statement?


A. ROLLBACK;
B. ROLLBACK TO SAVEPOINT savepoint_name;
C. Both A and B
D. ROLLBACK TO savepoint_name;
Ans.C

Que.110)Which operator is used to search for values that are within a set of values, given the
minimum value and the maximum value?
A. AND
B. IN
C. EXISTS
D. BETWEEN
Ans.D

Que.111)which is not a storage classes in SQLite?


A. None
B. INTEGER
C. REAL
D. STRINGS
Ans.D

Que.112)The master table holds the key information about your database tables and it is called?
A. sqlite_master
B. sqlite_source
303-Database Handling Using Python SY BCA SEM 3

C. sqlitemaster
D. sqlite
Ans.A

Que.113)which is the advantages of SQLite?


A. self-contained
B. serverless
C. zero-configuration
D. All of the above
Ans.D

Que.114)which of the command are not used in trigger of sqlite?


A. Insert
B. Alter
C. Delete
D. Update
Ans.B

Que.115)Which join does not support in sqlite?


A. Inner Join
B. Right Outer Join
C. Cross Join
D. Self Join
Ans.B

Que.116)which of the following is true command for ROLLBACK?


A. ROLLBACK To SAVEPOINT_NAME
B. ROLLBACK
C. Both A and B
D. ROLLBACK To SAVEPOINT savepoint_name
Ans.C

Que.117)Which one is not data type of SQLITE?


A. nan
B. CHAR
C. REAL
D. TEXT
Ans. B

Que.118)By default SQLITE operates in ________mode.


A. Auto-commit mode
B. Roll back mode
C. Execution mode
D. Insert mode
Ans.Auto-commit mode
303-Database Handling Using Python SY BCA SEM 3

Que.119)In SQLite which is used to combine rows from more than one tables in database?
A. BETWEEN
B. IN
C. JOIN
D. SELECT INTO
Ans.C

Que.120)Use of LIMIT clause is


A. To join the query
B. To constrain the number of rows returned by the query
C. To constrain the number of columns returned by the query
D. To intersect the query
Ans.To constrain the number of rows returned by the query

Que.121)Display the list of student having patel in his name.which one is correct query?
A. Select * from student where name like '_patel_'
B. Select * from student where name like '%patel%'
C. Select * from student where name = '_patel_'
D. Select * from student where name = '_patel%'
Ans.Select * from student where name like '%patel%'

Que.122)Which statement is not correct in the case of trigger?


A. Trigger generates some derived column values automatically
B. Trigger prevent invalid transaction
C. Triggers are executed automatically when some event occur
D. If table is dropped,all associated triggers are not deleted.
Ans.If table is dropped,all associated triggers are not deleted

Que.123)Which of the following command is true regarding ROLLBACK Statement?


A. ROLLBACK;
B. ROLLBACK TO SAVEPOINT savepoint_name;
C. Both A and B
D. ROLLBACK TO savepoint_name1,savepoint_name2 ;
Ans.C

Que.124)Any column can still store any type of data but the preferred storage class for a column is
called its ?
A. affinity
B. type
C. column store
D. type storage
Ans.A

Que.125)Which join is supported in SQLite?


303-Database Handling Using Python SY BCA SEM 3

A. LEFT OUTER JOIN


B. RIGHT OUTER JOIN
C. FULL OUTER JOIN
D. All of the above
Ans.A

Que.126)SQLite does have a separate Boolean storage class.


A. True
B. False
C. Can be true or false
D. Can not say
Ans.B

Que.127)What is the use of LIMIT clause with SELECT query?


A. Limit the number of rows.
B. Limit the number of columns
C. Limit the size of table
D. None
Ans.A

Que.128)If we have not specified ASC or DESC after a SQLite3 ORDER BY clause, the following is
used by default
A. DESC
B. ASC
C. There is no default value
D. None
Ans.B

Que.129)Which operator is used to compare a value to a specified list of values?


A. ANY
B. BETWEEN
C. ALL
D. IN
Ans.D

Que.130)Which type of JOIN is used to returns rows that do not have matching values?
A. Natural JOIN
B. Outer JOIN
C. EQUI JOIN
D. All
Ans.B

Que.131)Which command is used to modifies an existing database object, such as a table?


A. Create
B. Alter
303-Database Handling Using Python SY BCA SEM 3

C. Drop
D. Modify
Ans.B

Que.132)What the following query does ?, select count(*) from table


A. It return all rows data
B. It return number of rows in table
C. It return number of columns in table
D. It will give an error
Ans.B

Que.133)Sqlite is __________and it does not have a separate ___________ process.


A. data based, server
B. theme based, server
C. processor based, server
D. file based, server
Ans.D

Que.134)Sqlite does not have a separate Boolean storage class. Values are stored as integer
___________ (false) and ____ (true).
A. 0,1
B. 1,0
C. 0,0
D. 1,1
Ans.A

Que.135)In sqlite ___ operator is used to match text values against a pattern matching using
wildcards ______ & _______.
A. Like, %, *
B. Like, ?, _
C. Like, *, ?
D. Like, %, _
Ans.D

Que.136)Sqlite is _________. It is also called as __________


A. typed less ,static type
B. variable less ,static type
C. typed less ,dynamic type
D. variable less ,dynamic type
Ans.C

Que.137)Advantages of SQLite :
A. Lightweight
B. No Installation Needed
C. Portable
303-Database Handling Using Python SY BCA SEM 3

D. All of the above


Ans.D

Que.138)Sqlite is _________________ and transactional SQL database system.


A. Self-contained
B. Server less
C. Zero configuration
D. All of the above
Ans.D

Que.139)Which of the following is false for SQLite?


A. Serverless
B. Heavy loaded
C. No configuration
D. Fast
Ans.B

Que.140)Which of the following command is used to display fields with data?


A. .header off
B. .header on
C. .open on
D. .open off
Ans.B

Que.141)Which of the following command is used to view the system setting?


A. .tables
B. .open
C. .show
D. .schema
Ans.C

Que.142)If the value is '12.45'. It is interpreted as ____ data type.


A. Integer
B. Real
C. Text
D. nan
Ans.C

Que.143)Arrange the datatype in ascending order (BLOB, Integer, Text, NULL)


A. NULL, Integer, Text, BLOB
B. NULL, Text, Integer, BLOB
C. BLOB, Text, Integer, NULL
D. BLOB, Integer, Text, NULL
Ans.A
303-Database Handling Using Python SY BCA SEM 3

Que.144)Which of the following is false for BEGIN?


A. It is ended with Commit or Rollback statement.
B. It is used to start transaction.
C. It is used to arrange the transactions in order
D. It is used to perform group of statements as unit.
Ans.C

Que.145)_____ function opens a connection to the SQLite database file. If database is opened
successfully, it returns a connection object.
A. Open()
B. Connect()
C. Connection()
D. Execute()
Ans.B

Que.146)This method fetches the next row of a query result set, returning a single sequence, or
None when no more data is available.
A. fetchone()
B. fetchnext()
C. fetchall()
D. fetch()
Ans.A

Que.147)Which of the following is not a valid file mode in open() function?


A. r
B. w
C. a
D. z
Ans.D

Que.148)_____ is a 2D labeled heterogeneous, data-mutable and size-mutable array, which is widely


used and is one of the most important data structures.
A. DataFrame
B. Series
C. Array
D. Variable
Ans.A

Que.149)_____ is primarily integer position based (from 0 to length-1 of the axis), but may also be
used with a boolean array
A. Loc()
B. iLoc()
C. Values()
D. std()
303-Database Handling Using Python SY BCA SEM 3

Ans.B

Que.150)_____ uses dots to represent values for two different numeric variables. The position of
each dot on the horizontal and vertical axis indicates values for an individual data point. It is used
to observe relationships between variables.
A. Bar Chart
B. Line Chart
C. Histogram
D. Scatter Plot
Ans.D

Que.151)_____ consists of adjacent rectangles erected on the x axis, split into discrete intervals
called bins, and with an area proportional to the frequency of the occurrences for that bin. This kind
of visualization is commonly used in statistical studies about distribution of samples.
A. Bar Chart
B. Line Chart
C. Histogram
D. Scatter Plot
Ans.C

Que.152)__________ is an environment variable which you can set to add additional directories where
python will look for modules and packages.
A. PATH
B. PYTHONPATH
C. PYTHONDICT
D. LOCATION
Ans.B

Que.153)Which of the following is not a feature of SQLite?


A. SQLite is server-less architecture
B. SQLite transactions are following ACID rules.
C. SQLite use special kind of table called dynamic tables.
D. SQLite is platform dependent architecture.
Ans.D

Que.154) Which of the following is not a valid datatype of SQLite?


A. VARCHAR
B. PERCENT
C. REAL
D. NULL
Ans.B

Que.155) Data Affinity is


A. Kind of data we stored in datatype.
B. Kind of variables we declare
303-Database Handling Using Python SY BCA SEM 3

C. Kind of data composition


D. Ability of data to change
Ans.A

Que.156) Which of the following file is not available in SQLite folder when installed in CUI mode?
A. sqldiff.exe
B. sqlite3.exe
C. sqlite3_analyzer.exe
D. sqlite3_db.exe
Ans.D

Que.157) Which of the following can be used to use different tables from different database.
A. Detach Databases
B. Attach Databases
C. Locate Databases
D. Open Databases
Ans.B

Que.158) Once the transaction is completed it can be


A. Rollback
B. Deleted
C. Inserted
D. Updated
Ans.A

Que.159) The Distinct keyword can


A. Returns only unique value from the attribute
B. Returns multiple values from the attribute
C. Returns only values starting from ‘D’
D. Returns first value from the attribute.
Ans.A

Que.160) Which join condition return all records for first joining table and the matching common
records available in second table?
A. Inner Join
B. Right Join
C. Left Join
D. Full Join
Ans.C

Que.161) Which of the following is not true about .dump command?


A. It can be used to dump only entire database.
B. It allows saving the table structure and data of the database tables.
C. It stores table structure and data in SQL format.
D. It can be used to restore the database or individual table.
303-Database Handling Using Python SY BCA SEM 3

Ans.A

Que.162) Which of the following is not correct?


A. Python modules are python files with .py extension.
B. It contains one or more functions, classes and variables.
C. It provides reusability.
D. It cannot have more than two classes.
Ans.D

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy