Home
MCQS
Python MCQ Quiz Hub
MCQ For Python Fundamentals
Choose a topic to test your knowledge and improve your Python skills
1. Special meaning words of Pythons, fixed for specific functionality are called _____.
Identifiers
functions
Keywords
literals
2. Names given to different parts of a Python program are _____.
Identifiers
functions
Keywords
literals
3. Data items having fixed value are called _____
Identifiers
functions
Keywords
literals
4. Escape sequences are treated as _____.
strings
characters
integers
none of these
5. Which of the following is an escape sequence for a tab character?
a
6. Which of the following is an escape sequence for a newline character?
a
7. Value 0.000615 is equivalent to
615E3
615E-3
0.615E3
0.615E-3
8. The lines beginning with a certain character, and which are ignored by a compiler and not executed, are called _____.
operators
operands
functions
comments
9. Which of the following functions print the output to the console ?
Output()
Print()
Echo()
print()
10. Select the reserved keyword in Python.
else
import
print
all of these
11. The input() returns the value as _____ type.
integer
string
floating point
None of the these
12. To convert the read value through input() into integer type, _____ () is used.
floating
float
int
integer
13. To convert the read value through input() into a floating point number, _____ () is used.
floating
Float
int
integer
14. To print a line a text without ending it with a newline, _____ argument is used with print()
sep
newline
end
next
15. The default separator character of print() is _____.
tab
space
newline
dot
16. To give a different separator with print() _____ argument is used.
sep
separator
end
tab
17. Which of the following not a legal integer type value in Python?
Decimal
Octal
Hexadecimal
Roman
18. Which of the following symbols are not legal in an octal value?
7
8
9
None of the above
Submit