Professional Documents
Culture Documents
E.C
1. Which one of the following command allows you to add rows in database in SQL?
A. ADD B. INSERT C. CREATE D MAKE
2. Assume you have customer table then which command is used to remove rows from customer
table?
A. REMOVE from customer C. DELETE from customer
B. DROP from customer D. UPDATE from customer
3. The SQL where clause
A. Limits the column data that are returned C. Both A and B
B. Limits the row data are returned D. none
4. Which one of the following is the original purpose of SQL
A. To specify the syntax and semantics of sql data definition language
B. To specify the syntax and semantics of sql data manipulation language
C. To define the data structure
D. All of the above
5. The wildcard in WHERE clause is useful when ?
A. An exact match is necessary in SQL select statement
B. An exact match is not possible in SQL select statement
C. An exact match is necessary in SQL CREATE statement
D. An exact match is not possible in SQL CREATE statement
6. Aview is Which one of the following
A. A virtual table that can be accessed via SQL command
B. A virtual table that cannot be accessed via SQL command
C. A base table that can be accessed via SQL command
D. A virtual table that cannot be accessed via SQL command
7. A command to eliminate a table from a database is
A. REMOVE table table name C. DROP table table name
B. DELETE table table name D. UPDATE table name
8. ON UPDATE CASCADE ensures which one of the following
A. Normalization C. Materialized views
B. Data integrity D. All of the above
9. SQL Data Definition command make up an_________
A. DML B. DDL C. DCL D. HTML
10. Which SQL key word is used with wildcards?
A. LIKE B. IN C. NOT IN D. IN and NOT IN
11. WHICH one is the correct order of key words for SQL SELECT statement
A. SELECT,FROM WHERE C. WHERE,SELECT,FROM
B. FROM,WHERE,SELECT D. SELECT, WHERE, FROM
12. A sub query in An SQL select statement is enclosed in
A. Braces {} B. capital letters C. parenthesis () D. angle brackets []
13. The result of sql SELECT statement is
A. File B. report C. table D. Form
14. Which one of the following are the five built-in functions provided by SQL?
A. COUNT,SUM,AVG,MAX,MIN C. COUNT,SUM,MULT,DIV,MIN
B. COUNT,SUM,MULT,DIV,MAX D. SUM AVG,MAX,DIV,MIN
15. In sql SELECT statement querying a single table according to SQL standard asterisk(*) means
A. All columns of the table are to be returned
B. All rows of the table that meet the full criteria are to be returned
C. All records meeting even partial criteria are to be returned
D. None of the above
16. The SQL HAVING clause does which one of the following
A. Acts as a where clause but used in groups rather than rows
B. Acts as a where clause but used in ROWS rather than groups
C. Acts as a where clause but used in columns rather than groups
D. Acts exactly like a where clause
17. SQL wildcards are _______and __________
A. Asterisk(*), percent sign (%) C. underscore(____), question mark(?)
B. percent sign (%), underscore(__) D. question mark(?), asterisk(*)
18. to remove duplicate rows from the result of sql select statement the ______qualifier is used
A. ONLY B. DISTINCT C. UNIQUE D. SINGLE
19. The benefit of standard relational language includes which one of the following
A. Reduce training cost.
B. Increase dependency on single vendor
C. Application are not needed
D. All of the above
20. Which one of the following do you need consider when you make a table in SQL?
A. Data type B. Primary keys C. Default values D. All of the above
21. SQL query and modification commands make up________?
A. DDL B. DML C. DCL D. HTML
22. WHEN THREE OR MORE AND and OR conditions are combined, then it is easier to use sql key
word(s)
A. LIKE ONLY B. IN ONLY C. NOT IN ONLY D. both IN and NOT IN
23. The Microsoft access wildcards are __________and _________
A. Asterisk(*), percent sign (%) C. underscore(____), question mark(?)
B. percent sign (%), underscore(__) D. question mark(?), asterisk(*)
24. Find the sql statement that is equals to the following:- SELECT NAME FROM CUSTOMER WHERE
NAME=’VA’?
A. SELECT NAME IN CUSTOMERE WHERE STATE IN(‘VA’)
B. SELECT NAME IN CUSTOMERE WHERE STATE =’VA’
C. SELECT NAME IN CUSTOMERE WHERE STATE =’V’
D. SELECT NAME FROM CUSTOMERE WHERE STATE IN(‘VA’)
43. Smart draw is unique in three ways which one is not include in that?
A. automated B. Complete C. Integrated D. Not complete
44. CASE tool means?
A. Computer Aided Software Engineering tool
B. Computer Aided System Engineering tool
C. Computer Aim Software Engineering tool
D. Computer Aim System Engineering tool
45. The structure of the database itself and is used in control and maintenance of a database?
A. Template B. Documentation C. Data structure D. Data dictionary
46. Which one is the process that involves dividing large tables into smaller that does not
accept redundant values and defining relationships between them?
A. Normalization B. Generalization C. Denormalization D. Data structure
47. Client feedback can be implementing in line with the organization policies through the
following except one?
A. Prototyping B. Verbal Feedback C. Group discussion D. Questionarie
48. The relationship between the instances of only one entity type (or participant) is known
as unary relationship and it has degree?
A. 1 B. 2 C. 3 D. 4
60. An entity set that does not have sufficient attributes to from a primary key can be
considered as:
61. Where does DBMS store the definition data elements and their relationship?
63. Among the following which activity helps you to determine the entities, attributes, and
relationship of data?
64. With sql how do you select all the records from a table name ‘Employee ‘where the
values of the column ‘first name starts with’ A’
65. Here is the given table shown below which normalization step is missing?
Toshiba laptop
A. modify table Tlaptop delete column MODEL B. alter table Tlaptop drop MODEL
C. alter table Tlaptop drop column MODEL D. all are the correct answer
67. There are certain packages that allow people to define data items, place these items in
particular records, combine the records into designated files and then manipulate and
retrieve the stored data .what are they called
68. When the values in one or more attributes being used as a foreign key that must exist in
another set of one or more attributes in another table, you have created:
78. How can you change “Gera “into “Geradd”in the last column name in the employee table?
A. Update employee set last name =”Gera “where last name =”Geradd”
B. Modify employee set last name =”Geradd “where last name =”Gera”
C. Update employee set last name =”Geradd “where last name =”Gera”
D.none
69. If you have two entities that have a many to many (M:N)relationship between
them ,how do you show their relationship in database environment
A. you create two tables by defining the column as foreign key to the M side of the entity on
relationship.
B. you can create individual relation as separate tables and introduce a third(new)table by
taking the primary key of the two tales combined together as primary keys and used as foreign
keys.
C. you create three separate tables without defining a foreign key to the table on the M side of
the relationship
D. you create two tables by defining the column as foreign key to N side of the entity on
relationship
70. Among the following which one can be considered as composite attribute for Employee
table?
A. only the table definition, but not the stored values B. only the permission specified
C. only the stored values, but not the table definition D. the table definition and all stored
values
73. With the sql which type of join should you use if you want to return only matched
rows?
A. inner B .left outer join C. right outer join D. full outer join
74. A method of data collection in which the situation of interest is watched and the
relevant facts actions and behaviors are recorded?
75. In database modeling a set of objects with the same properties or characteristics is
termed as?
76. Assume that there is a table named R with attributes A, B, C, and D, and A is the
primary key (determinant) of R, then which of the following is true about fully
functional dependency?
77. You run SELECT statement and multiple duplicates of values are retrieved .what key
word can you use to retrieve only the non-duplication value?
78. Which of the following data constraints would be used to specify that the value of cells in
a column must be one of a specific set of possible values?
A
A domain constraint
.
B.A range constraint
C.An intrarelation constraint
D
An interrelation constraint
.
79. In 1:N Relationship the foreign key placed
A. Either table without specifying parent or child table
B. The parent table
C. The child table
D. Either the parent table or the child table
80. Which one of the following column properties specifies weather or not cells in a column
must a data value
A. Null status B. Default value C. Data type D. Data constraint
81. A primary key should defined as
A. NULL B. NOT NULL C. Either of the above can be used D. none
82. A foreign key is
A. A column containing the primary key of another table
B. Used to define data types
C. Used to define null status
D. All of the above are correct answers
83. Which one of the following column is required in a table
A. A foreign key B. Primary key C. Alternate key D. Surrogate key
84. Which of the following column properties would be used to specify that cells in a column
must be immediately filled with a monetary value of $10,000?
A. Null status B. Data type C. Default value D. Data constraint
85. The identifier of an entity become the _____- of the new table
A. Foreign key B. Main attribute C. primary key D. identity attribute
86. Each Entity is represented as
A. Tuple B. attribute C. table D. file
87. If a relationship has a cascade updates constraint,then if ________ in the parent table is
changed, then the same change will automatically be made to any corresponding foreign key
value.
A. Primary key B. Surrogate key C. foreign key D. Alternate key
88. You run a SELECT statement and multiple duplicates of values are retrieved. What
keyword can you use to retrieve only the non-duplicate value?
A. DUPILCATE B. INDIVIDUAL C. DSITINCT D. SEPARET
89. In database modeling, a set of objects with the same properties or characteristics is
termed as:
A. Entity instance B. Entity type C. Relationship type D. Relationship instance
90. In the following, one of them can be considered as composite attribute for EMPLOEE
table.
A. Address B. Salary C. ID D. SEX
100. How can you change "Bertukan" into "Birtukan" in the "LastName" column in the
Student table?
A. UPDATE Student SET LastName='Bertukan' INTO LastName='Birtukan'
B. MODIFY Student SET LastName='Birtukan' WHERE LastName='Bertukan'
C. UPDATE Student SET LastName='Birtukan' WHERE LastName='Bertukan'
D. MODIFY Student SET LastName='Bertukan' INTO LastName='Birtukan'
101. When the values in one or more attributes being used as a foreign key that must
exist in another set of one or more attributes in another table, you have created:
A. Domain integrity constraint
B. Entity integrity constraint
C. User defined integrity constraint
D. Referential integrity constraint
102. In SQL, how do you select all the records from a table named "Student" where the
value of the column "FirstName" starts with an "B"?
A. Select * From STUDENT where FirstName Like '%B%'
B. Select * From STUDENT where FirstName=Like 'B%'
103. Among the following, which activity helps you to determine the entities,
attributes, and relationships of data?