XIInfo Pract PT2406
XIInfo Pract PT2406
__________________________________________________________________________________
General Instruction:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Mention examples for each selected question.
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.
All programming questions are to be answered using Python Language only
SECTION A – 18 MARKS
(a) \a (b) \t
(c) \n (d) \b
Q13. To convert the read value through input() into a floating point 1
number, _____ () is used.
x=3
if x == 8:
elif x == 3:
else:
pass
Q15. If the user inputs: 2, what does the following code snippet 1
print ?
x = float(input())
if(x == 1):
print("Yes")
print("Maybe")
else:
print ("No")
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the
correct choice as
SECTION B – 14 MARKS
OR
x=1
if x > 3 :
if x > 4 :
print ("A", end = ' ')
else :
print ("B", end = ' ')
elif x < 2:
if (x != 0) :
print ("C", end = ' ')
print ("D")
SECTION C – 15 MARKS
print (x)
print (p)
print (q)
OR
a) x = 10
y=0
while x > y :
print (x, y)
x=x-1
y += 1
b) count = 0
print ("Hello")
count += 1
OR
Q30. What is the similarity and difference between for and while 3
loop? Mention example of each to support your answer.
SECTION D – 8 MARKS
x,y=20,60
print(x,y)
OR
x=40
y=x+1
x=20,y+x
print(x,y)
SECTION E – 15 MARKS
More than 90 A
Between 80 & 90 B
Between 60 & 80 C
Below 60 D
OR
Unit Price
OR
3650.0 days
87600.0 hours
5256800:0 minutes
315360000.0 seconds