This section presents you various set of Mock Tests related to SQL Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
Q 1 - Which of the following is not true about a FOREIGN KEY constraint?
A - It is a referential integrity constraint.
C - A foreign key value cannot be null.
D - A foreign key value must match an existing value in the parent table.
Q 2 - Which of the following is not true about use of a database view?
Q 3 - Which of the following is not true about simple views?
A - They derive data from one table.
B - They contain no functions or grouping.
C - You cannot perform DML operations through a simple view.
Q 4 - Which of the following is not true about complex views?
A - They derive data from more than one table.
B - They contain no functions or grouping.
C - You cannot perform DML operations through a complex view.
Q 5 - Consider the following schema −
STUDENTS(student_code, first_name, last_name, email, phone_no, date_of_birth, honours_subject, percentage_of_marks);
Which of the following code will create a simple view named all_marks_english that contains the names and percentage of marks of the students in the honours_subject ‘Eng01’?
Q 6 - Which of the following code will retrieve data from the view all_marks_english, created in the previous question?
A - select view all_marks_english;
B - select from all_marks_english;
Q 7 - Which of the following code will delete a view named all_marks_english?
A - delete view all_marks_english;
Q 8 - Which of the following is not true about a sequence?
A - They are used for generating sequential numbers.
B - Sequences are created by the CREATE SEQUENCE statement.
Q 9 - Which of the following minimal code would create a sequence named loc_seq as a primary key of the LOCATIONS table?
Q 10 - Which of the following statement is used to modify a sequence?
Q 11 - Which of the following is not true about the Pseudocolumns that return the sequence values?
A - NEXTVAL returns the next available sequence value.
B - CURRVAL gets the current sequence value.
Q 12 - Which of the following code will delete a sequence named loc_seq?
Q 13 - Which of the following is true about database indexes?
A - You can create an index on one or more columns.
B - Indexes always slow down the speed of query process.
Q 14 - Which of the following code will create an index named stu_marks_ind on the columns student_code and percentage_of_marks of the STUDENTS table?
A - It’s not possible to create an index on two columns.
B - create index stu_marks_ind from students(student_code, percentage_of_marks);
C - create index stu_marks_ind on students(student_code, percentage_of_marks);
D - create index stu_marks_ind (student_code, percentage_of_marks) on students;
Q 15 - Which of the following code will create an index named
stu_marks_ind on the columns student_code and percentage_of_marks of the STUDENTS table.
Now which will delete the index stu_marks_ind.
Which of the following code will delete an index stu_marks_ind on the columns student_code and percentage_of_marks of the STUDENTS table?
Q 16 - Which of the following is not true about database synonyms?
A - Synonyms are used for shortening lengthy object names.
B - A synonym is just an alternative name.
C - Synonyms can be created for tables, views, sequences, procedures and other database objects.
Q 17 - A database administrator can
Q 18 - Which of the following is a system privilege?
Q 19 - Which of the following is not a developer’s privilege?
Q 20 - Which statement is used for allocating system privileges to the users?
Q 21 - Which of the following is true about a role?
A - A role is a named group of related privileges.
B - It can be it can be created and assigned to a user.
Q 22 - Which of the following code would create a role named student_admin?
Q 23 - Which of the following code would allocate the privileges of creating tables and view to the role named student_admin?
A - grant create table, create view to student_admin;
B - grant to student_admin create table, create view;
Q 24 - Which of the following code would grant the role student_admin to a user named william?
A - grant student_admin to william;
B - grant to william student_admin;
Q 25 - Which of the following statements allows William to change his database user account password to bill?
A - create user william identified by bill;
B - alter user william identified by bill
Question Number | Answer Key |
---|---|
1 | C |
2 | D |
3 | C |
4 | B |
5 | A |
6 | D |
7 | B |
8 | C |
9 | A |
10 | A |
11 | C |
12 | B |
13 | A |
14 | C |
15 | A |
16 | D |
17 | D |
18 | D |
19 | A |
20 | B |
21 | D |
22 | C |
23 | A |
24 | A |
25 | B |