100% found this document useful (1 vote)
4K views11 pages

Class 11 IP Sample Paper with Answers

This document contains an answer key for a sample exam on Informatics Practices for Class 11. It includes: 1) A section with multiple choice questions on topics like computer hardware, software, programming concepts, and databases. 2) A section with short answer questions requiring explanations or code snippets. Topics include software categories, converting Excel files to databases, and identifying data types. 3) A section with descriptive questions differentiating key database concepts and recommending SQL commands to accomplish tasks.

Uploaded by

Neelima Vijayan
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
100% found this document useful (1 vote)
4K views11 pages

Class 11 IP Sample Paper with Answers

This document contains an answer key for a sample exam on Informatics Practices for Class 11. It includes: 1) A section with multiple choice questions on topics like computer hardware, software, programming concepts, and databases. 2) A section with short answer questions requiring explanations or code snippets. Topics include software categories, converting Excel files to databases, and identifying data types. 3) A section with descriptive questions differentiating key database concepts and recommending SQL commands to accomplish tasks.

Uploaded by

Neelima Vijayan
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/ 11

Downloaded from www.tutorialaicsip.

com

Answer key Sample Paper 2 Annual Exam(Academic Year 2022-23)


Subject: Informatics Practices(065) Class 11
Time: 3:00 Hours Max. Marks: 70

Section –A
1 A CPU can be placed on one or more microchips called _______
a) Transistors c) Registers
b) Integrated Circuits (ICs) d) Vacuum Tubes
2 Which of the following is an input device?
a) Monitor c) Hard Disk
b) Printer d) Joy Stick
3 The first binary programmable computer was-
a) ENIAC c) MAC
b) UNIVAC d) EDVAC
4 IBM introduced the first PC in for the home user in
a) 1980 c) 1981
b) 1982 d) 1979
5 A program refers to
a) set of Commands executed by Computer c) runs the entire Operating System
b) software which runs in Operating System d) utility to provide basic function
6 Python was developed by
a) Bill Gates c) Guido Van Rossum
b) Monty d) Dennis Ritchie
7 Which of the following is invalid identifier?
a) Abc123 c) abc123
b) 123abc d) A1b2c3
8 If step value is not specified for range() function, the default value of step is
a) 0 c) -1
b) 1 d) None
9 Consider the given list: L=[‘Delhi’,’Mumbai’,’Kolkata’,’Chennai’], What L[3:2]

returns?

a) Empty List c) [‘Chennai’,’Kolkata’]

b) [‘Chennai’] d) [‘Kolkata’,’Chennai’]

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 1 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

10 Consider the given dictionary?


d={‘Ahmedabad’:’Gujarat’,’Mumbai’:’Maharasthra’,’Indore’:’Madhya Pradesh’}
What will be the output of print(d.get(‘Indore’))
a) Error c) 2
b) Madhya Pradesh d) Indore
11 _________ are used to ensure accuracy and reliability of data in database.
a) Database Schema c) Database Constraint
b) Database Instance d) Database Dictionary
12 The design of data is known as
a) Database Schema c) Data Dictionary
b) Data Constraint d) Database Instance
13 ______ can be made to get data from one table or more tables.
a) Forms b) Reports c) Tables d) Query
14 Which of the following datatype specifies text values with the length ranging from 0
to 255?
a) char c) date
b) varchar d) integer
15 Which of the following is not a characteristic of big data?
a) Volume c) Variety
b) Velocity d) Variable
16 _________ is a network of devices that have embedded hardware and software to
communicate with other devices on the same network:
a) Social Network c) Internet
b) Web d) IoT
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
(c) A is True but R is False
(d) A is False but R is True
17 Assertion(A): A database constraint can be added or removed any time from
database tables.
Reasoning(R): Alter table command is used to change the structure of table.
Ans.: A

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 2 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

18 Assertion(A): SQL has efficient mechanisms to retrieve data stored in multiple


tables in a MySQL database.
Reasoning(R): The SQL statement CREATE is used to retrieve data from the
tables in a database and is also called query statement.
Ans.: C

Section – B
19 Meet is preparing for an interview for the post of Software Developer. He has given
the task to identify the category of software to accomplish the given task and two
example of each. Help him to fulfil his need.
a) Perform basic calculations on data
Ans.: General Purpose Software
Examples: MS Excel, OO Calc
b) Fulfil the need of an individual and designed as per their requirements
Ans.: Tailormade software
Examples: ERP, Library Management System
20 Write a program to accept points in CCA activities, Projects and Discipline. Find the
average.
Ans.:
cca=int(input(“Enter Points for CCA:”))
pro=int(input(“Enter Points for Projects:”))
dis=int(input(“Enter Points for Discipline:”))
avg=(cca+pro+dis)/3
print(“Average is:”,avg)
OR
Identify python data type of the given variables and values:
i. a=’hello’ iii. found=True
ii. marks=80.75 iv. l=[3,7,8,2]
Ans.:
i) str ii) float iii) bool iv) list
21 Harmin joined a school as front office executive. The school management has given
him task to convert two excel worksheets STUDENT and ATTANEDANCE into a
database. The files contains following structure:
Student Attendance
Rno – To store roll no. of student Att_date – Date of attendance
Sname – name of student Rno – Roll no. of student
Dob – date of birth Sname – name of student
Guardian – Guardian name Status – present or absent
What changes Harmin has to do to convert these files into database?

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 3 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

Ans.: To convert these two files into the database these changes are required:
1) Sname is not required in both table. Rno is common field which can be used.
2) Guardian details for siblings also can be maintained for siblings studying in same
class.
3)An additional field GUID required to identify the guardian because sometimes
guardian names may be similar.
22 Define the following:
i. Attribute : The columns of a relation which contains characteristics or parameters
for which data are stored in a relation.
For example: rno, sname, guardianno etc.
ii. Cardinality: The no. of tuples or rows in a table is known as cardinality.
For example: If table contains 5 rows and 3 columns then it is said that the table
has 5 cardinality.
23 Differentiate between primary key and foreign key.
Ans.:
Primary Key Foreign Key
It is a field of relation which identifies A foreign key is an attribute of relation
table’s rows uniquely. which referenced via another table.
Primary key values cannot repeated. Foreign can be repeated.
OR
Differentiate between delete and drop command.
Ans.:
Delete Drop
Delete command is used delete rows Drop command is used to delete table or
from table. other database object.
Delete is DML command. Drop is DDL command.
24 Harshiv is working as Database Administrator in 5 start data solutions pvt. Ltd. He
wants to do the following, suggest him commands to accomplish his task:
a) He wants list all the table names present in a database
Ans.: Show tables
b) He wants to change the salary of employees in emp table
Ans.: Update
25 Write the full form of:
a) DDL – Data Definition Language c) DESC - Describe
b) DML – Data Manipulation Language d) SQL – Structured Query Language

Section – C
26 Differentiate between candidate key and primary key.

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 4 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

Ans.:
Candidate Key Primary Key
Candidate key means a column which Primary key is most important part of
can be used as a primary key. table to establish relationship.
Candidate key may or may not a primary Primary key is one of the candidate keys
key. of the table..
A table can have multiple candidate A table can have only primary key.
keys.
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
i) Write command to drop primary key from movie table.
Ans.: alter table moview drop primary key;
ii) Write command to rename column releasedate to release_date.
Ans.: alter table movie change releasedate release_date date;
iii) Write command to delete table movie
Ans.: drop table movie
27 What are the three models of cloud services? Explain each of them.
Ans.: The three standard models of cloud services are as follows:
1. IaaS (Infrastructure as a Service) - The IaaS providers can offer different kinds of
computing infrastructure, such as servers, virtual machines (VM), storage and
backup facility, network components, operating systems or any other hardware or
software. Using IaaS from the cloud, a user can use the hardware infrastructure
located at a remote location to configure, deploy and execute that cloud
infrastructure. They can outsource the hardware and software on demand basis and
pay as per the usage, thereby they can save the cost of software, hardware and
other infrastructures as well as the cost of setting up maintenance and security.
2. PaaS (Platform as a Service) - Through this service, a user can install and execute
an application without worrying about the underlying infrastructure and their setup.
That is, PaaS provides a platform or environment to develop, test, and deliver
software applications. In PaaS, the user has complete control over the deployed
application and its configuration. It provides a deployment environment for

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 5 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

developers at a much reduced cost lessening the complexity of buying and managing
the underlying hardware and software.
3. SaaS (Software as a Service) - SaaS provides on-demand access to application
software, usually requiring a licensing or subscription by the user. While using Google
doc, Microsoft Office 365, Drop Box, etc., to edit a document online, we use SaaS
from cloud. A user is not concerned about installation or configuration of the software
application as long as the required software is accessible. Like PaaS, a user is
provided access to the required configuration settings of the application software,
that they are using at present.
28 What is default constraint? How to apply default constraint using create table
command and alter table command?
Ans.: The default constraint is used to set a default for the field, if value is not
specified in insert command.
Example with create table command:
create table student
(rno int primary key,
sname varchar(20),
height float default 0);
Example with alter table command:
Alter table student
modify height float default 0;
29 Give the terms used for the following:
i) Collection of logically related records
Ans.: Table
ii) A file having description about data stored into the database
Ans.: Meta-data
iii) A special value that can be used to hold unknown values
Ans.: null
iv) A field which can identifies distinct records but not a primary key
Ans.: unique key
v) A constraint that does not allow to leave any blank cell in table
Ans.: not null
vi) Name any two data models that is used most commonly
Ans.: i. Object Oriented Model ii. Relational Model

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 6 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

30 Write a program to that finds factorial of given number.


Ans.:
N=int(input(“Enter any to find its factorial:”))
f=1
for i in range(N):
f*=1
print(“The factorial is:”,f)
OR
Write python program to find greatest common divisor of two numbers.
Ans.:
n1=int(input(“Enter number 1:”))
n2=int(input(“Enter number 2:”))
while n1!=n2:
if n1>n2:
n1-=n2
else:
n2-=n1
print(“GCD of”,n1,”and”,n2,”is”,n1)

Section – D
31 Given a list l=[“def”,”if”,”for”,”while”], predict the output of the following:
a) print(l[1:][:2])
Ans.: ['if', 'for']
b) print(l[1][1])
Ans.: ’f’
c) print(l[-2])
Ans.: ‘for’
d) print(l[:3])
Ans.: ‘if’
e) print(l[2][:2])
Ans.:’fo’
OR
Write a program to compute the square of each element in the list and print them

in reverse order.

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 7 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

Ans.:

L=[3,6,7,1]

l=[]

for i in L:

l.append(i**2)

print(l[::-1])

32 Write a python program to find the maximum marks and minimum marks from
given dictionary and print the difference between them.
Dictionary is as: {‘Henil’:78,’Kartvya’:82,’Avee’:93,’Dhruvin’:88,’Shaan’:94}
Ans.:
d={'Henil':78,'Kartvya':82,'Avee':93,'Dhruvin':88,'Shaan':94}
mx=max(d.values())
mn=min(d.values())
print("Maximum:",mx)
print("Minimum:",mn)
print("Difference:",mx-mn)
OR
What is a dictionary? Explain any four ways to create a dictionary with example.
Ans.:
Dictionary is one of the important data types of python. It is also known as
associated arrays which consist of key:value pair as element written inside curly
braces.
The four ways to create dictionary are as follows:
1) Empty dictionary: Empty dictionary does not have any element or item. It is
written with curly braces only.
Example: d={}
2) Using dict() function: The dict function allows to create dictionary. It accept the
parameters in list form with couple of elements.
Example: d=dict(rno=1,name='Madhuri',marks=55)
3) Creating dictionary with numeric keys: A numeric can be assigned to a
dictionary.
Example: d={1:’Monday’,2:’Tuesday’,3:’Wednesday’}

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 8 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

4) Creating dictionary with string as keys: The string can be assigned as keys.
Example: d={‘India’:’Virat Kohli’,’Austrailia’:’Steve Smith’,’Egnland’:’Jos Butler’}
33 a) Categorize the given commands into DDL and DML
i. INSERT ii. UPDATE iii. ALTER iv. CREATE
Ans.:
DDL – alter, create
DML – insert, update
b) What is the use of foreign key? Illustrate your answer with example.
Ans.: A foreign key is used to represent the relationship between two relations. A
foreign key is an attribute whose value is derived from the primary key of another
relation. This means that any attribute of a relation (referencing), which is used to
refer contents from another (referenced) relation, becomes foreign key if it refers
to the primary key of referenced relation. The referencing relation is called Foreign
Relation. In some cases, foreign key can take NULL value if it is not the part of
primary key of the foreign table.
Dept -
Deptno Dname loc
Emp –
Empno Ename Job deptno
OR
Consider the below given table and write queries for (i) to (v):
Table Name: Pet
Name Owner Species Gender Age
Monty Aditya Dog M 4
Badal Dev Horse M 4
Moti Motisingh Dog M 3
Mittu Harsh Parrot M 2
Pinky Kartvya Cat F 1
Sweety Vyas Cat F 2
i) Display all the details of pets in alphabetical order of names.
Ans.: select * from pet order by name;
ii) Display Name, owner and age of all pets whose age is 2 to 4 years.
Ans.: select name,owner,age from pet where age between 2 and 4;

iii) Increase the age of all pets by 1 year.


Ans.: update pet set age=age+1;
iv) delete all details of female pets

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 9 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

Ans.: delete from pet where gender=’female’


v) insert a new record: (‘Rosy’,’Rajveer’,’Dog’,’F’,2)
Ans.: insert into pet values (‘Rosy’,’Rajveer’,’Dog’,’F’,2)
34 Observe the partial code given below and fill in the given blanks to complete the
code:
date=____________ #Statement 1
days=______________# Statement 2
due_date=___________ # Statement 3
_______________# Statement 4
a) Enter the date into string format # Statement 1
Ans.: input(“Enter date in string form:”)
b) Enter days to be added # Statement 2
Ans.: int(input(“Enter days”))
c) Extract first two digits and add entered days # Statement 3
Ans.:int(date[:3])+days
d) Print the due date with proper message # Statement 4
Ans.:print(“Due date is:”,due_date)
35 Name the input devices and output devices from following:
a) To accept the spoken words as input
Ans.: mic or microphone or head phone
b) To accept data from photo
Ans.: scanner
c) What is plotter? What its primary function?
Ans.: A plotter is printer like device which is used to print photos and images. The
primary function of plotter is it make line drawings on paper with one or more
automated pens and like a regular printer, a plotter can draw continuous point-to-
point lines directly from vector graphic files or commands.
OR
What is braille keyboard? Why it is used?
Ans.: Braille keyboards are special keyboards available to help the visually impaired
people for entering data into a computer.

Follow this link to download more sample papers:


Download Papers IP Class 11

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 10 of 11 www.tutorialaicsip.com


Downloaded from www.tutorialaicsip.com

Facebook|Youtube|Instagram - @ TutorialAICSIP Page 11 of 11 www.tutorialaicsip.com

You might also like