πŸ—„οΈ

Database Management System MCQs

749+ questions with answers

501

Which view that contains more than one table in the top-level FROM clause of the SELECT statement:

a Join view
b Datable join view
c Updatable join view
d All of the mentioned
Medium
View Details β†’
502

Pictorial representation of an expression is called

a Expression tree
b Operator tree
c Expression flow
d Expression chart
Medium
View Details β†’
503

The results of each intermediate operation are created and then are used for evaluation of the next-level operations. This is called

a Materialized evaluation
b Expression evaluation
c Tree evaluation
d Tree materialization
Medium
View Details β†’
504

______________ allows the algorithm to execute more quickly by performing CPU activity in parallel with I/O activity.

a Buffering
b Double buffering
c Multiple buffering
d Double reading
Medium
View Details β†’
505

Pipelines can be executed in

a 4
b 3
c 2
d 5
Medium
View Details β†’
506

In a _________ the system makes repeated requests for tuples from the operation at the top of the pipeline.

a Demand-driven pipeline
b Producer-driven pipeline
c Demand pipeline
d All of the mentioned
Medium
View Details β†’
507

In a _____________ operations do not wait for requests to produce tuples, but instead generate the tuples eagerly.

a Demand-driven pipeline
b Producer-driven pipeline
c Demand pipeline
d All of the mentioned
Medium
View Details β†’
508

The iterator maintains the __________ of its execution in between calls so that successive next() requests receive successive result tuples.

a State
b Transition
c Rate
d Block
Medium
View Details β†’
509

Tuples are generated ___________ in producer-driven pipelining, they are generated ________ on demand, in demand-driven pipelining.

a Lazily, Eagerly
b Eagerly, Lazily
c Slowly, Eagerly
d Eagerly, Slowly
Medium
View Details β†’
510

When two inputs that we desire to pipeline into the join are not already sorted it is the _____________ technique.

a Hash join
b Buffer join
c double-pipelined hash join
d double-pipelined join
Medium
View Details β†’
511

Consider the following relational schemes for a library database: Book (Title, Author, Catalog_no, Publisher, YEAR, Price) Collection (Title, Author, Catalog_no) WITH the following functional dependencies: I. Title Author -> Catalog_no II. Catalog_no -> Title Author Publisher YEAR III. Publisher Title YEAR -> Price

a Both Book and Collection are in BCNF
b Both Book and Collection are in 3NF only
c Book is in 2NF and Collection is in 3NF
d Both Book and Collection are in 2NF only
Medium
View Details β†’
512

Let R(A,B,C,D,E,P,G) be a relational schema in which the following FDs are known to hold: AB->CD DE->P C->E P->C B->G

a in BCNF
b in 3NF, but not in BCNF
c in 2NF, but not in 3NF
d not in 2NF
Medium
View Details β†’
513

Which of the following is/are false for RAW mode of FOR XML?

a XMLSCHEMA option does not returns an in-line XSD schema
b BINARY BASE32 returns the binary data in base32-encoded format
c Each row in the query result is transformed into an XML element
d None of the mentioned
Medium
View Details β†’
514

___________ refers to the ability of the system to recover committed transaction updates if either the system or the storage media fails.

a Isolation
b Atomicity
c Consistency
d Durability
Medium
View Details β†’
515

Which utilities can we use to export data from sql server to a text file?

a DTS export wizard
b BCP
c ISQL
d DTS export wizard and BCP
Medium
View Details β†’
516

Problems occurs if we don’t implement a proper locking strategy

a Dirty reads
b Phantom reads
c Lost updates
d Unrepeatable reads
Medium
View Details β†’
517

Which of the following fixed database roles can add or remove user IDs?

a db_accessadmin
b db_securityadmin
c db_setupadmin
d db_sysadmin
Medium
View Details β†’
518

By default sql server has ___________ isolation level

a READ COMMITTED
b READ UNCOMMITTED
c SERIALIZABLE
d REPEATABLE READ
Medium
View Details β†’
519

Which of the following pair of regular expression are not equivalent?

a 1(01)* and (10)*1
b x(xx)* and (xx)*x
c (ab)* and a*b*
d x+ and x*x+
Medium
View Details β†’
520

Which feature converts row data to a column for better analytical view?

a Views
b Join
c Pivot
d Trigger
Medium
View Details β†’
521

Which of the following statements is/are not true for SQL profiler?

a Enables you to monitor events
b Check if rows are being inserted properly
c Check the performance of a stored procedure
d None of the mentioned
Medium
View Details β†’
522

Which global variables can be used to determine if a transaction is still open?

a @@NESTLEVEL
b @@FETCH_STATUS
c @@TRANCOUNT
d @@CONNECTIONS
Medium
View Details β†’
523

Which statement is used to define a cursor?

a OPEN
b FETCH
c DECLARE CURSOR
d @@FETCH_STATUS
Medium
View Details β†’
524

What is the default β€œSORT” order for a SQL?

a Ascending
b Descending
c As specified by the user
d None of the mentioned
Medium
View Details β†’
525

Capabilities of RAISERROR

a It can be logged in the error log
b It can print a message to the application
c It can assign an error number, state and severity
d All of the mentioned
Medium
View Details β†’
526

Stored procedures are safe from SQL injection attacks

a True
b False
c Depends on the result
d Always safe
Medium
View Details β†’
527

Which of the following connection type supports application role permissions and password encryption?

a OLE DB
b DBLib
c ODBC
d OLE DB and ODBC
Medium
View Details β†’
528

Cursor that reflects the changes made to the database table even after the result set is returned

a Static
b Dynamic
c FORWARD_ONLY
d Keyset
Medium
View Details β†’
529

Which normal form is considered adequate for normal relational database design?

a 2NF
b 5NF
c 4NF
d 3NF
Medium
View Details β†’
530

Consider a schema R(A, B, C, D) and functional dependencies A -> B and C -> D. Then the decomposition of R into R1 (A, B) and R2(C, D) is

a dependency preserving and lossless join
b lossless join but not dependency preserving
c dependency preserving but not lossless join
d not dependency preserving and not lossless join
Medium
View Details β†’
531

Relation R with an associated set of functional dependencies, F, is decomposed into BCNF. The redundancy (arising out of functional dependencies) in the resulting set of relations is

a Zero
b More than zero but less than that of an equivalent 3NF decomposition
c Proportional to the size of F+
d Indeterminate
Medium
View Details β†’
532

Which one of the following statements about normal forms is FALSE?

a BCNF is stricter than 3NF
b Lossless, dependency-preserving decomposition into 3NF is always possible
c Lossless, dependency-preserving decomposition into BCNF is always possible
d Any relation with two attributes is in BCNF
Medium
View Details β†’
533

A table has fields F1, F2, F3, F4, and F5, with the following functional dependencies: F1->F3 F2->F4 (F1,F2)->F5

a 1NF
b 2NF
c 3NF
d None of the mentioned
Medium
View Details β†’
534

Consider the following functional dependencies in a database. Date_of_Birth->Age Age->Eligibility Name->Roll_number Roll_number->Name Course_number->Course_name Course_number->Instructor (Roll_number, Course_number)->Grade

a In second normal form but not in third normal form
b In third normal form but not in BCNF
c In BCNF
d None of the mentioned
Medium
View Details β†’
535

The relation schema Student_Performance (name, courseNo, rollNo, grade) has the following FDs: name,courseNo->grade rollNo,courseNo->grade name->rollNo rollNo->name

a 2NF
b 3NF
c BCNF
d 4NF
Medium
View Details β†’
536

The relation EMPDT1 is defined with attributes empcode(unique), name, street, city, state, and pincode. For any pincode, there is only one city and state. Also, for any given street, city and state, there is just one pincode. In normalization terms EMPDT1 is a relation in

a 1NF only
b 2NF and hence also in 1NF
c 3NF and hence also in 2NF and 1NF
d BCNF and hence also in 3NF, 2NF and 1NF
Medium
View Details β†’
537

Which one of the following statements is FALSE?

a Any relation with two attributes is in BCNF
b A relation in which every key has only one attribute is in 2NF
c A prime attribute can be transitively dependent on a key in a 3 NF relation
d A prime attribute can be transitively dependent on a key in a BCNF relation
Medium
View Details β†’
538

_______________ is a procedural extension of Oracle – SQL that offers language constructs similar to those in imperative programming languages.

a SQL
b PL/SQL
c Advanced SQL
d PQL
Medium
View Details β†’
539

___________ combines the data manipulating power of SQL with the data processing power of Procedural languages.

a PL/SQL
b SQL
c Advanced SQL
d PQL
Medium
View Details β†’
540

_______________ has made PL/SQL code run faster without requiring any additional work on the part of the programmer.

a SQL Server
b My SQL
c Oracle
d SQL Lite
Medium
View Details β†’
541

A line of PL/SQL text contains groups of characters known as

a Lexical Units
b Literals
c Textual Units
d Identifiers
Medium
View Details β†’
542

We use ______________ name PL/SQL program objects and units.

a Lexical Units
b Literals
c Delimiters
d Identifiers
Medium
View Details β†’
543

A ___________________ is an explicit numeric, character, string or Boolean value not represented by an identifier.

a Comments
b Literals
c Delimiters
d Identifiers
Medium
View Details β†’
544

_________________ is a sequence of zero or more characters enclosed by single quotes.

a Integers literal
b String literal
c String units
d String label
Medium
View Details β†’
545

In _______________ the management of the password for the account can be handled outside of oracle such as operating system.

a Database Authentication
b Operating System Authentication
c Internal Authentication
d External Authentication
Medium
View Details β†’
546

In ________________ of Oracle, the database administrator creates a user account in the database for each user who needs access.

a Database Authentication
b Operating System Authentication
c Internal Authentication
d External Authentication
Medium
View Details β†’
547

Consider money is transferred from (1)account-A to account-B and (2) account-B to account-A. Which of the following form a transaction?

a Only 1
b Only 2
c Both 1 and 2 individually
d Either 1 or 2
Medium
View Details β†’
548

A transaction is delimited by statements (or function calls) of the form __________

a Begin transaction and end transaction
b Start transaction and stop transaction
c Get transaction and post transaction
d Read transaction and write transaction
Medium
View Details β†’
549

Identify the characteristics of transactions

a Atomicity
b Durability
c Isolation
d All of the mentioned
Medium
View Details β†’
550

Which of the following has β€œall-or-none” property?

a Atomicity
b Durability
c Isolation
d All of the mentioned
Medium
View Details β†’