0% found this document useful (0 votes)
36 views4 pages

Revision Tour

Cs class 11 revision

Uploaded by

amangupta.65568
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)
36 views4 pages

Revision Tour

Cs class 11 revision

Uploaded by

amangupta.65568
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/ 4

Revision Tour (previous year questions)

1. State True of False csbe sample paper 2023-24

‘In a Python program, if a break statement is given in nested loop, it terminates the execution of
all loops in one go”
2. What will be the output of the following statement csbe sample paper 2023-24

Print(3-2**2**3+99/11)
a. 244 b. 244.0 c. -244.0 d. error
4. which of the following will delete key-value pair for key=”RED” from a dictionary D1?
a. delete D1(“RED”) (b) del D1[“RED”]
c. del.D1[“RED”] (d) D1.del[“RED”]
5. consider the statement given below and then choose the correct output from the given
option
Pride=”#G20 Presidency”
Print([-2:2-2])
a. ndsr b. ceieP0 c. ceieP d. yndsr
6. which of the following is not a sequential datatype in python?
a. Dictionary b. string c. List d. Tuple
7. Given the following dictionary
Day={1:”Monday”, 2:”Tuesday”, 3:”Wednesday”}
8. Which statement will return “Tuesday”
a. Day.pop() b. Da.pop(2)
c. Day.pop(1) d. Day.pop(“Tuesday”)
9. consider the given expression
7<4 or 6>3 and not 10==10 or 17>4
Which o the following will be the correct output if the given expression is evaluated
a. true b. false c. none d. null
10. select the correct output
s="Python is fun"
l=s.split()
s_new='-'.join([l[0].upper(),l[1],l[2].capitalize()])
print(s_new)
a. PYTHON-IS-Fun
B. PYTHON-is-Fun
c. Python-is-Fun
d. PYTHON-Is-Fun
11. Which of the following statements(s) would given an error during execution of the following
code?
tup=(20,30,40,50,80,79) #statement1
print(tup) #statement2
print(tup[3]+50) #statement3
tup[4]=80 #statement4
12. Assertion(A): List is an immutable data type
Reasoning(R): When an attempt is made to update the value of an immutable variable, the old
variable is destroyed and a new variable is created by the same name in memory.
(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
13. predict the output of the following code:
S='LOST'
L=[10,21,33,4]
D={}
for i in range(len(S)):
if I%2==0:
D[L.pop()]=S[I]
else:
D[L.pop()]=I+3
for K, V in D.items():
. print(K,V,sep="*") 4*L 33*4 21*S 10*6
14. What will the following expression be evaluated to in python
Print(6/3+4**3//8-4)
a. 6.5 (b) 4.0 (c) 6.0 (d) 4
15. Which of the following function is valid build-in function for both list and dictionary
datatype?
(a) items() (b) len() (c) update() (d) values()
16. Given is a python string declaration”
NAME= “”Learning Python is Fun”
Print(NAME[-5:-10:-1])
17. Select the output of the code
S= “Amrit Mahotsav @ 75”
A= S.split(“ “, 2)
print(A)
18. Write the python statement to declare a dictionary named classRoll with keys as 1, 2, 3 and
corresponding values as ‘Reena’, ‘Rakesh’, ‘Zareen’ respectively.
19.which of the correct data type for variable vowels defined in the following python statement.
Vowel=(‘A’, ‘E’, ‘I’, ‘O’, U’)
(i) list (ii) Dictionary (iii) Tuple (iv) Array
20. which is data type in python
(a) set (b) None (c) Integer (d) Real
21. Given the following dictionaries
Dict_exam={“Exam”:”AISSCE”, “YEAR”:2023}
Dict_result={“Total”:500, “Pass_marks”:165}
Ans. Dict_exam.update{dict_result}
22. evaluate (15.0/4+(8+3.0)) 14.75
23. give the output
Myexam=”@@CBSE examination 2022@@”
print(myexam[::-2])
@20 otnmx SC@
24. write the outuput
Mydict={“name”:”Aman”, “age”:26}
My_dict[‘age’=27]
My_dict[‘address’]=”Delhi”
print(mydict.items())
ans – dict_items([‘name’,’aman’),(‘age’,27),(‘address’,’delhi’)])
25. tuple tup1=(10,20,30,40,50,60,70,80,90)
print(tup1[3:7:2])?
Ans. (40,60)

You might also like