Ace
Learns
Theme
light_mode
dark_mode
light_mode
Light
dark_mode
Dark
monitor
Auto
Open main menu
menu_open
×
Home
History
Geography
Astronomy
Physics
Chemistry
Biology
Agriculture
Sports
Computer Science
Articles
Contact Us
MCQ Categories
Articles
Home
Contact Us
Home
»
Computer Science
»
Python Programming Language
»
Python Basics
Python Programming Language
unfold_more
double_arrow
Python Basics
quiz
Python Basics
1.
Which type of language is Python?
A)
High-level, interpreted
B)
Low-level, compiled
C)
High-level, compiled
D)
Low-level, interpreted
Answer
keyboard_arrow_down
keyboard_arrow_up
A) High-level, interpreted
Explanation
2.
Which keyword is used to define a function in Python?
A)
function
B)
def
C)
define
D)
fun
Answer
keyboard_arrow_down
keyboard_arrow_up
B) def
Explanation
3.
What will happen if special characters are used in identifiers?
A)
The program will run normally
B)
The interpreter will ignore them
C)
It will raise a SyntaxError
D)
It will raise a ValueError
Answer
keyboard_arrow_down
keyboard_arrow_up
C) It will raise a SyntaxError
Explanation
4.
What does the Python interactive prompt look like?
A)
$>
B)
::
C)
>>>
D)
--->
Answer
keyboard_arrow_down
keyboard_arrow_up
C) >>>
Explanation
5.
What is the recommended number of spaces for each indentation level in Python?
A)
1
B)
2
C)
8
D)
4
Answer
keyboard_arrow_down
keyboard_arrow_up
D) 4
Explanation
Quick Links
Biology
chevron_right
Organs of the Human Body
chevron_right
Genetics
chevron_right
The Human Body System
chevron_right
Essential Nutrients
Geography
chevron_right
Regional Geography
chevron_right
Geomorphology
chevron_right
Geopolitics and Global Issues
chevron_right
Oceanography
History
chevron_right
Medieval World History
chevron_right
Enlightenment and Modern ideas
chevron_right
Industrialization
chevron_right
Revolution and Counter-Revolution
Computer Science
chevron_right
Python Programming Language
chevron_right
Computer Networks
chevron_right
Analysis and Design of Algorithms
chevron_right
Programming in C