Quiz

Quiz: Programming for Computer Science Paper 2

OCR GCSE J277 Computer Science specification

Ready to start this lesson?

Sign in to track your progress. 12 steps including 10 interactive questions.

Sign In to Start Learning
12 Steps10 Questions

Students also studied

Browse all

Steps in this lesson (12)

1
Text

Welcome to this quiz on programming for computer science paper 2. Test your knowledge with 10 questions!

2
Multiple ChoiceInteractive

What is the purpose of a variable in programming?

Start the lesson to answer this multiple choice question

3
Multi-SelectInteractive

Which of the following are valid data types in programming? (Select all that apply)

Start the lesson to answer this multi-select question

4
Fill in the BlankInteractive

A {{blank0}} loop runs a block of code a specific number of times, while a {{blank1}} loop runs until a condition is no longer true.

Start the lesson to answer this fill in the blank question

5
MatchingInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this matching question

6
Math EquationInteractive

What is the result of 15 MOD 4?

Start the lesson to answer this math equation question

7
Code CompletionInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this code completion question

8
Multiple ChoiceInteractive

Which of the following operators is used for addition in programming?

Start the lesson to answer this multiple choice question

9
Fill in the BlankInteractive

A {{blank0}} is used to execute a block of code multiple times, while a {{blank1}} is used to make decisions in programming.

Start the lesson to answer this fill in the blank question

10
typedAnswer

Match the items on the left with their correct pairs on the right

11
Multi-SelectInteractive

Which of the following are comparison operators in programming? (Select all that apply)

Start the lesson to answer this multi-select question

12
Multiple ChoiceInteractive

What is the purpose of indentation in programming?

Start the lesson to answer this multiple choice question

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Explore More Topics
Revision GenieRevision Genie

Turn "I don't understand" into "I aced it" with instant explanations, personalised lessons, and exam practice that actually works.

Need Support?

We're here to help with study stress or exam pressure.

Revision Genie Ltd45 Fitzroy Street, London W1T 6EBCompany: 16212210ICO: ZC008367

© 2026 Revision Genie Ltd. All rights reserved. IBO, AQA, OCR, and Edexcel were not involved in the production of, and do not endorse, the resources or AI tutoring provided on the Revision Genie platform.Payments by Stripe.