Professional Documents
Culture Documents
Practice Paper
Practice Paper
Question 1
1. my_day_2
2. 2nd_day ✓
3. Day_two
4. _2
Question 2
1. eval ✓
2. assert
3. nonlocal
4. pass
Question 3
1._init_
2. in ✓
3. it
4. on
Question 4
1. Lists
2. Dictionary
3. Tuples
4. Class ✓
Question 5
1. x^y
2. x**y ✓
3. x^^y
4. none of these
Question 6
1. 14
2. 27 ✓
3. 12
4. 0
Question 7
1. 0.0
2. 0 ✓
3. 1.0
4. 1
Question 8
1. 17
2. 14
3. 15 ✓
4. 23
Question 9
The expression 8/4/2 will evaluate equivalent to which of the following expressions:
1. 8/(4/2)
2. (8/4)/2 ✓
Question 10
Which among the following list of operators has the highest precedence?
1. <<, >>
2. ** ✓
3. I
4. %
Question 11
1. float('12')
2. int('12')
3. float('12.5')
4. int('12.5') ✓
Question 12
1. print("hello\example\test.txt")
2. print("hello\\example\\test.txt") ✓
3. print("hello\"example\"test.txt")
4. print("hello"\example"\test.txt")
Question 13
Question 14
1. @
2. % ✓
3. + ✓
4. #
SET-II
Find the valid identifier from the following
s) S_name
print(L[2:5])
[6,82,5]
a) ? b) < c) ** d) and
d) and
a) print(Tup[1])
b) Tup[2] = 90
c) print(min(Tup))
d) print(len(Tup))
b) Tup[2]=90
Name the built-in mathematical function / method that is used to return square root of a number.
sqrt()
d) list
If the following code is executed, what will be the output of the following code? str="KendriyaVidyalayaSangathan"
print(str[8:16])
Vidyalay