Pytho quiz

Is Python case sensitive when dealing with identifiers?
Yes
No
Is Python code compiled or interpreted?
Python code is both compiled and interpreted
Python code is neither compiled nor interpreted
Python code is only compiled
None of these
All keywords in Python are in _________
Capitalized
Lower case
UPPER CASE
None of the mentioned
Which keyword is used for function in Python language?
Function
Def
Fun
Define
What is the order of precedence in python?
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
What are the values of the following Python expressions?
512, 64, 512
512,512,512
64,512
None of above
What will be the output of the following Python code?
[1, 0, 2, ‘hello’, ”, []]
Error
[1, 2, ‘hello’]
None of these
What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
-4
-3
2
False
Which of these is the definition for packages in Python?
A set of main modules
A folder of python modules
A number of files containing Python definitions and statements
A set of programs making use of Python modules
What will be the output of the following Python statement? "a"+"bc"
B
Bc
Abc
Error
What is the value of x after the following nested for loop completes its execution
90
97
95
None of these
What will be the output of the following Python program?
True
False
Error
Given the nested if-else structure below, what will be the value of x after code execution completes
0
2
1
Error
What arithmetic operators cannot be used with strings in Python?
*
+
-
None of these
What will be the output of the following Python program?
5
6
4
3
What is the output of print(2%6)
ValueError
0.33
2
Bitwise shift operators (<<, >>) has higher precedence than Bitwise And(&) operator
False
True
Which of the statements about dictionary values if false?
More than one key can have the same value
The values of the dictionary can be accessed as dict[key]
Values of a dictionary must be unique
Values of a dictionary can be a mixture of letters and numbers
What will be the output of the following Python code? print('Hello!2@#World'.istitle())
True
False
Print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j)) what will be the output
True True False True
True True False True
False True True True
{"name":"Pytho quiz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Is Python case sensitive when dealing with identifiers?, Is Python code compiled or interpreted?, All keywords in Python are in _________","img":"https://www.quiz-maker.com/3012/CDN/92-4495195/1.png?sz=1200-00000000001000005300"}
Powered by: Quiz Maker