WorksheetsPython fundamentals
Total questions: 15
Worksheet time: 8mins
(a) is smallest individual unit in a program.
Choose the INVALID identifiers from the following
NUmbEr1
1NUMBer
A_B
A&B
________ are data items that have a fixed value
Tokens
Literals
Keyword
Operators
+, /, * are example of which token ?
This token triggers some computation
(a)
Choose the keyword from the following
IF
Else
iF
else
Choose the INVALID identifiers from the following
NUmbEr1
1NUMBer
A_B
A&B
________ are data items that have a fixed value
Tokens
Literals
Keyword
Operators
Is Python case sensitive when dealing with identifiers?
Yes
No
machine dependent
none of these
Which of the following is a valid statement?
abc = 1,000,000
a b c = 1000 2000 3000
a,b,c = 1000, 2000, 3000
a_b_c = 1,000,000
Who is the writer of Python language?
Bjarne Stroustrup
Guido van Rossum
Dennis Ritchie
None
What is the output of
9 / 2 ?
4.5
4
5
None
What is the output of
7//2 ?
3
4
3.5
None
What is the value of the expression 100 / 25?
4
4.0
"4.0"
'4.0'
print("3"+"3")
33
6
INVALID OUTPUT
In Python, the script mode programs can be stored with an extension ------
.pyt
.py
.pyh
.pyn
