0% found this document useful (0 votes)
2 views

Preboard Class 11 IP with answer key

This document is a preboard examination paper for Class 11 Informatics Practices at DAV Public School, covering various topics in computer science and programming with Python. It consists of five sections with a total of 70 marks, including multiple-choice questions, short answers, and programming tasks. Students are required to answer all questions, which include theoretical concepts, SQL commands, and Python programming exercises.

Uploaded by

Saroj Narwal
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)
2 views

Preboard Class 11 IP with answer key

This document is a preboard examination paper for Class 11 Informatics Practices at DAV Public School, covering various topics in computer science and programming with Python. It consists of five sections with a total of 70 marks, including multiple-choice questions, short answers, and programming tasks. Students are required to answer all questions, which include theoretical concepts, SQL commands, and Python programming exercises.

Uploaded by

Saroj Narwal
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/ 5

DAV PUBLIC SCHOOL THERMAL COLONY PANIPAT

CLASS-11 SUBJECT –INFORMATICS PRACTICES


Time-3hrs. PREBOARD EXAMINATION SESSION 2023-24 MM-70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.

SECTION A
1. __________ controls sequential instruction execution, interprets instructions and guides data 1
flow through the computer’s memory.
a) ALU b) Control Unit c) Input Out Device d) Memory Unit
2. 1 ZB=________ 1
a) 1024 MB b) 1024GB c) 1024PB d) 1024EB
3. The process of Fetching or retrieving deleted or corrupted and lost data from secondary storage is 1
known as
a) Data Recovery b) Data Backup c) Restoring Data d) Data Deletion
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. “
a) Application Software b) System Software
c) Generic Software d) Specific Purpose Software
5. Who developed Python language and when?:- Guido Van Rossum in Feb 1991 1
6. Anshu is working in python interactive mode. He noticed this symbol - >>> but forgot what it is 1
called? Select an appropriate option for him out of these?
a) Python Shell b) Python Script c) Python prompt d) Python Interpreter
7. Predict the output of the following Python Code snippet:- 1
>>> a=[0,11,22,33,44,55,66,77,88,99]
>>> a[::3] [0,33,66,99]
8. Which of the following is not RBDMS software? 1
a) Oracle b) MS Excel c) MySQL d) MS Access
9. Shiv wants to see the table structure in MySQL. Select an appropriate command to help him. 1
a) use b) show c) desc d) display
10. Rajveer wants to rename column in display result for his query. He has given he following 1
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;
11. Ms. Jeevan wants to see the records of all those employees from EMP table whose name have 1
NULL entries. She has written the following query but is getting an error. Identify her mistake by
rewriting the correct query:
SELECT * FROM EMP WHERE ENAME = “NULL”;
SELECT * FROM EMP WHERE ENAME IS NULL;
12. Character data can be stored as 1
a) Fixed length String b) Variable length String
c) Either fixed or variable length string d) None
13. Table “Vendor” stores information of all vendors from different cities. Raman wants to see the 1
list of cities without any duplicate values. Suggest an appropriate keyword / clause that he should
use.
a) Display b) Distinct c) Delete d) Show
14. Which of the following commands can be used to ad a row to a table in MySQL? 1
a) Append b) Extend c) Select d) Insert into
15. __________________ is a subset of AI that enables the computers to self-learn from the 1
information and experiences gathered from their environment and apply that learning without
human intervention.
a) Augmented Reality b) NLP c) Machine Learning d) Cloud Computing
16. A company interested in cloud computing is looking for a provider who offers a set of basic 1
services such as virtual server provisioning and on demand storage that can be combined into a
platform for deploying and running customized applications. What type of cloud computing
model fits these requirements?
a) Platform as a Service b) Software as a Service
c) Infrastructure as a Service d) Application as Service
Q17 and 18 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
c) A is true but R is False
d) A is false but R is true
17. Assertion: Candidate keys that are not primary key are alternate keys. 1
Reasoning: A table can have many primary keys, but you can only use one of them as the
candidate key. As a result, all the other keys that not become the primary key are referred to as
the alternate keys. (c)
18. Assertion: Keys are unique in dictionary. 1
Reasoning: Dictionary entries or values can be accessed by their keys. You cannot have two
entries with the same key. (a)
SECTION B
19. Name the categories of system software alongwith one example of each 2
Operating System- Windows 95 onwards
Language Processor:- Assembler, Compiler, Interpreter
System Utilities:- Scandisk
Device Driver-Printer Driver
OR
What is the difference between RAM and ROM?
RAM refers to Random Access Memory, volatile and both read and write operations can be
performed.
ROM refers to Read Only Memory, non-volatile and only read operation can be performed.
20. Write a Python Program to accept two angles and find whether it is a linear pair or not? 2
(Hint:- Sum of Angles of Linear Pair is 180)
A=int(input(“Enter first angle”))
B=int(input(“Enter second angle”))
if(A+B)==180:
print(“It is a linear pair)
else:
print(“It is not a linear pair”)
21. What will be the output of the following? Where a=6, b=-4, c=26and d=-11 2
a) print (18%a) b) print (88//a)
c) print (a+b+c>a+c-b*d) d) print ((a+b-c)/d)

a) 0 b) 14 c) TRUE d) 2.1818
22. Sunita has written the following program to find the average of first ten numbers. The program 2
has certain error. Rewrite the program underlining the correction)
sum=0
for k in range (1,10):
sum=sum+k
Average= sum/10
print (Average)
OR
Find errors in the following code fragment. Rewrite the program underlining the correction
sum=2
for i in range(3,7):
if (i%4=0):
sum = -i
else:
sum+=2
print(sum)
23. Priyam is Class XI student. She is learning some basic commands. Suggest some SQL commands 2
to her to do the following tasks:
a) To show the lists of existing databases b) Select a database to work
c) Create a new database named Annual_Exam d) Delete a table
a) show databases; b) use <database name>;
c) create database Annual_Exam; d) drop table <table name>;
24. Aman has given the following table structure and asked to table in MYSQL. Help him by writing 2
create table command to accomplish his task
Table name:- Players

Column Name Datatype Size


Jersey_no Integer 2
Player_name Varchar 20
Matches_Played Integer 3
Runs Integer 5

Create table players (Jersey_no integer(2), Player_name varchar(20), Matches_Played integer(3),


Runs integer(5));
25. What is difference between Alter Table and Update commands of MySQL? 2
Alter Table is DDL command used to make changes in the structure of a table whereas Update is
DML command used to make changes in the existing data in the table.
SECTION C
26. a) Consider the following dictionary:- 3
dict1={1: “Monday”, 2: “Tuesday”, 3: “Wednesday”, 4: “Thursday”, 5: “Friday”, 6:
“Saturday”}
Give a command to add a new element with key 7 and value “Sunday” and check whether key 0
exists in the dictionary or not.
Dict1[7]=”Sunday”
0 in dict1
b) Rohit has created a dictionary “Student” having student name and roll numbers. As per the
new guidelines he needs to remove all the elements of the dictionary and redefine the key value
pairs. Suggest an appropriate command to delete all the contents of dictionary. Student.clear()
27. a) Define Keyword in context to python 3
Keyword is a special word that has a special meaning and purpose. These are reserved.
b) What is statement?
A statement is an instruction given to the computer to perform any kind of action.
c) what do you mean by debugging?
Removing the bugs/errors is called debugging.
28. What is SQL? Name and Explain different categories of commands available in SQL? 3
SQL is structured Query Language is a set of commands that is recognised by RDBMS.
DDL, DML, TCL are common three categories of SQL
OR
Mr. Advik wants to open an already existing database SPORTS. Also he wants to see the
structure and records entered in the table FootBall. Help him to write the commands.
Use sports; Desc football; Select * from football;
29. a) Write SQL command to create the table Result having following fields: 3
StuId, StuName, Marks and Grade
Choose the appropriate data types of the fields which creating table.
Create table result (StuId integer(3), StuName varchar(20), Marks integer(3), Grade varchar(2));
b) Which field according to you can be used as Primary Key and why?
StuId is best to be used as Primary Key as every student has it is unique Student Identity number.
30. a) List some of the cloud based services that you are using at present.- Google Drive, AWS 3
b) Justify the statement:- “Storage of data is cost effective and time saving in cloud computing”
In cloud computing, the on demand services are available instantly and one has to pay only for
the service and not for entire infrastructure. Hence it is cost effective and time saving.
SECTION D
31. a) Name two browsers used for browsing the Internet:- Google Chrome, Mozilla Firefox, etc. 4
b) Identify the category (system, application, programming tool) of the following software:
(i) Compiler (ii) Assembler (iii) Ubuntu (d) Text Editor
Compiler / Assembler / Ubuntu are system softwares and Text Editor is Programming tool
32. a) Write the result after execution the following code snippet:- 4
L1=[10,20,30,40]
L1.append([50,60])
print (L1) [10,20,23,40,[50,60]]
L1.extend([80,90])
print(L1) [10,20,30,40,[50,60],80,90]
b) What would be the output of the following codeL-
days={1:'Mon', 2:'Tue', 3:'Wed',4:'Thurs', 5:'Fri'}
print('Tue' in days) FALSE
print(10+ len(days)) 15
SECTION E
33. Write SQL Commands for the following:- 5

a) Display name of those customers whose transactions are more than 20.
b) Increase the number of Transaction of Nidhi by 1
c) Display the details of customers whose name contains “i”
d) Display all the details in descending order of Transactions
e) Add a column “Balance” in the table
a) select cust_name from bank where transaction>20;
b) update bank set transaction=transaction+1 where cut_name=”Nidhi”;
c) select * from bank where Cust_name like”%i%”;
d) select * from bank order by transaction desc;
e) alter table bank add (balance intger(5));
34. Write SQL commands of the following table:Table IP_ONLINE CLASSES 5

a) To display the details of workshop having a number of attendees between 33 or 26 or 40.


b) To display the Meeting_ID of all those who are using WEBEX application
c) To display the Application of all those meetings which have the word “ee” in its application
d) To display the HOST_NAME and NO_OF_HRS in decreasing order of
NO_OF_ATTENDEES;
e) To insert a row with the following data:-
(1099, “WEBEX”, “SAROJINI”, “ADVANCED DATA HANDLING”, 1, 30)
a) Select * from IP_Online_classes where no_of_attendees in (33,26,40);
b) Select meeting_id from IP_Online_classes where application = “Webex”;
c) Select application from IP_Online_classes where application like “%ee%”;
d) Select host_name, no_of_hrs from IP_Online_classes order by no_of_attendees desc;
e) insert into IP_online_classes values (1099, “Webex”, “Sarojini”, “Advanced data handling”, 1,
30);
OR
a) The symbol * in Select query retrieves all data from the table
b) Mr. Himank created a table “EXAM_DETAILS”. He created a column “DATE_OF_EXAM”
to store exam date. Suggest him the appropriate data type for that column. DATE
c) What do you mean by the term “Relation” in the context of RDBMS? Give an example
A table can be considered as relation in RDBMS.
d) Match the following clauses with respective functions

a-ii b-iii c-i d-iv


35. List1=[1,2,3,4,5,6,7,8,9,10] 5
Write the Python commands for 5 statements given below:
a) Remove last three elements from the list b) Add element 23 at index value 10
c) Display elements from 4 to 9
d) Display the index of the lement 5 present in list List1 e) Print the reversed list
a) del List1[-3:] b) List1.insert(10,23) c) print (List1[3:9])
d) List.index(5) e) print (List1.reverse())
OR
Consider the following dictionary:
Dict1={"lion": "wild", "tiger": "wild", "cat": "domestic", "dog": "domestic"}
Write the python statements to perform the following operations:
a) Delete key_value pair for the key "tiger" in the dictionary del(Dict1[“tiger”])
b) Display the length of the dictionary len(Dict1)
c) Change the value of the key‘cat’ to ‘Pet animal’ Dict1[“cat”]= “pet animal”
d) Display all thekeys present in the dictionary Dict1.keys()
e) Add a new item ‘Goat’: ‘Farm Animal’ Dict1[“Goat”]= “farm animal”

You might also like