Class 12th Mock Paper
Class 12th Mock Paper
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 ()
(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
(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.
Q.11 Write outputs for SQL queries (i) to (iii) and write queries (iv) to (vi) which are based on the given table PURCHASE: