CBSE Sample Papers for Class 11 Informatics Practices Set 7 with Solutions – Merit Batch
CBSE Sample Papers for Class 11 Informatics Practices Set 7 with Solutions – Merit Batch
Students must start practicing the questions from CBSE Sample Papers for Class 11 Informatics Practices with
Solutions Set 7 are designed as per the revised syllabus.
General Instructions:
SOLVED
Question 1.
(i) Converts the output in binary form to human readable form. [1]
(A) Input devices
(B) Output devices
(C) Storage device
(D) None of these
Answer:
(B) Output devices [1]
Explanation: An output device is any piece of computer hardware equipment which converts information into a
human- perceptible form or, historically, into a physical machine-readable form for use with other non-computerized
equipment. It can be text, graphics, tactile, audio, or video.
(iv) A constraint written after all the column definitions are over in CREATE TABLE command is applicable to- [1]
(A) Last column
(B) First column
(C) Invalid syntax
(D) Complete table
Answer:
(D) Complete table [1]
Explanation: A column constraint is applicable only to a column whereas a table-constraint is applicable to multiple
columns.
(v) Virtual Reality (VR) is a ______ dimensional, computer-generated situation that simulates the real world. [1]
(A) One
(B) Two
(C) Three
(D) N-dimensional
Answer:
(C) Three [1]
Explanation: Everything that we experience in our reality is perceived through our senses. From this came the idea
that if we can present our senses with made-up or non-real information, our perception of reality would also alter in
response to that Virtual Reality (VR) is a three-dimensional, computer-generated situation that simulates the real
world.
Question 2.
(a) What do you mean by pen drive ? [1]
Answer:
Pen drive is a data storage device that consists of flash memory with a portable USB. [1]
RAM ROM
(i) RAM is volatile and is erased when the computer is (i) ROM is non-volatile and generally cannot be
switched off. written to.
(ii) RAM is used for both read and write. (ii) ROM is used only for reading.
(c) What are the advantages of using general purpose software ? [2]
Answer:
Advantages of using general purpose software:
(i) These are relatively cheap.
(ii) Easily available.
(iii) Thoroughly tested.
(iv) Easy to use [2]
Question 3.
(a) In how many ways, you can work with Python? [1]
Answer:
You can work in Python with two ways
(i) Interactive Mode
(ii) Script Mode. 1
(e) Why does the expression 2 + 3*4 result in the value 14 and not the value 20? [2]
OR
Write a program to print negative, zero or positive according to whether variable x is less than zero, zero or greater
than zero respectively. [2]
Answer:
Operator precedence rules make the expression to be interpreted as 2 + (3*4) hence the result is 14. [2]
OR
num = int (input (“Enter the number if num > 0 :
print (“Number is positive”) elif (num < 0) :
print (“Number is negative”) else :
print (“zero”) [2]
Answering Tip:
Use colon after conditional statements as if, for, ! i while, else, etc.
(f) Write a Python program to take in two strings and display the larger string. [4]
Answer:
string1 = input (“Enter first string:”)
string2=input(“Enter second string:”)
a=0
b=0
for i in string1:
a=a+1
for j in string2:
b=b+1
if (a<b):
print (“Larger string is:”)
print (string2)
elif(a==b):
print(“Both strings are equal.”)
else:
print(“Larger string is:”)
print(string1) [4]
Question 4.
(a) What do you mean by Data Abstraction in DBMS? [3]
Answer:
Data abstractions in DBMS refers to the hiding of unnecessary data from the end users, Database systems have
complex data structures and relationships. These difficulties are masked so that users may readily access the data,
and just the relevant section of the database is made accessible to them through data abstraction. [3]
(b) Consider the following table CLASS and predict the output of the following queries
1 ANJEALI 72 59
2 RAM 85 75
3 JOY 26 91
4 YASH 56 82
(ii) SELECT (ENG+ COMPUTER)/2 AS ‘AVG’ FROM CLASS WHERE ROLL =3;
Answer:
AVG 58.5
(d) What is alternative key give a suitable example? What is difference between candidate key and alternate key? [4]
Answer:
Difference between candidate key and alternate key: Alternate key is a key that can be work as a primary key.
Basically, it is a candidate key that currently is not the primary key. Example: Admission No becomes Alternate Keys
when we define Registration No. as Primary Key, in any table.
Candidate Key is a set of attributes that uniquely identify tuples in a table. Candidate Key is a super key with no
repeated attributes. Alternate Key is a column or group of columns in a table that uniquely identify every row in that
table. [4]
Question 5.
(a) Define the first property of a relation. [1]
OR
Can primary key contain NULL entry also? [1]
Answer:
The first property of a relation is its name which is represented by the title or entity identifier.[1]
OR
No [1]
(b) Write command to create table Hospital whose fields are [2]
H_ID int
Name char
Department varchar
Address varchar
No_of_Staff int
Fees int
Answer:
CREATE TABLE Teacher
(H_ID int Primary Key,
Name Char (20),
Department Varchar(20),
Address Varchar (30),
No_of_Staff int,
Fees int); [2]
(c) From table Hospital in Q. No. (5) (b), answer the following questions: [2]
(i) Identify the primary key
(ii) Identify the candidate key
Answer:
(i) H_ID
(ii) H_ID,Name 2
(e) What do you understand by Referential integrity? What are the conditions for it? [4]
Answer:
Referential integrity is a system of rules that a DBMS uses to ensure that relationships between records in related
tables are valid and that users don’t accidentally delete or change related data. To set referential integrity ensures
that,
(i) The matching field from the primary table is a primary key or has a unique indeed.
(ii) The related fields have the some data types,
(iii) Either both the tables belong to the some database or they must be of some DBMS format. The database must
be open to set referential integrity. [4]
(f) Consider the table ABC given below, write commands in SQL for (i) to (iv):
(i) Display the Name, and City of People residing in Udhamwara city.
(ii) Display all records of table ABC.
(iii) Display the Name and city of all the females getting Basic Salary above 40000.
(iv) Display Name and Basic Salary of all the persons whose Name is garima. [4]
Answer:
(i) SELECT Name, City FROM ABC WHERE
City=”Udhamwara”;
(ii) SELECT * FROM ABC;
(iii) SELECT Name , City FROM ABC WHERE Gender =’F’ AND Basic Salary >40000;
(iv) SELECT Name Basic Salary FROM ABC
WHERE Name = “Garima”; [4]
Question 6.
(a) Predict the output of the following code
x=3
y=2
z =x + y-2 + 3 * 2
x=y+2
Z=X+z
print (“Python Program”)
print (“Value of x : “, x)
print (“Value of y : “, y)
print (“Value of z : “, z) [2]
Answer:
Output
Python Program
Value of x : 4
Value of y : 2
Value of z : 13 [2]
(d) State when only first argument be evaluated and when both in following expressions,
if a = 12, b = 26, c = 23 and d =0.
(i) b > c and c > d
(ii) a< = bor c < = d
(iii) (b + c) > = a and not (c < a)
(iv) b < d and d < a [2]
Answer:
(i) both
(ii) first
(iii) first
(iv) first [2]
Question 7.
(a) Define the following terms:
(i) IaaS
(ii) PaaS. [2]
Answer:
(i) IaaS:
IaaS stands for Infrastructure as a Service that contains the basic building blocks for cloud IT. It provides access to
networking features, computers and data storage space.
(ii) PaaS:
PaaS stands for Platform as a Service that removes the need for you to manage underlying infrastructure and
allows you to focus on the deployment and management of your application. [2]
8. Lists are the container which store the heterogeneous elements of any type as integer, character, floating that
store in square brackets [ ].
Consider the following list: [4]
(i) To print the value 6.7, the python statement will be:
(A) L[2][l]
(B) L[2][—2]
(C) L[-4][1]
(D) All of the above
Answer:
(D) All of the above
(ii) The length of L is:
(A) 8
(B) 6
(C) 17
(D) None of these
Answer:
(B) 6
Recent Posts