Worksheet IP 11 E
Worksheet IP 11 E
INFORMATICS PRACTICES(065)(2023-24)
TIME ALLOWED: 03 HOURS M.M.: 70
QUESTION PAPER
GENERAL INSTRUCTIONS:
SECTION-A
Each question carries 01
marks
Q. QUESTIO MAR
N KS
N
O.
01 What will be the output of the following code 13 or len(13) 1
.
02 Which are valid identifiers? 1
.
a) @ab b)_basicsalary c)4a b d)if
03 C=10 3 Which operator should be used to get the value of c as 1 1
.
a) /
b) //
c) %
d) None of the mentioned
04 What will be the output of the following code 1
.
Evaluate the following expression
(a) 10.0 (b) 6.0 (c) 9.0 (d) 12.0
05 Predict the output of the following code: 1
.
X=3
x==6: Print(“ok”)
else:
print(“no
output”) a . ok
b. okok
c. no output
d. none of above
06 Identify the type of data L=[2,6,8,10] 1
.
i)List ii) Tuple iii) Dictionary iv) Boolean
07 Which of the following functions will return length of a dictionary? 1
.
(a) len( )
(b) length()
(c) items()
(d) all of these
08 What MySql command will be used to open an already existing 1
. database “LIBRARY
(a) Use (b) Open (c) Show (d) Delete
09 Inatable‘Employee’,acolumn‘Occupation’containsmanyduplicatevalues.Which 1
. keywordwouldyouuseifyouwishtolistonlydifferentvalues?
(a) Rename (b) Distinct (c) Alter (d) Update
11 Which of the following command is used to remove the rows from a table> 1
.
(a) Delete (b) Drop (c) Kill (d) Truncate
15 What is the component that used to both read and writes data 1
.
(a) ROM (b) RAM (c) Hard drive (d) Cache memory
27 Write a program in Python to input a number and print whether it is odd or even? 3
.
30 (a) Mr. Mittal is using a table with following columns: Name, Class, Stream_Id, 2
. Stream_Name. He needs to display names of students who have not been +
assigned any stream or have been assigned Stream_Name that ends with 1
‘computers’. He wrote the following command, which did not give the desired
result.
SELECT Name, Class FROM Students WHERE
stream_Name=NULL or
Stream_Name=’%computers’;
Help Mr. Mittal to run the query by removing the error and write correct query.
(b)A table FLIGHT has 4 rows and 2 columns and another table AIRHOSTESS
has 3 rows and 4 columns. How many rows and columns will be there if we
obtain the Cartesian product of these twotables?
SECTION-D
Each question carries 05 marks
31 Consider the table RESULT given below Write commands in MySql for (i) to 5
. (iv) and output for
(v) to (vii):
(i) To list the names of those students, who have obtained Division
as FIRST in the ascending order of Name.
1
MARKING SCHEME
SECTION-A
Each question carries 01 marks
Q. NO. QUESTIO MA
N R
KS
0 13 1
1
.
0 b)_basicsalary 1
2
.
0 c)% 1
3
.
0 c) 9.0 1
4
.
0 a) ok 1
5
.
0 i) 1
6
.
0 i) len ( ) 1
7
.
0 a 1
8
.
0 b 1
9
.
1 a 1
0
.
1 a 1
1
.
1 c 1
2
.
1 a 1
3
.
1 b 1
4
.
1 B RAM 1
5
.
1 i)Biometric sensor 1
6
.
1 d 1
7
.
1 b 1
8
.
SECTION-B
Each question carries 02 marks
1 An application software is the set of program necessary to carry out 2
9 the operations for a specified application eg . Railway Reservation,
.
Hotel Management etc.
System Software are the type of software that controls the
internal computer operations eg operating systems, device
drivers, language
processor.
2 An Interpreter converts HLL program into machine language line and 1
0 simultaneously executes the converted lines. If an error occurs in a line, +
. 1
the line is displayed and interpreter does not proceed unless the error is
fixed
A compiler converts and HLL program in a machine language in one go.
If there are error in the program, it gives the error list along the line
numbers. Once the errors are removed, error-free object code is made
available and
after this compiler is no more needed in memory.
2 Linux, Unix, Windows, Macintosh etc. 2
1
.
2 Obtaining data and converting into digital form is called dta capturing. It 2
2 is done by the input device.
.
(iv) INSERT INTO Result VALUES (7, "Mohan", 500, "English", 73,"Second");
(V) 475 VI 6 (VII) 38
3 (a) Primary key :- custormerid, softwareid, licenceid alternate key, 5
2 comanyname, combination of softwarename+operating system foreign key
.
cusomerid,softwareid
(b) select * from software where operating system=”linux”
(c) update license set cost=cost+(cost*.10) where dateofpurchase>=”021=01-01”
3 (a) select firstname, lastname from employe_data where gender=”Female” 5
3
and departmentnumber=”Fin101”
.
(b) select * from employee_data where departmentnumber is NULL;
(c) select * from employee_data where departmentnumber IN
(SDE1, SDE2,SDE3,PM1,PM2)
Section-E
3 n=int(input 4
4 ()) f=1
for i in
range(1,n+1):
f=f*i
print(“factorial is”,f)
3 Tejvir Singh has created an empty dictionary using the command k={ }. Now he 4
5 has written following codes without knowing its result. Help him to know and
.
understand the output of the following statements(i.e Dictionary status/items) he
has written:-
k={ } a) {1: 1}
b) {1: 1, '1': 2}
a) k[1]=1
c) {1: 2, '1': 2}
b) k[‘1’]=2
d) {1: 2, 'A': 21}
c) k[1]=k[1]+1
d) k.pop(‘1’) (1 mark each for correct answer
SAMPLE QUESTION PAPER
CLASS XI
SUBJECT:INFORMATICS PRACTICES(065)
GeneralInstructions:
PART A
1 WhichofthefollowingisvalidarithmeticoperatorinPython: 1
(i)//(ii) &&(iii) > (iv)and
2 Out Of The Following,whichoneisanexampleforUtilitysoftware? 1
a. Operating System
b. Antivirus Software
c. compiler
d. MSWord
3 In DML, M stands for 1
a. maintain
b. manage
c. manipulation
d. manipulate
4 Which of the following is correct? 1
a. Keywords can be used as a variable name.
b. Variablenamecanstartwithadigit.
c. Variable Name Can Start With An Underscore.
d. Variable Name Can Have Symbols like: @,#,$ etc.
5 Identify The odd one from the following: 1
a. MySQL
b. SQLite
c. Python
d. Oracle
6 considerL=(2,3,4).What's The Output Of Print(L*2)a.(2,3,4),(2,3,4 1
) b.
(2,3,4,2,3,4)
c.(2,2,3,3,4,4)
d.error
7 A candidate key that is not a primary 1
key are called
a. Superkey
b. AlternateKey
c. PrimaryKey
d. ForeignKey
8 The Device Capable of recognizing a pre-specified type 1
markmadewithdarkpencilorink
a. OCR
b. OMR
c. MICR
d. Barcodereader
9 Evaluate: 1
not(1==1and0!
=1)
a. True
b. False
c. Error
d. Cannot Say
1 The Number Of Rows In a relation is called 1
0 a. Tuple
b. Attribute
c. Cardinality
d. Degree
1 WhichoneisnotacharacteristicofBigData? 1
1
a. Volume
b. Variety
c. Velocity
d. Virtual
1 IdentifythecorrectSQLquerytocreateadatabasenamedSCHOOL 1
2
a. CREATESCHOOL;
b. CREATEDATABASE SCHOOL;
c. CREATE SCHOOL DATABASE;
d. CREATEDATABASE SCHOOL;
1 1GB is equivalent to 1
3 a. 210 bytes
b. 230 bytes
c. 220 bytes
d. Noneoftheabove
1 Which SQL command helps to fetch data from a relation. 1
4
a. Use
b. Show
c. Fetch
d. Select
1 In IoT,T stands for 1
5
a. Technology
b. Things
c. Technical
d. Traffic
1 D1={1:‘India’,2:‘Russia’,3:‘World’} 1
6
D2={‘School’: ‘EOIS’, ‘Place’:
‘Moscow’}print(D1.update(D2))
Write The Output Of The Above Code:
a. None
b. {1:'India',2:'Russia',3:'World','School':'EOIS','Place':'Moscow'}
c. Error
d. Noneoftheabove
Q17and18areASSERTIONANDREASONINGbasedquestions.
Mark The Correct Choices
i. Both A and R are true and R is the correct explanation forA
ii. Both A and R are True And R is not The Correct Explanation forA
iii. AisTruebutRis False
iv. A is falsebutRisTrue
1 Assertion(A):MySQL opensource. 1
7
Reason(R):MySQLisnotavailableforfreeofcost.
PART B
1 Distinguish Between Primary Memory And Secondary Memory? 2
9 OR
What Is The Function Of Inputdevices?Writeanytwoexamples?
OR
What will be the output?for
sum range(2,10, 2):
s=0print(num,end=’’
)s=s+num
print(“sum=”,s)
2 Arvind is learning MySQL for managing different databases and tables for 2
4 his Python based application/software. Tell him the SQLcommands for the
following:-
(i) How To Show Pre-existing databases.
(ii) How To use a desired database
2 Withthehelpofsuitabletable,explaincandidatekeyandalternatekey? 2
5
PARTC
2 Briefly Explain Computer System With Neat Diagram 3
6
2 Evaluatethefollowinga.17 3
7 //5
b.25>10 and 50<10
c.15<5 or 7>10and3>2 or not 5d.
2 a. WhatarethedifferentdatatypesinSQL. 1+2
8
b. DifferentiatebetweencharandvarchardatatypeinSQL?c.
2 a. Explain Grid Computing. 3
9
b. List Out The Three Cloud Computing Services?
c. WriteanytwoapplicationsofArtificialIntelligence
OR
What Is Bigdata? What are the characteristics of big data?
3 Consider The Given List,L=[20,30,40,100].What Will Be The Output Of The 3
0 following:
i. print(L*2)
ii. print(L[-2])
iii. print(L.pop())
OR
i. ListoutanytwoexamplesforRDBMS.
ii. Write any two advantages of database
over traditional file system.
iii. What Is SQL?
iv. Writethedatatypeforthecolumnteachernameandexperie
nc e.
v. WhichSQLclauseisusedtoapplyconditiontoindivid
ual rows.
3 Limawantstowriteaprogramforcurrencyconversion.Therateforcurrencyconv 5
2 ers ionis1$=₹72.50.Answer The Following Questions:rupee=input("Enter the
amount in rupees:")#Statement 1 dollar=rupee//72.5#Formula For
Conversion#(Statement2) if dollar>1:#Statement3
print("Amountindollarsis:",dollar,end='')#Statement4
else:
print("Enter valid amount!!!",end= '')print("Thank You For Using
Currency Converter!")
OR
Explain The Following Terms With An Example Table:
i. Relation
ii. Tuple
iii. Domain
iv. primary key
v. cardinality
PART E
3 Consider the following table “ACTIVITY” and 1+1+2
4 answer the following question based on thistable?
CLASS XI SUBJECT:INFORMATICS
PRACTICES(065)
ANSWER KEY
PARTA
1 (i)// 1
2 Antivirus Software 1
3 Manipulation 1
4 Variable Name Can Start With An Underscore. 1
5 Python 1
6 b.(2,3,4,2,3,4) 1
7 AlternateKey 1
8 OMR 1
9 False 1
1 Cardinality 1
0
1 Virtual 1
1
1 CREATEDATABASE SCHOOL; 1
2
1 230bytes 1
3
1 Select 1
4
1 Things 1
5
1 None 1
6
1 iii 1
7
1 i 1
8
PART B
1 Any two correct differenceOr Function Of Input 2
9 Device(1mark),two eg(1 mark)
2 a. OpenOffice-Free And Open Source 2
0 b. AdobePhotoshop-Proprietary
c. Skype-Freeware
d. Python-Free And Open Source
2 p=100.0q 2
1 =160.0
(1 mark for each correct answer)
2 DDL-, DROP, ALTERDML- 2
2 INSERT,UPDATE
2 3315 2
3
Or
2468
Sum=8
2 a. 3 3
7
b. False
c. False
2 a. Int,date,float,decimal,char,varchar(Any Four-1 mark0 3
8
b. Any Two difference(2 mark)
2 a. A grid is a computer network of geographically dispersed and 3
9 heterogeneous computational resources. Unlike cloud, whose
primary focus is to provide services, a grid is more application specific
and creates a sense of a virtual supercomputer with an enormous
processing power and storage.(1 mark)
b. Infrastructure as a Service (IaaS), Platform as a
Service(PaaS),Software asaService (SaaS)-1 mark
c. (Any Two Application)-1mark
Handwriting Recognition, Gaming
Intelligent RobotsNaturalLanguage
Processing
OR
(definition-1 mark,characteristics with explanation-2mark)
DatasetsofenormousvolumeandcomplexityarecalledBigData.Characteristics of
BigData:
o Volume:Enormous Size.
o Velocity:Rateatwhichthedataunderconsiderationisbeing
generatedandstored.
o Variety : Data set has varied data, such as
structured,semistructuredandunstructureddata.Someexamplesarete
xt,i mages,
videos,webpagesandsoon.
o Veracity:Veracityreferstothetrustworthinessofthedata.Bigdatac
an besometimesinconsistent,biased,noisy.
o Value:Bigdatapossesstohavehiddenpatternsandusefulknowledge.
3 a. 3
0 [20,30,40,100,20,30,40,100
] b.40
c.100
or
explanationwitheg,eachcarries1mar
k
PART D
3 5
1 i. SELECT*FROMSCHOOLWHERESUBJECT=’
EN GLISH’;
ii. SELECTCODE,TEACHERNAMEFROMSCHOOL;
iii. SELECTSUBJECTFROMSCHOOL;
OR
i. MySQL,oracle,SQlite,Postgres(any two-1mark)
ii. Database facilitates centralized storing, Reduces
Datainconsistency, Reduces data redundancy, Sharing of data
ispossible etc (Anytwocorrectpoints-1 mark)
iii. StructuredQueryLanguage(SQL)isastandardlanguageforaccessi
ng andmanipulatingdatabases.(1mark)
iv. Teachername-char/
varchar(1/2
mark)Experience-int(1/2
mark)
v. WHERE(1mark)
3 i. Typeconversionfunctiontobeused
2
ii.b./
iii.a.Singlelinecomment
iv.c.float
v.Amountindollarsis:2.0Thankyoufor usingcurrencyconverter!
3 5
3 i. CREATE TABLE
ORGANISATION(ECODEINT,NAMEVARCHAR(10),POSTVARCH
AR (20),SGRADVARCHAR(4),DOJDATE);
ii. INSERT INTO ORGANISATION
VALUES(2006,“REENA”,”DEPUTY MANAGER”,”D001”,”22-
DEC-2012”);
iii. SELECTPOSTFROMORGANISATION;
iv. SELECTNAME,POSTFROMORGANISATIONWHERE
SGRADE=’D003’;
v. SELECTSGRADE,POSTFROMORGANISATION;
OR
i. Relation-TablesinRelationalDatabase
ii. Tuples-Records/Rowsinarelation
iii. Domain-Setofvaluestaken foranattribute
iv. Primarykey -Keyattributethatuniquelyidentifiesatuple
v. Cardinality – No. of Tuples/records in a
relation(explanationwith eg table-1 mark
foreach)
PART E
3 a. DEGREE=5,CARDINALITY=5(1mark) 4
4
b. DEGREE=7,CARDINALITY=5(1mark)
c. ACODE as PRIMARY KEY, Because it is unique and notnull(2
mark) OR
Anytwodifferencewitheg(2mark)
3 a. i.Monday,Tuesday,Wedneday,Thursday(1mark)ii.Tuesd 4
5 ay( 1 mark)
b. D[5]=’Friday’(2mark)
Or
delD[3](2 mark)
ANSWERKEY
PARTA
1 (i)// 1
2 Antivirussoftware 1
3 Manipulation 1
4 Variablenamecanstartwithanunderscore. 1
5 Python 1
6 b.(2,3,4,2,3,4) 1
7 AlternateKey 1
8 OMR 1
9 False 1
1 Cardinality 1
0
1 Virtual 1
1
1 CREATEDATABASESCHOOL; 1
2
1 230bytes 1
3
1 Select 1
4
1 Things 1
5
1 None 1
6
1 iii 1
7
1 i 1
8
PART B
1 Any two correct differenceOr 2
9 Functionofinputdevice(1mark),twoeg(1 mark)
2 e. OpenOffice-Freeandopensource 2
0
f. AdobePhotoshop-Proprietary
g. Skype-Freeware
h. Python-Freeandopensource
2 p=100.0q 2
1 =160.0
(1markforeach correctanswer)
2 DDL-, DROP, ALTERDML- 2
2 INSERT,UPDATE
2 3315 2
3
Or
2468
Sum=8
2 (iii) SHOWDATABASES; 2
4
(iv) USE<DATABASENAME>
2 Candidatekeyandalternatekeywithexampl 2
5 e
PART C
2 Diagram- 3
6 1.5markExplanatio
n- 1.5mark
2 d. 3 3
7
e. False
f. False
2 c. Int,date,float,decimal,char,varchar(Anyfour-1mark0 3
8
d. Anytwo difference(2 mark)
2 d. A grid is a computer network of geographically dispersed 3
9 andheterogeneous computational resources. Unlike cloud,
whoseprimary focus is to provide services, a grid is more
applicationspecific and creates a sense of a virtual supercomputer
with anenormous processingpower an storage.(1mark)
e. Infrastructure as a Service (IaaS), Platform as a
Service(PaaS),Software asaService (SaaS)-1 mark
f. (Anytwoapplication)-1mark
Handwriting Recognition, Gaming
Intelligent RobotsNaturalLanguage
Processing
OR
(definition-1mark,charctersiticswithexplanation-2mark)
DatasetsofenormousvolumeandcomplexityarecalledBigData.Characteristics of
BigData:
o Volume:Enormoussize.
o Velocity:Rateatwhichthedataunderconsiderationisbeing
generatedandstored.
o Variety : Data set has varied data, such as
structured,semistructuredandunstructureddata.Someexamplesarete
xt,i mages,
videos,webpagesandsoon.
o Veracity:Veracityreferstothetrustworthinessofthedata.Bigdatac
an besometimesinconsistent,biased,noisy.
o Value:Bigdatapossesstohavehiddenpatternsandusefulknowledge.
3 a. 3
0 [20,30,40,100,20,30,40,100
] b.40
c.100
or
explanationwitheg,eachcarries1mar
k
PART D
3 5
1 v. SELECT*FROMSCHOOLWHERESUBJECT=’
EN GLISH’;
vi. SELECTCODE,TEACHERNAMEFROMSCHOOL;
vii. SELECTSUBJECTFROMSCHOOL;
OR
vi. MySQL,oracle,SQlite,Postgres(any two-1mark)
vii. Database facilitates centralized storing, Reduces
Datainconsistency, Reduces data redundancy, Sharing of data
ispossible etc (Anytwocorrectpoints-1 mark)
viii. StructuredQueryLanguage(SQL)isastandardlanguageforaccessi
ng andmanipulatingdatabases.(1mark)
ix. Teachername-char/
varchar(1/2
mark)Experience-int(1/2
mark)
x. WHERE(1mark)
3 i. Typeconversionfunctiontobeused
2
ii.b./
iii.a.Singlelinecomment
iv.c.float
v.Amountindollarsis:2.0Thankyoufor usingcurrencyconverter!
3 5
3 vi. CREATE TABLE
ORGANISATION(ECODEINT,NAMEVARCHAR(10),POSTVARCH
AR (20),SGRADVARCHAR(4),DOJDATE);
vii. INSERT INTO ORGANISATION
VALUES(2006,“REENA”,”DEPUTY MANAGER”,”D001”,”22-
DEC-2012”);
viii. SELECTPOSTFROMORGANISATION;
ix. SELECTNAME,POSTFROMORGANISATIONWHERE
SGRADE=’D003’;
x. SELECTSGRADE,POSTFROMORGANISATION;
OR
vi. Relation-TablesinRelationalDatabase
vii. Tuples-Records/Rowsinarelation
viii. Domain-Setofvaluestaken foranattribute
ix. Primarykey -Keyattributethatuniquelyidentifiesatuple
x. Cardinality – No. of Tuples/records in a
relation(explanationwith eg table-1 mark
foreach)
PART E
3 d. DEGREE=5,CARDINALITY=5(1mark) 4
4
e. DEGREE=7,CARDINALITY=5(1mark)
f. ACODE as PRIMARY KEY, Because it is unique and notnull(2
mark) OR
Anytwodifferencewitheg(2mark)
3 c. 4
5 i.Monday,Tuesday,Wedneday,Thursday(1mark)ii.Tuesd
ay( 1 mark)
d. D[5]=’Friday’(2mark)
Or
delD[3](2 mark)