MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Python
Python Technical Interview
Quiz 1
1
2
3
4
5
6
7
8
Q.1
What will be the output of the “hello” +1+2+3?
a) hello123
b) hello
c) Error
d) hello6
Q.2
What will be the output of the following Python statement? >>>chr(ord('A'))
a) A
b) B
c) a
d) Error
Q.3
What will be the output of the following Python statement? >>>print(chr(ord('b')+1))
a) a
b) b
c) c
d) A
Q.4
The format function, when applied on a string returns ___________
a) Error
b) int
c) bool
d) str
Q.5
What will be the output of the following Python code? >>>print("D", end = ' ')>>>print("C", end = ' ')>>>print("B", end = ' ')>>>print("A", end = ' ')
a) DCBA
b) A, B, C, D
c) D C B A
d) D, C, B, A will be displayed on four lines
Q.6
What will be the output of the following Python statement?(python 3.xx) >>>print(format("Welcome", "10s"), end = '#')>>>print(format("4d"), end = '#')>>>print(format(924."3.2f"))
a) Welcome# 111#924.66
b) Welcome#111#924.66
c) Welcome#111#.66
d) Welcome # 111#924.66
Q.7
What will be displayed by print(ord(‘b’) – ord(‘a’))?
a) 0
b) 1
c) -1
d) 2
Q.8
Say s=”hello” what will be the return value of type(s)?
a) int
b) bool
c) str
d) String
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page