F SQP Ip 2023-24
F SQP Ip 2023-24
F SQP Ip 2023-24
ANNUAL EXAMINATION
Session: 2023-24
Class: XI
Time: 3 HOURS M.M.: 70
General Instructions:
SECTION A
1 _____________ is the process of retrieving deleted, corrupted and lost data from the 1
secondary storage devices.
2 Arrange TB, KB, GB, MB in descending order of the memory units. 1
(i) TB>MB>GB>KB
(ii) MB>GB>TB>KB
(iii) TB>GB>MB>KB
(iv) GB>MB>KB>TB
3 Which smaller unit of the CPU directs and coordinates all activities within it and 1
determines the sequence in which instructions are executed. Also, sends instruction
sequence to other smaller units.
(i) CU
(ii) ALU
(iii) Processor
(iv) Input Unit
4 Identify the type of software in the situation given below: 1
“Ms. Reeta wants to computerize or automate the library, she requires a set of programs
on a computer to handle the system of the library and serve the purpose of issuing book,
returning a book, adding a new book, etc. “
(i) Application Software
(ii) System Software
(iii) Generic Software
(iv) Specific Purpose Software
5 Identify the correct data type of x, if x= False: 1
(i) Dictionary
(ii) String
(iii) Boolean
(iv) List
6 Choose the correct option: 1
2nd_digit = 14
Statement 1: Above statement is correct
Statement 2: An identifier cannot have any special characters other than the underscore
(_), digits, uppercase, or lowercase characters. And, it should start with an alphabet or an
underscore.
(i) Only statement 1 is true
(ii) Only statement 2 is true
(iii) Both statement 1 and 2 are true, but statement 2 is not the correct explanation of
statement 1.
(iv) Both statement 1 and 2 are true, but statement 2 is the correct explanation of
statement 1.
7 Which of the following statement will create the list: 1
(i) list1 = list()
(ii) list1=[]
(iii) list1=list([1,2,3])
(iv) All of the mentioned
8 Which of the following is a correct SQL query syntax to delete all rows in a table along 1
with the table structure?
(i) Delete from table_name;
(ii) Delete table table_name;
(iii) Drop table table_name;
(iv) Delete * from table_name;
9 The value ‘DAV’ is assigned to an attribute A of type varchar(20). The value ‘School’ is 1
assigned to the attribute B of datatypechar(20). So, the attribute A has _________ spaces
and attribute B has _________ spaces reserved in the memory.
(i) 3,20
(ii) 20,3
(iii) 3, 6
(iv) 20,6
10 State True or False: 1
The IS NULL operator returns true if a NOT NULL value is found, otherwise, it returns
false.
11 Identify the category of MySql for the following commands: 1
Insert, Update, Delete
(i) 1 row
(ii) All the rows where Stu_Id is equal to 109
(iii) No rows
(iv) 2 rows
13 Which of the following are the synonyms for Column and Row of a table? 1
1.Row = [Tuple, Record]
2.Column = [Field, Attribute]
3. Row = [Tuple, Attribute]
4. Column = [Field, Record]
SECTION B
19 a) Name one external storage device. 2
b) “Many a times we discard our old, broken or malfunctioning storage devices without
taking care to delete data.”
Suggest any one method to remove the data so that it cannot be recovered from the
storage device.
OR
Identify the odd one out:
a) Vacuum tubes, Transistor, Capacitors, Integrated Circuits
b) Nibble, KB, HB, MB, GB
20 Predict the output of the following code: 2
x=99
y=88
z=90
print( x>y, y!=z)
x=z%y
z=x**2
print(x,z)
21 Find errors in the following code fragment.(Rewrite the program underlining the 2
corrections)
m,n=85;range(100)
if m in n :
print("Equal)
print("May be”)
else:
print("Not Equal"):
22 Consider a list: 2
l=[10, 5, 5, 10]
Write the command which will produce the following output:
a) [5,5]
b) 30
OR
Consider the following code fragment and answer the following:
if x<5:
y=1
elif x==5:
y=2
else:
y=3
a) For what value of the variable x should the variable y comes out to be 2?
b) Consider the initial value of the variable x as6, than what should be the value of
the variable y?
23 Rewrite the following queries underlining the corrections made: 2
a) Alter table empdelete column gender;
b) Select name from table student where name=”%an%”;
OR
a) Arrange the following terms in the order of their creation at the time of storing data in
RDBMS :
Data, Database, RDBMS, Table
b) Give one example of open source RDBMS.
Table: Employee
Emp_Id Emp_Name Emp_Dept Emp_Salary
101 Harish Sales 50000
102 Sarita Manager 80000
103 Pushpa Sales 60000
104 Anuj Engineer 70000
a) Help Riya to write the query that would produce the following output in MySql:
Emp_Salary+1000
51000
81000
61000
71000
b) Ms. Riya had created the table Employee with the following structure in MySql:
The very next day when she saw the structure again, it was little different. She
was unable to understand the reason behind it. Which MySql command did she
execute, that made the following change in the structure?
OR
“All candidate keys are eligible to become a primary key”
Justify the above statement with the help of an example.
25 Ms. Sarla is working in an ABC Organization. She has been told to create a database 2
named Companyto store the data of the organization. Help her to write the SQL
commands to:
a) create the database
b) open the database
SECTION C
26 a) Convert the following for loop into while loop : 2
num=30
for n in range(10,num,3):
print(“Hello Boss!”)
b) How many times will the above loop execute? 1
State_Id No_Of_Trees
101 2000
102 4000
103 3000
104 1000
105 5000
Select No_Of_Trees*5 from Trees where No_Of_Trees between 3000 and 5000;
Term/Application Field
Chatbot a)
Refrigerator automatically connected to b)
Internet
Paying through crypto currency c)
SECTION D
31 a) Match the following: 2
b) Ms. Anaya has been given a task to analyze the class result. She has given data in the 2
form of dictionary where keys are roll numbers and values are its corresponding grades.
Consider the items of dictionary Grade as given below:
Grade={1: 'A', 2: 'B', 3: 'A', 4: 'A', 5: 'C', 6:'D'}
Help her to count the number of students who have scored ‘A’ grade.
SECTION E
33 Consider the table ‘Voter’ given below and write suitable SQL queries for the following: 5
Table: Voter
Voter_Id Name_Of_Voter DOB City Income
V2383 Amit Trehan 1975-15-03 New Delhi 20000
V1527 Gurbani Sharma 2003-08-07 Faridabad 30000
V3780 Aman 1976-01-19 Gurgaon 40000
V4447 Karan Yadav 1975-02-22 Old Delhi 60000
a) Display the Voter_Id and Name_Of_Voter from the table Voter.
b) Add a column Aadhar in the table Voter.
c) Display the details of all the voters who lives in Delhi.
d) Change the name of the Voter having Voter ID ‘V3780’ to Aman Gupta.
e) Display DOB of all the voters whose income is less than 30000;
34 Consider a table ‘G20_Schedule’ given below: 5
Start_Date End_Date Meeting_On Venue Days
2023-08-09 2023-08-12 Environment & Chennai 4
Climate
Sustainability
2023-08-09 2023-08-11 Anti Kolkata 3
Corruption
2023-08-10 NULL Women Gandhinagar 1
Empowerment
2023-08-16 2023-08-17 Joint Health Gandhinagar 2
Finance
2023-08-17 NULL Fourth Digital Bengaluru 1
Economy