SQL Final Assessment
SQL Final Assessment
5) A set of rules for telling the computer what operations to performs is called a
....
A) Procedural language 1M
B) Natural language
C) Command language
D) Programming language
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 1/8
10/23/24, 2:01 PM SQL Final Assessment
A) Better programming
B) Easy testing and debugging
C) Efficient coding
D) All
13) Which statement would add a column CGPA to a already defined table
Student 1M
A) ALTER TABLE Student ADD COLUMN (CGPA NUMBER(3,1));
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 2/8
10/23/24, 2:01 PM SQL Final Assessment
15) The ________ clause is used to list the attributes desired in the result of a
query.
A) Where 1M
B) Select
C) From
D) Distinct
16) Which statement is used to get all data from the student table whose name
starts with p? 1M
A) SELECT * FROM student WHERE name LIKE '%p%';
B) SELECT * FROM student WHERE name LIKE 'p%';
C) SELECT * FROM student WHERE name LIKE '_p%';
D) SELECT * FROM student WHERE name LIKE '%p';
18) Which among the following will insert data into only name and mark columns
in student table (consider total 4 columns are there in student table)
19) The language used application programs to request data from the DBMS is
referred to as __________
A) DML 0M
B) DDL
C) Query language
D) All of the Mentioned
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 3/8
10/23/24, 2:01 PM SQL Final Assessment
20) Which keyword is used to specify the foreign key after the table is created? 1M
A) SETUP
B) SET
C) ALTER TABLE
D) SPECIFY
23) If we want to filter or restrict some rows from the output produced by GROUP BY then we use
_________ clause
A) FILTER 1M
B) WHERE
C) HAVING
D) JOIN
A) WER 1M
B) WERT
C) WERTY
D) ERTY
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 4/8
10/23/24, 2:01 PM SQL Final Assessment
27) Which among the following is used with date_format() to get abbreviated
month name ? 1M
A) %a
B) %b
C) %m
D) %M
28) _____ is a join of every row of one table to every row of another table 1M
A) FULL JOIN
B) INNER JOIN
C) CROSS JOIN
D) SELF JOIN
29) Which join is to be used between two tables A and B when the resultant table
needs rows from A and B that matches the condition and rows from A that does
not match the condition?
A) Outer Join 1M
B) Cross Join
C) Inner Join
D) None of the above
33) which of the following command is used to see all procedure in mysql? 1M
A) show procedure;
B) show all procedure;
C) show procedure status;
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 5/8
10/23/24, 2:01 PM SQL Final Assessment
34) Default delimiter used by Mysql to execute the sql statement or to separate
two sql statement is........ 1M
A) colon (:)
B) comma(,)
C) semicolon (;)
D) Question Mark (?)
35) which of the following command is used to see all procedure in mysql? 1M
A) show procedure;
B) show all procedure;
C) show procedure status;
D) show procedures status;
37) Suppose a stored function named PI() is written in the database 'sampdb'. How would
it be called?
A) PI() 1M
B) sampdb.PI()
C) MySQL.PI()
D) db.PI()
38) Programmers cannot control the _______ cursors and the information in it.
A) implicit 1M
B) explicit
C) both a and b
D) Can not say
39) The Implicit cursors are created in order to process the ____ statements. 1 M
A) DDL
B) DCL
C) DML
D) TCL
40) The TRIGGER privilege is used for the table to be able to create and drop
triggers for it.
A) True 1M
B) False
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 6/8
10/23/24, 2:01 PM SQL Final Assessment
C) -
D) -
44) To list all triggers created in database, following which command is used?
A) list all triggers; 0M
B) list triggers;
C) show triggers;
D) select * from triggers;
45)
Consider the following view:
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 7/8
10/23/24, 2:01 PM SQL Final Assessment
B) False
C) -
D) -
50) In order to sort the records according to the columns, which clause is used?
A) HAVING 1M
B) GROUP BY
C) ORDER BY
D) None of the above
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9584&isMax=1 8/8