Welcome to your Python MCQ(M3-R5) Chapter-1
1.
What value does the following expression evaluation to? print(5 + 8*((3*5)-90/10)
2.
Which is not a feature of python language?
3.
What is the output of >>>float('12.6')?
4.
Python is a __object-oriented programming language?
5.
Raw data assigned to a variable is called as?
6.
Which of the following expression results in an error?
7.
How many arguments a Python program can accept from the command line?
8.
Which of the following declarations is incorrect in python language?
9.
Is the following python code valid? >>> a,b,c=1,2,3>>> a,b,c
10.
What is the output of the following statement? print. (2, 4) + (1, 5))
11.
Which one of the following is a mutable data type?
12.
Python Programs are typed in___?
13.
Which of the following declarations is incorrect?
14.
Which of the following variable declaration is incorrect ?
15.
What will be the output of the following python statement?1. >>>print(format ("welcome", "10s"), end='#') 2. >>>print (format (111,"4"), end= '#') 3. >>>print (format (924. 656, "3. 2f"))
16.
Select all option that print hello-how-are-you?
17.
What is the output of the following code?24 // 6%3, 24 //4 //2
18.
What will be the output of the following code?l=list('HELLO') P=L [0],[-1],1[1;3] print('a={0}, b={1}, c={2}' .format (*p))(
19.
Which will be the output of the following python expression if x=56. 236? print ("%. 2f " %x)
20.
What will be the output of the following python code? >>>a=("check")*3>>>a
21.
Which of the following is incorrect regarding variables in python?
22.
What will be the output of the following expression? a =2 b=8 print ( a|b) print ( a>>1)
23.
Which of the following cannot be a variable?
24.
Which of the following data types is not supported in python?
25.
Which of the following statements are correct?(i) Python is a high level programming language. (ii) Python is an interpreted language. (iii) Python is a compiled language. (iv) Python program is compiled before it is interpreted
26.
What will be the output of the following code? print (type (type(int)))
27.
All Keywords in Python are in__?
28.
False statement in python ?
29.
What will be the output of the following python expression if x=456? print ("%-06d"%x) print ("d"%x) print("%'%x)
30.
___ is correct regarding the object-oriented programming concept in Python?
31.
What will be the output of the following code? x=2 y=5,3 add =x+y print (add)
32.
What is the output of>>>'2' + '3'?
33.
What will be the output of the following expression? print (7//2) print (-7 //2)
34.
Which type of Programming does Python support ?
35.
Which of the following is correct about Python?
36.
What is output for below code? a=2 b=3 print (a, b) a, b=b,a print(a,b)
37.
What will be the output of the following code? "The {} side {1}{2}'. format (' bright',' of', ' life')
38.
Why does the name of local variable start with an underscore denote?
39.
Which of the following statement will be true?
40.
What is the output of following program? a=4.5b=3print (a//b)
41.
Which of the following is valid Python identifiers?
42.
What is mean by dynamically typed language?
43.
What will be the datatype of the var in the below code snippet? var = 10 print (type(var)) var = "ram" print (type (var ))e
44.
Which of the following will give error?
45.
The____ mode of Python gives instant result of typed statement?
46.
Which of the following is not valid Python indentifiers?
47.
What will be the value of X in the following python expression? X=2+9*((3*12)-8)/10
48.
Find the output of the following python code? print('it/'s ok, don\'t worry')
49.
What is the output of below code? a="Careerbodh" b=13 print (a+ b )
50.
Which of the following expression is correct?