
Y10-Retrieval 2.2.1c and 2.21a
Quiz by Teran Subasinghe
GCSE (OCR)
Computer Science (9-1), J277
English National Curriculum
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measures 3 skills from
Measures 3 skills from
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
25 questions
Show answers
- Q1Which arithmetic operator is used to find the remainder after division?ModulusAdditionExponentiationMultiplication30s2.2.1c
- Q230s2.2.1c
- Q3Which operator is used to perform exponentiation in Python?^//***30s2.2.1c
- Q4Which of the following is the correct symbol for the addition operator in most programming languages?+-/*30s2.2.1c
- Q530s2.2.1c
- Q630s2.2.1c
- Q730s2.2.1c
- Q8Which operator is used for integer division in Python?///*%30s2.2.1c
- Q9Which of the following options correctly uses variables, constants, operators, inputs, outputs, and assignments in a Python program?input = total / priceoutput price * quantitytotal = price * quantityint price quantity total30s2.2.1a
- Q10What does the following Python code do? price = 50 quantity = 2 total = price * quantity print(total)Calculates and prints the total cost by multiplying price and quantityCalculates the sum of price and quantity and prints the resultTakes user input for price and quantity, then prints the totalPrints the value of price30s2.2.1a
- Q11Which of the following statements correctly assigns the input value to a variable in Python?input(name) = "Enter your name:"name = input("Enter your name:")name : input("Enter your name:")name == input("Enter your name:")30s2.2.1a
- Q12What will be the output of the following code? x = 5 y = 10 z = x + y print(z)5105 + 10151030s2.2.1a
- Q13Which of the following lines of code will correctly assign the integer value from user input to the variable 'age'?age = int(input("Enter your age:"))age == int(input("Enter your age:"))age = input(int("Enter your age:"))age : int(input("Enter your age:"))30s2.2.1a
- Q14Which operation is being performed in the following code snippet? x = 100 y = 25 result = x % yAdditionModulusDivisionSubtraction30s2.2.1a
- Q15What will be the value of the variable 'result' after executing this code? num1 = 20 num2 = 4 result = num1 / num2244.055.030s2.2.1a