0% found this document useful (0 votes)
25 views4 pages

Information Practices - Class-XII-PT-I

Information Practices -Class-XII-PT-I

Uploaded by

SOHAN RAJPUT
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)
25 views4 pages

Information Practices - Class-XII-PT-I

Information Practices -Class-XII-PT-I

Uploaded by

SOHAN RAJPUT
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/ 4

I.B.

S Global Academy
Periodic Test (2024-25)

Class: XII Subject: Information Practices


Time – 80 Minutes M.M.-40

General Instructions:
i. All questions are compulsory.
ii. This questions paper consists of 25 questions in four sections. Section A, B, C & D.
iii. Section A, consists of 10 questions (1-10). Each question carries 1 mark.
iv. Section B, consists of 7 questions (11-17). Each question carries 2 marks.
v. Section C, consists of 5 questions (18-22). Each question carries 3 marks.
vi. Section D, consists of 3 questions (23-25). Each question carries 4 marks.
Section - A
A. Multiple choice questions: (1*10=10)
1. Which of the following is the organised collection of large amount of interrelated
data stored in a meaningful way used for manipulating and updating?
a. Processor b. Database c. File d. Folder
2. Rows of a relation are called?
a. Relation b. tuples c. data structure d. None of these
3. A set of possible value is called
a. Attribute b. Domain c. Tuple d. All of these
4. Which of the following command is not a data manipulation command.
a. Update b. Select c. Insert d. Alter
5. Which of the following keyword is used to remove the redundancy from
the database?
a. Select b. From c. Distinct d. Unique
6. Which of the following is not a date function?
a. Month b. Year c. NOW d. POW
7. What will be printed by given query?
Select Length(“Winner”)
a. 7 b. 6 c. 8 d. 9
8. By default, Order by clause lists the results in order?
a. Descending b. Any c. Ascending d. Same
9. Which SQL function is used to count the number of rows in a table?
a. count ( ) b. print ( ) c. sum ( ) d. max ( )
10. Each question consists of two statements, namely, Assertion (A) and
Reason (R). For selecting the correct answer, use the following code:
Assertion (A) – The UNIQUE and PRIMARY KEY constraints are similar but
not the same.
Reason(R) - There can be one column with PRIMARY KEY constraint in a table.
a. Both Assertion (A) and Reason (R) are the true and Reason (R) is a correct
explanation of Assertion (A).
b. Both Assertion (A) and Reason (R) are the true but Reason (R) is not a correct
explanation of Assertion (A).
c. Assertion (A) is true and Reason (R) is false.
d. Assertion (A) is false and Reason (R) is true.
Section – B
B. Answer the following questions in very short. (Any five) (2*5=10)
11. What is difference between tuple and attribute.
12. Give any two characteristics of primary key.
13. What is difference between “%” and “-“ wild card characters with reference to like
of MySQL?
14. In how many ways, we can find the current date using MySQL?
15. What are different types of SQL functions??
16. What is the use of count function?
17. Help Reshma in predicting the output of the following queries.
i. Select Round (8.72,3);
ii. LTRIM (“ Space”);
Section – C
C. Answer the following short questions. (Any four) (3*4=12)
18. What is difference between DDL and DML Commands?
19. Explain aggregate function.
20. Define following functions using suitable example.
i. POWER ( ) ii. UCASE ( ) iii. MID ( )
21. Consider a table Salesman with the following data:
Table: Salesman
SNO SNAME SALARY BONUS Date_Of_JOIN
A01 Beena Mehta 30000 45.23 29-10-2019
A02 K. L. Sahay 50000 25.34 13-03-2018
A03 Nisha Thakkar 30000 35.00 18-03-2017
A04 Leela Yadav 80000 NULL 31-12-2018
A05 Goutam Gola 20000 NULL 23-01-1989
A06 Trapti Garg 70000 12.37 15-06-1987
A07 Neena Sharma 50000 27.89 18-03-1999
Write SQL queries using SQL functions to perform the following operations:
i. Display salesman name and bonus after rounding off to zero decimal places.
ii. Display the position of occurrence of the string “ta” in salesman Names.
iii. Display the month name for the date of join of salesman.
22. Based on table Students given here, write suitable queries for the
following.
Table: Student
No. Name Class Gender City Marks
1 Abhishek XI M Agra 430
2 Prateek XII M Mumbai 440
3 Sneha XI F Agra 470
4 Nancy XII F Mumbai 492
5 Himanshu XII M Delhi 366
6 Anchal XI F Dubai 256
7 Mehar X F Moscow 324
8 Nishant X M Moscow 429
i. Display gender wise highest marks.
ii. Display city wise lowest marks.
iii. Display total number of male and female students.

Section – D

D. Answer the following questions in detail. (Any two) (4*2=08)


23. Give output for following SQL queries as per given table(s):
Table: Sender
SenderID SenderName SenderAddress SenderCity
ND01 R Jain 2,ABC Appts New Delhi
MU02 H Sinha 12, Newtown Mumbai
MU15 S Jha 27/A, Park Street Mumbai
ND50 T Prasad 122-K, SDA New Delhi

Table: Recipient
RecID SenderID RecName RecAddress RecCity
KO05 ND01 R Bajpayee 5, Central Avenue Kolkata
ND08 MD02 S Mahajan 116, A Vihar New Delhi
MU19 ND01 H Singh 2A, Andheri East Mumbai
MU32 MU15 P K Swamy B5, C S Terminus Mumbai
ND48 ND50 S Tripathi 13, B1 D, Mayur Vihar New Delhi
i. Select Distinct Sendercity From Sender;
ii. Select RecName, RecAddress From Recipient
Where RecCity Not in (‘Mumbai”, Kolkata);
iii. Select RecID, RecName From Recipient
Where SenderID=’MU02’ OR SenderID=’ND50’;

24. Define following functions using suitable example.


i. SUBSTRING ( ) ii. RIGHT ( ) iii. SQRT ( ) iv. MONTH ( )
25. Given the following table:
Table: Student
No. Name Stipend Stream AvgMark Grade Class
1 Karan 400 Medical 78.5 B 12B
2 Divakar 450 Commerce 89.2 A 11C
3 Divya 300 Commerce 68.6 C 12C
4 Arun 350 Humanities 73.1 B 12C
5 Sabina 500 Nonmedical 90.6 A 11A
6 John 400 Medical 75.4 B 12B
7 Robert 250 Humanities 64.4 C 11A
8 Rubina 450 Nonmedical 88.5 A 12A
9 Vikas 500 Nonmedical 92.0 A 12A
10 Mohan 300 Commerce 67.5 C 12C

Give the output of following SQL statement:


i. Select Truncate (AvgMark) from student where AvgMark<75;
ii. Select Round (AvgMark)from student where Garde=’B”;
iii. Select Concat (Name, Stream) from student where Class=’12A’;
iv. Select Right (Stram,2) from student;

You might also like