NEW
Font size
WorksheetsAmethyst: Introduction to Python Quiz
Total questions: 11
Worksheet time: 6mins
What is the purpose of syntax in text-based programming languages?
To guide how statements and phrases are constructed
To confuse programmers
To slow down program execution
To hide errors
How are statements terminated in Python and most text-based programming languages?
With a comma
With a question mark
With a full stop
With a semi-colon
What are the two main types of errors in programming?
Syntax errors and Logical errors
Syntax errors and Runtime errors
Runtime errors and Logical errors
Syntax errors and Semantic errors
Identifiers in Python must start with which of the following?
A special character
A number
An underscore
A space
Which errors are detected by the Python IDLE?
Runtime errors
Semantic errors
Syntax errors
Logical errors
Differentiate between identifiers and keywords.
Identifiers are reserved words, keywords are names of entities
Identifiers are part of Python language, keywords are special words
Identifiers are names of entities, keywords are reserved words
Identifiers are special words, keywords are part of Python language
Which of the following are valid identifiers?
if, else, 2baba, road Y, #size
x, abel, road_y, _40
print, while, 69ine, road_y, _40
import, def, 2baba, road Y, #size
If a function contains more than one argument, how are the arguments separated?
With a semi-colon
With a full stop
With a comma
With a question mark
What is the purpose of a function in programming?
To confuse programmers
To perform a specific task
To hide errors
To slow down program execution
What is the order in which a computer solves a problem?
Output, Process, Input
Input, Process, Output
Process, Output, Input
Process, Input, Output
What does syntax refer to in programming languages?
A
B
