quiz Python Programming MCQ Practice

corporate_fare Computing and Information Technology
school B.Sc. Computer Science
30 Questions
0 Completed
0 Correct
0 of 30 completed
visibility You're studying as a guest — progress isn't saved. Sign in to track progress
help Question 1
radio_button_unchecked

Who developed Python Programming Language?

help Question 2
radio_button_unchecked

Which type of Programming does Python support?

help Question 3
radio_button_unchecked

Is Python case sensitive when dealing with identifiers?

help Question 4
radio_button_unchecked

Which of the following is the correct extension of the Python file?

help Question 5
radio_button_unchecked

Is Python code compiled or interpreted?

help Question 6
radio_button_unchecked

All keywords in Python are in _________

help Question 7
radio_button_unchecked

What will be the value of the following Python expression? print(4 + 3 % 5)

help Question 8
radio_button_unchecked

Which of the following is used to define a block of code in Python language?

help Question 9
radio_button_unchecked

Which keyword is used for function in Python language?

help Question 10
radio_button_unchecked

Which of the following character is used to give single-line comments in Python?

help Question 11
radio_button_unchecked

What will be the output of the following Python code? i = 1 while True: if i%3 == 0: break print(i)   i + = 1

help Question 12
radio_button_unchecked

Which of the following functions can help us to find the version of python that we are currently working on?

help Question 13
radio_button_unchecked

Python supports the creation of anonymous functions at runtime, using a construct called __________

help Question 14
radio_button_unchecked

What is the order of precedence in python?

help Question 15
radio_button_unchecked

What will be the output of the following Python code snippet if x=1? x<<2

help Question 16
radio_button_unchecked

What does pip stand for python?

help Question 17
radio_button_unchecked

Which of the following is true for variable names in Python?

help Question 18
radio_button_unchecked

What are the values of the following Python expressions? print&#40;2**&#40;3**2&#41;&#41; print&#40;&#40;2**3&#41;**2&#41; print&#40;2**3**2&#41;

help Question 19
radio_button_unchecked

Which of the following is the truncation division operator in Python?

help Question 20
radio_button_unchecked

What will be the output of the following Python code? l=&#91;1, 0, 2, 0, 'hello', '', &#91;&#93;&#93; print&#40;list&#40;filter&#40;bool, l&#41;&#41;&#41;

help Question 21
radio_button_unchecked

Which of the following functions is a built-in function in python?

help Question 22
radio_button_unchecked

Which of the following is the use of id() function in python?

help Question 23
radio_button_unchecked

The following python program can work with ____ parameters. def f&#40;x&#41;: def f1&#40;*args, **kwargs&#41;: print&#40;&quot;Sanfoundry&quot;&#41; return x&#40;*args, **kwargs&#41; return f1

help Question 24
radio_button_unchecked

What will be the output of the following Python function? print&#40;min&#40;max&#40;False,-3,-4&#41;, 2,7&#41;&#41;

help Question 25
radio_button_unchecked

Which of the following is not a core data type in Python programming?

help Question 26
radio_button_unchecked

What will be the output of the following Python expression if x=56.236? print&#40;&quot;%.2f&quot;%x&#41;

help Question 27
radio_button_unchecked

Which of these is the definition for packages in Python?

help Question 28
radio_button_unchecked

What will be the output of the following Python function? print&#40;len&#40;&#91;&quot;hello&quot;,2, 4, 6&#93;&#41;&#41;

help Question 29
radio_button_unchecked

What will be the output of the following Python code? x = 'abcd' for i in x: print&#40;i.upper&#40;&#41;&#41;

help Question 30
radio_button_unchecked

What is the order of namespaces in which Python looks for an identifier?