0% found this document useful (0 votes)
50 views13 pages

What Is An Identifier in This Command:-Import Mysql - Connector As X

The document contains a quiz with multiple choice questions about SQL and database concepts. It asks about topics like identifiers, inserting records, fetching query results, database keys, SQL commands and clauses, operators, and writing basic SELECT queries. The questions are in a multiple choice format with one point possible for each correct answer. An example SQL table is provided, and some questions ask to identify the proper SQL statement to query the table for certain conditions.

Uploaded by

TECHNO FRIENDS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views13 pages

What Is An Identifier in This Command:-Import Mysql - Connector As X

The document contains a quiz with multiple choice questions about SQL and database concepts. It asks about topics like identifiers, inserting records, fetching query results, database keys, SQL commands and clauses, operators, and writing basic SELECT queries. The questions are in a multiple choice format with one point possible for each correct answer. An example SQL table is provided, and some questions ask to identify the proper SQL statement to query the table for certain conditions.

Uploaded by

TECHNO FRIENDS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

CS_UT2_2022 29/01/22, 12:38 PM

1. What is an identifier in this command:- import mysql.connector as x * 1 point

import

connector

mysql

2. To insert multiple records into table, which method is used to execute 1 point

statements? *

execute

executemany

executeall

none

3. It fetches all the rows of a query result * 1 point

fetchwhole

fetchmany

fetchall

allfetch

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 2 of 14
CS_UT2_2022 29/01/22, 12:38 PM

4. SET OF SIMILAR VALUES IN A RELATION ARE KNOWN AS * 1 point

RELATION

ATTRIBUTE

TUPLE

DOMAIN

5. THE TUPLES IN A RELATION ARE OF _________ ORDER? * 1 point

ANY

SAME

DESCENDING

NONE OF THESE

6.WHICH OF THE FOLLOWING IDENTIFIES EACH TUPLE UNIQUELY IN A 1 point


RELATION? *

KEY

ROWS

ATTRIBUTE

TUPLES

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 3 of 14
CS_UT2_2022 29/01/22, 12:38 PM

7. WHICH OF THE FOLLOWING ATTRIBUTE CAN BE SELECTED AS PRIMARY 1 point

KEY? *

SRNO

NAME

CLASS

ROLLNO

8.WHICH OF THE FOLLOWING CAN BE SELECTED AS CANDIDATE KEYS? * 1 point

SRNO

NAME

CLASS

PHONE

9.WHICH OF THE FOLLOWING WILL BE ALTERNATE KEY IF OPTION A IS 1 point

SELECTED AS PRIMARY KEY? *

SRNO

NAME

CLASS

PHONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 4 of 14
CS_UT2_2022 29/01/22, 12:38 PM

10.WHICH OF THE FOLLOWING LANGUAGE IS USED AS A QUERY 1 point

LANGUAGE? *

SQL

PYTHON

RUBY

NONE

11.WHAT IS THE FULL FORM OF SQL * 1 point

SIMPLE QUERY LANGUAGE

STRUCTURED QUERY LANGUAGE

SCRIPT QUERY LANGUAGE

NONE

12.WHICH OF THE FOLLOWING ARE DDL COMMAND? * 1 point

CREATE

ALTER

UPDATE

NONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 5 of 14
CS_UT2_2022 29/01/22, 12:38 PM

13.WHICH OF THE FOLLOWING ARE DML COMMAND? * 1 point

CREATE

ALTER

UPDATE

DELETE

14.WHICH SEQUENCE IS USED TO CREATE AND USE DATABASE? * 1 point

CREATE DATABASE <DNAME>,USE <DNAME>

USE <DNAME>,CREATE DATABASE <DNAME>

BOTH

NONE

15.WHICH COMMAND IS USED TO DELETE DATABASE AND TABLE? * 1 point

DROP

DELETE

BOTH

NONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 6 of 14
CS_UT2_2022 29/01/22, 12:38 PM

16.WHICH COMMAND IS USED TO RETERIEVE INFORMATION FROM 1 point

DATABASE? *

DROP

DEL

SELECT

NONE

17. WHICH CLAUSE IS USED TO SORT DATA USING SELECT COMMAND? * 1 point

ORDER

ORDER BY

ORDER BY <COLNAME>

NONE

18. WHICH CLAUSE IS USED TO PUT CONDITIONS IN SELECT COMMAND? 1 point

WHERE

WHERE IN

WHERE ALL

ALL OF THE ABOVE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 7 of 14
CS_UT2_2022 29/01/22, 12:38 PM

19. WHICH OPERATOR IS USED TO CHECK NOT EQUAL VALUES IN SQL ? * 1 point

!=

==

<=

ALL OF THE ABOVE

20. WHICH OPERATOR IS USED TO CHECK RANGE OF VALUES IN SQL ? * 1 point

BETWEEN AND

ALL AND

FEW AND

NONE

21.WHICH OPERATOR IS USED TO CHECK MULTIPLE OR IN SQL ? * 1 point

IN, NOT IN

FEW, NOT FEW

BOTH

NONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 8 of 14
CS_UT2_2022 29/01/22, 12:38 PM

22.WHICH CLAUSE IS USED TO RETERIEVE UNIQUE VALUES FROM A 1 point

COLUMN WHICH CONTAINS DUPLICATE VALUES ? *

NOT UNIQUE

UNIQUE

DISTINCT

NONE

23.WHICH OPERATOR IS USED TO CHECK NULL VALUES ? * 1 point

IS NULL, IS NOT NULL

= NULL, !=NULL

BOTH

NONE

24. WHICH OPERATOR IS USED TO SELECT ALL COLUMNS FROM TABLE ? * 1 point

**

BOTH

NONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 9 of 14
CS_UT2_2022 29/01/22, 12:38 PM

BASED ON THE FOLLOWING TABLE GIVE ANSWERS OF QUESTIONS FROM 25-32


?

Your answer

25.MARK THE CORRECT QUERY STATE MENT TO SELECT EMPNO COLUMN 1 point

FROM THE TABLE ? *

SELECT EMPNO FROM EMPLOYEE;

SELECT * FROM EMPLOYEE;

BOTH

NONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 10 of 14
CS_UT2_2022 29/01/22, 12:38 PM

26.MARK THE CORRECT QUERY STATEMENT TO SELECT RECORDS OF 1 point

UNIQUE DEPTMENT ID ? *

SELECT UNIQUE DEPT ID FROM EMPLOYEE;

SELECT DISTINCT DEPT ID FROM EMPLOYEE;

BOTH

NONE

27.MARK THE CORRECT QUERY STATEMENT TO SELECT RECORDS OF 1 point


EMPLOYEE IN ORDER OF THERE NAMES ? *

SELECT * FROM EMPLOYEE ORDER BY ENAME;

SELECT ORDER BY ENAME FROM EMPLOYEE;

BOTH

NONE

28.MARK THE CORRECT QUERY STATEMENT TO SELECT RECORDS OF 1 point

EMPLOYEES WHOSE NAME IS NOT KRITIKA ? *

SELECT * FROM EMPLOYEE WHERE ENAME !='KRITIKA';

SELECT * FROM EMPLOYEE WHERE NOT ENAME='KRITIKA';

BOTH

NONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 11 of 14
CS_UT2_2022 29/01/22, 12:38 PM

29.MARK THE CORRECT QUERY STATEMENT TO SELECT RECORDS OF 1 point

EMPLOYEES WHOSE DEPTMENT ID IS 'D01' AND 'D02' ? *

SELECT * FROM EMPLOYEE WHERE DEPTID='D01' OR DEPTID='D02';

SELECT * FROM EMPLOYEE WHERE DEPTID IN('D01','D02');

BOTH

NONE

30.MARK THE CORRECT QUERY STATEMENT TO SELECT RECORDS OF 1 point

EMPLOYEES WHOSE SALARY IS BETWEEN 20000 AND 50000 ? *

SELECT * FROM EMPLOYEE WHERE SALARY BETWEEN 20000 AND 50000;

SELECT * FROM EMPLOYEE WHERE SALARY>=20000 AND SALARY<=50000;

BOTH

NONE

31.MARK THE CORRECT QUERY STATEMENT TO SELECT RECORDS OF ALL 1 point


EMPLOYEES THOSE WHO ARE NOT GETTING BONUS ? *

SELECT * FROM EMPLOYEE WHERE BONUS IS NULL;

SELECT * FROM EMPLOYEE WHERE BONUS IS NOT NULL;

BOTH

NONE

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 12 of 14
CS_UT2_2022 29/01/22, 12:38 PM

32.WHAT IS THE DEGREE AND CARDINALITY OF THE TABLE ? * 1 point

DEGREE=10,CARDINALITY=5

DEGREE=5,CARDINALITY=10

BOTH

NONE

33. WRITE THE CODE TO CREATE TABLE CUSTOMER(CID PRIMARY 2 points


KEY,CNAME,PHONE) USE APPROPRIATE DATATYPES *

Your answer

34. * 2 points

Your answer

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 13 of 14
CS_UT2_2022 29/01/22, 12:38 PM

35. CONSIDER THE TABLE STUDENT WITH COLUMNS/FIELDS 4 points


SID,NAME,DOB. WRITE THE PYTHON CODE TO FETCH ALL RECORDS
WITH ABOVE FIELDS FROM DATABASE "DB". *

Add file

Submit Clear form

Never submit passwords through Google Forms.

This form was created outside of your domain. Report Abuse - Terms of Service - Privacy Policy

Forms

https://docs.google.com/forms/d/e/1FAIpQLSfBsDU9fHUXYX9QllJb6W8s9tf8_zS1yaOhqIpyKHY4jqkqJw/viewform Page 14 of 14

You might also like