HAYAGRIVA VIDHYASHRAM SCHOOL-SRIPERUMBUDUR
MID TERM TEST (2024-2025)
SUBJECT: COMPUTER SCIENCE
CLASS: XII MARKS: 70
DATE: TIME: 3 Hrs
General Instructions:
check this question paper contains 35 questions.
The paper is divided into 5 Sections- A, B, C, D and E.
Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks
Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks.
Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks.
All programming questions are to be answered using Python Language only.
SECTION-A
I. Answer in one word. (18*1=18)
1) Which of the following group functions ignore NULL values?
a) Max b) Count c) Sum d) All of these
2) When data changes in multiple lists and all list are not updated this causes
a) Data redundancy b) Information overload c) Duplicate data d) Data inconsistency
3) Which type of database management system stores data in tables with rows and columns?
a) Hierarchical Database b) Relational Database
c) NoSQL Database d) Object-Oriented Database
4) Which aspect of database management ensures that data is accurate, consistent and relatable?
a) Data Modelling b) Data Security c) Data Retrieval d) Data Integrity
5) What is the primary purpose of database management?
a) To design user interfaces b) To efficiently store, organize and manage data
c) To develop computer new d) To optimize website performance
6) Which of the following is NOT true about the primary key?
a) Uniquely identifies each record in the table b) Cannot have NULL values
c) A table can have only one primary key d) Allow duplicate values
7) All the keys that did not become the primary key are referred to as --------
a) Alternate key b) Composite key c) Foreign key d) Candidate key
8) The term SQL stands for:
a) Standard Query Language b) Sequential Query Language
c) Structured Query Language d) Server – Side Query Language
9) Which of the following allows you to query data from the database and also insert, delete, or edit
tuples?
a) DML b) DDL c) Query d) Relational schema
10) STATE (TRUE / FALSE) A LAN is a biggest network geographically
11) In the stack , if you try to remove an element from the empty stack, then it is called -------
a) Empty Queue b) Overflow of stack c) Underflow of stack d) Dequeue
12) Choose the correct output for the following sequence of the stack operation
Push (5)
Push (2)
Pop
Push (10)
Push (3)
Pop
a) 5 2 10 b) 5 2 10 3 c) 3 10 2 d) 5 10
13) STATE (TRUE/FALSE): Thicknet and thinnet are 2 types of coaxial cables.
14) Write the full form of TCP/IP
15) ------describes the maximum data transfer rate of a network or internet connection
16) Which of the following is an application of stack?
a) Finding factorial b) Reversing of a string c) Infix to postfix d) All of the above
II. Assertion and Reasoning (2*1=2)
DIRECTIONS
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false
(d) A is false but R is true.
(e) Both A and R are false
17) Assertion(A) : LIFO stands for Last In First Out
Reason (R) : An element may be inserted at both ends of the stack
18) Assertion(A) : Microwave provides better transmission than radio wave
Reason (R) : Due to its higher frequency property, microwave can be used for longer distance
SECTION-B
III. Very short Answer: (7*2=14)
19. Write the output produced by the following SQL commands:
a) SELECT POW(2,3);
b) SELECT ROUND(123.2345,2), ROUND(342.9234,-1);
20. Write a query to extract a sub string from string ‘Quadratically’ which should be 6 characters
long and start from 5th character of the given string.
21. Group the following as DDL and DML command.
DELETE, DROP, INSERT, CREATE
22. Differentiate between IN and BETWEEN operators in SQL with appropriate examples.
23. Enlist some applications of stacks?
24. Write the advantages of of Network.
25. Write the disadvantage of Twisted pair cable.
SECTION-C
IV. Answer briefly (5*3=15)
26. What is a stack? What basic operations can be performed on them?
27. Define the terms:
i) Primary key
ii) candidate key
iii) alternate key
28) Write the difference between Circuit switching and Packet switching?
29) Write functions in python for PushS(List) and for PopS(List) for performing Push and Pop
operations with a stack of List containing intergers.
30)
SECTION-D
IV. Answer elaborately (2*4=8)
31.(a). Write a function in python, Push(SItem) where SItem is a dictionary containing the details
of stationary items – {Sname:Price}
The function should push the names of those items in the stack who have price greater than 75
Also display the count of elements pushed into the stack.
For example:
If the dictionary contains the following data:
Ditem = {“Pen” : 106, “Pencil” : 59, “Notebook” : 80, “Eraser” : 25 }
The stack should contain
Notebook
Pen
The output should be:
The count of elements in the stack is 2
(or)
31. (b) Evaluate following arithmetic expression A which is in postfix notation. Show the contents of
the stack during the execution of the algorithm using the following:
A= 30, 5, 2 , **, 12, 6, /, +, +
32) Table : Student
No Name Stipend Stream AvgMark Grade Class
1 Karan 400.00 Medical 78.5 B 12B
2 Divakar 450.00 Commerce 89.2 A 11C
3 Divya 300.00 Commerce 68.6 C 12C
4 Arun 350.00 Humanities 73.1 B 12C
5 Sabina 500.00 Nonmedica 90.6 A 11A
l
6 John 400.00 Medical 75.4 B 12B
7 Robert 250.00 Humanities 64.4 C 11A
8 Rubina 450.00 Nonmedica 88.5 A 12A
l
9 Vikas 500.00 Nonmedica 92.0 A 12A
l
10 Mohan 300.00 Commerce 67.5 C 12C
Give the output of the following statements:
i) SELECT MIN(AvgMark) FROM STUDENT WHERE AvgMark < 75;
ii) SELECT SUM(Stipend) FROM Student WHERE Grade = “B”;
iii) SELECT AVG(Stipend) FROM Student WHERE Class = “12A”;
iv) SELECT COUNT(DISTINCT) FROM Student;
SECTION-E
V. Answer in detail (3*5=15)
33) Create table Customer as per following Table Instance Chart.
Column Cust_id Cust_name Cust_add1 Cust_add2 Pincode Cust_phone
Name
Datatype Number Varchar Varchar Varchar Number varchar
Length 7 30 20 30 6 10
i) Add one column Email of data type VARCHAR and size 30 to the table Customer.
ii) Add one more column Cust_income_Group of datatype VARCHAR(10)
iii) INSERT few records with relevant information in the table.
iv) Add primary key constraint to the column (Cust_id)
v) Drop the column Cust_incomne_Group from table Customner.
34) Write one advantage of Bus Topology of network. Also, illustrate how 4 computers can be
connected with each other using stat topology of network.
35) Based on network span or geographical spread, networks can be divided into two basic types
LAN and WAN, List some basic differences between LAN and WAN.