Class 11 IP Annual Exam (QP) Sample Paper 1
Class 11 IP Annual Exam (QP) Sample Paper 1
Class 11 IP Annual Exam (QP) Sample Paper 1
com
Section –A
1 A computer along with hardware and software together is called _______
a) Hardware Unit c) Computer System
b) Software Unit d) Input Unit
2 1 ZB = ___________
a) 1024 MB c) 1024 PB
b) 1024 GB d) 1024 EB
3 The process of Fetching or retrieving deleted or corrupted and lost data from
secondary storage is known as –
a) Data Recovery c) Restoring Data
b) Data Backup d) Data Deletion
4 Which of the following acts as an interface between the device and operating
systems?
a) Language Processor c) Antivirus Software
b) Device Driver d) Operating System
5 Ansh is working in python interactive mode. He noticed this symbol - >>> but
forgot what it is called? Select an appropriate option for him out of these?
a) Python Shell c) Python prompt
b) Python Script d) Python Interpreter
6 Which of the following is a python built-in editor popularly used to write scripts?
a) Jupyter Notebook c) Spyder IDE
b) PyCharm IDE d) CPython IDLE
7 Which of the following statement is not correct about python keywords?
a) Keywords defined by user
b) Keywords cannot be used as an identifier
c) Keywords convey a special meaning to python interpreter
d) Keywords are case-sensitive
8 Which of the following statement is used to iterate over a range of values or
sequence?
a) if c) if-elif-else
b) if-else d) for
9 Which of the following is invalid method for lists?
a) list() c) setdefault()
b) append() d) extend()
10 Which following methods are correct to add element into the dictionary object d?
d={1:’Virat’,2:’Rahul’,3:’Surya’}
a) d[4]=’Hardik’ c) Both a) and b)
b) d.setdefault(4,’Hardik’) d) None of these
11 Which of the following is not RBDMS software?
a) Oracle c) MySQL
b) MS Excel d) MS Access
12 The design of data is known as
a) Database Schema c) Data Dictionary
b) Data Constraint d) Database Instance
13 The SQL statements ends with
a) , b) : c) ; d) “
14 Shiv wants to see the table structure in MySQL. Select an appropriate command to
help him.
a) use c) desc
b) show d) display
15 Sahil wants to delete a primary key constraint from the table. Select an appropriate
command which help him.
a) Create c) Drop
b) Alter d) Delete
16 Rajveer wants to rename column in display result for his query. He has given he
following queries, select correct query for him:
a) select ename, salary*12 Annual Salary from emp;
b) select ename, salary*12 rename “Annual Salary” from emp;
c) select ename, salary * 12 change “Annual Salary” from emp;
d) select ename, salary*12 as “Annual Salary” from emp;
Q17 and Q18 are ASSERTION and REASONING based questions. Mark the correct
choice as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
Section – B
19 What is the purpose of a software? Explain in detail.
20 Shiv has written following code into python but he is not able to get the correct
output.
n=int(“Enter number”)
triple=n**3
Print(“Number three times:”,n)
Identify the syntax and logical errors and write the correct code. Underline each
correction.
OR
Do as directed:
i. Assign 5 to a variable x.
ii. Write statement to compute the square of given number.
Section – C
26 Priyam is Class XI student. She is learning some basic commands. Suggest some
SQL commands to her to do the following tasks:
i. To show the lists of existing databases
ii. Select a database to work
iii. Create a new database named Annual_Exam
OR
Observe the following table and write answers for the below given questions:
Table Name: Movie
Movie_id Movie_name Category releasedate Director
M0001 Ghandhi Godse History 2023-01-26 Rajkumar Santoshi
M0002 Faraaz Action 2023-02-03 Hansal Mehta
M0003 Shehzada Drama 2023-02-10 Rohit Dhawan
M0004 Bawaal Null 2023-04-07 Nitesh Tiwari
i) Write command to add movie_id as primary key.
ii) Write command to change the size of category column to 50 characters.
iii) Write command to delete column releasedate
Section – D
31 Given a list l=[13,14,15,112,125.7,[12,11,10,15],188], answer the following
questions:
a) Write code to print [14,112,[12,11,10,15]]
b) Write code to print [13,15,125.7,188]
c) Write code to print [14,125.7]
d) Write code to print [12,11,10,15]
e) Write code to print [188,125.7,15,13]
OR
Write a program to accept n number of elements into the list and print only
palindrome numbers from the list.
32 Consider the following dictionary:
od={1:’One’,3:’Three’,5,’Five’,7:’Seven’,9:’Nine’}
Perform the below mentioned operations in the dictionary:
i) Write command traverse a dictionary and print key value in this manner
1 – One
3 – Three
5 – Five
7 – Seven
9 - Nine
ii) Write command to print only keys of dictionary
iii) Write command to print only the values which doesn’t contain ‘n’
iv) Write command to print the corresponding value to the key 7
v) Write command to delete the last element of dictionary
OR
Write a program to create a dictionary with rollno, name and marks of n no. of
students and display names of students who have scored more than 90 marks in
any subject.