SQL Objective Type Question & Answers For Interview

Q.1An entity set that does not have sufficient attributes to form a primary key is a
(A) strong entity set. (B) weak entity set.
(C) simple entity set. (D) primary entity set.
Ans: B

Q.2 Errors occur more often when
a. data is entered by users
b. data is entered by operators
c. when data is handwritten by users and entered by an operator
d. the key board design is bad
Ans: c

Q.3 In an E-R diagram attributes are represented by
(A) rectangle. (B) square.
(C) ellipse. (D) triangle.
Ans: C

Q.4 In on-line data entry it is possible to
a. Give immediate feedback if incorrect data is entered
b. Eliminate all errors
c. Save data entry operators time
d. Eliminate forms
Ans: a

Q.5 In case of entity integrity, the primary key may be
(A) not Null (B) Null
(C) both Null & not Null. (D) any value.
Ans: A

Q.6 In interactive data input a menu is used to
a. enter new data
b. add/delete data
c. select one out of many alternatives often by a mouse click
d. detect errors in data input
Ans: c
Q.7 The language used in application programs to request data from the DBMS is referred
to as the
(A) DML (B) DDL
(C) VDL (D) SDL
Ans: A

Q8  In interactive data input a template is normally used to
a. enter new data
b. add/delete data
c. select one out of many alternatives often by a mouse click
d. detect errors in data input
Ans: a
Q.9 A logical schema
(A) is the entire database.
(B) is a standard way of organizing information into accessible parts.
(C) describes how data is actually stored on disk.
(D) both (A) and (C)
Ans: A
Q.10 Related fields in a database are grouped to form a
(A) data file. (B) data record.
(C) menu. (D) bank.
Ans: B Related data fields in a database are grouped to form a data record.
(A record is a collection of related fields)
Q.11 The database environment has all of the following components except:
(A) users. (B) separate files.
(C) database. (D) database administrator.
Ans: A

SQL Objective Type Question and Answers

Database Objective Type  Question and Answers
Q.1 In the relational modes, cardinality is termed as:
(A) Number of tuples. (B) Number of attributes.
(C) Number of tables. (D) Number of constraints.
Ans: A

Q.2 A data dictionary has consolidated list of data contained in
(i) dataflows (ii) data stores
 (iii) data outputs (iv) processes

a. (i) and (iii)
b. (i) and (ii)
c. (ii) and (iv)
d. (i) and (iv)
Ans: b

Q.3 Relational calculus is a
(A) Procedural language. (B) Non-Procedural language.
(C) Data definition language. (D) High level language.
Ans: B

Q.4 A data dictionary is useful as
(i) it is a documentation aid


 (ii) it assists in designing input forms

 (iii) it contains al data in an application including temporary data used in
processes

 (iv) it is a good idea in system design

a. (i) and (ii)
b. (i) and (iv)
c. (i),(ii) and (iii)
d. (i) and (iv)
Ans.: c

 Q.5 The view of total database content is
(A) Conceptual view. (B) Internal view.
(C) External view. (D) Physical View.
Ans: A

Q.6  By metadata we mean
a. very large data
b. data about data
c. data dictionary
d. meaningful data


Ans: b


Q.7 Cartesian product in relational algebra is
(A) a Unary operator. (B) a Binary operator.
(C) a Ternary operator. (D) not defined.

Ans: B Cartesian product in relational algebra is a binary operator.
(It requires two operands. e.g., P X Q)




Q.8 A data dictionary is usually developed
a. At requirements specification phase
b. During feasibility analysis
c. When DFD is developed
d. When a datadase is designed

Ans: c