WorksheetsPython Basics
Total questions: 10
Worksheet time: 5mins
Python uses
Blocks
Braces
Indentation
Parentheses
Pyhton uses which of the following as translator?
Interpreter
Compiler
Both
Assembler
In which language is the Python programming created?
C
C++
Pyhton
All of the above
When a string does not fit in single line, one can use the following quotes for multiple line string?
Single Quotes
Double Quotes
Triple Quotes
Quadruple
a=True; b=True; c=False
if a or b and c:
print('True')
else:
print('False')
False
True
False or True
No Output
The output -12%5 is
-3
-2
3
2
a=500;b=300
print(a*bool(a//b) + b*bool(b//a))
will print?
b
a
500
300
2 ** 2** 3
256
64
12
18
Which of the following is not a keyword in Python
True
eval
nonlocal
as
Select all which is/are true about identifiers.
An identifier must begin with an alphabet
An identifier must begin with a negative integer
An identifier begins with _ (underscore)
An identifier begins with an alphabet followed by number or alphabet
