Quiz 2.2: Programming Fundamentals
Which of the following is an example of a boolean expression in Python?
What is the result of the expression print(5 + 3) in Python?
What is the result of the expression print("5" + "3") in Python?
Which of the following is a valid Python variable name?
Step through this pseudocode. What will be output?
Python code
What does the modulus operator % do in Python?
What is the correct syntax to declare and initialise a string variable in Python?
Which of the following best describes the purpose of iteration in programming?
In Python, which keyword is used to exit a loop prematurely?
Which SQL clause is used to filter records based on a specified condition?