0% found this document useful (0 votes)
31 views2 pages

Class 12th Mock Paper

Uploaded by

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

Class 12th Mock Paper

Uploaded by

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

Class 12th Information Practices

Monthly Test (October)


Kendriya Vidyalay Ratlam

Instructions - MM:40
Question 1 contain 10 marks.
Question 2 to 6 contain 2 marks each.
Question 7 and 8 consist 3 marks each.
Question 9 and 10 consist 4 marks each.
Question 11 is for 6 marks.
Q.1-
(a) Which one of the following functions is used to find the largest value from the given data in MySQL?
(a)MAX( ) (b)MAXIMUM( ) (c)BIG( ) (d)LARGE( )

(b) In SQL, which function is used to display current date and time?
(a)Date () (b)Time () (c)Current () (d)Now ()

(c) What will be printed by the given query? SELECT LENGTH(“WIN.NER”);


(a) 7 (b) 6 (c) 8 (d) 9

(d) In SQL, the equivalent of UCASE() is:


(a)UPPERCASE () (b)CAPITALCASE() (c)UPPER() (d)TITLE ()

(e) Which clause is used with “aggregate functions”?


(a) GROUP BY (b)SELECT (c) WHERE (d) Both A and B

(f) Write the output of the following SQL command: select truncate(15.88,1);
(a) 15.88 (b) 15.8 (c) 15.9 (d) 16

(g)Full form of SQL is____________:


(a) Structured Query Language (b) Structured Query List (c)Sample Query Language (d)None of these
(h) Which command is used to create a new database
(a) Create database (b) Create (c) Insert (d) Select

(i) Which kind of functions are used to perform arithmetic operations in MySQL?
(a) Text (b) String (c)Math (d)Date

(j) Which function returns the MINIMUM of the values under the specified column/expression:
(a) MAX (b)Round (c) MIN (d) Average

Q.2 Write MySQL query to select all the records from a given table named “Employee”.
Q.3 Write any two advantages of RDBMS.
Q.4 Shreedhar is working with a table Employee. The table contains the following columns:
Code, Name, Salary, DeptCode.
He wants to display the maximum salary department wise. He wrote the following query:
Select Deptcode, max(salary) from Employee;
But he did not get the desired result. Rewrite the above query with necessary changes to help him get the desired result
Q.5 What is primary key? Explain in one line.
Q.6 Write MySQL statement for the following:
(a)To create a database named HEALTH.
Q.7 Write MySQL statement: To create a table named Nutrients based on the following specification:
Column_name Datatype Constraints
Food_Name Varchar(20) Primary Key
Calorie Integer

Q.8 Explain the following MySql Functions with Examples (i) Round() (ii) Power() (iii) Mid()
Q.9 Consider the following table named Emp:
(i)Write a SQL query to find out average of the
Salary Column;
(ii)Write a SQL query to find out the maximum Salary.

Q.10 Write outputs for SQL queries (A) to (C) which are based on
the given table GAME.

(i) Select name, under, winner from GAME where


month(dateofgame)>7;
(ii) Select * from GAME where NAME=”JUDO”;

Q.11 Write outputs for SQL queries (i) to (iii) and write queries (iv) to (vi) which are based on the given table PURCHASE:

i. SELECT LENGTH(CNAME) FROM PURCHASE WHERE QUANTITY>100;


ii. SELECT CNAME FROM PURCHASE WHERE MONTH(DOP)=3;
iii. SELECT MOD (QUANTITY, DAY(DOP)) FROM PURCHASE WHERE CITY= ‘CHANDIGARH’;
iv. Write an SQL Query to arrange the records CNAME wise in Descending order.
v. Write an SQL Query to display records of all the customers belongs to “CHANDIGARH” City.
vi. Write Update Query to edit the name of CNO=C04 from “SAHIB” to “SARITA”.

You might also like