Search Header Logo

OCR Reference Language Quiz

Authored by Steven Graves

Computers

10th Grade

Used 4+ times

OCR Reference Language Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'for' loop in the OCR Reference Language code provided?

To repeat the print statement a specific number of times

To check if a condition is true or false

To assign a value to the variable 'i'

To execute a switch-case statement

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudocode structure is used to execute code based on the value of the variable 'bonus'?

Iteration

Selection

Function

Loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you write pseudocode to increment a variable 'score' by one?

score = score + 1

score++

increment score

add 1 to score

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What computational thinking technique involves breaking a complex problem down into smaller problems?

Abstraction

Decomposition

Algorithm Design

Pattern Recognition

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which computational thinking technique is used to reduce complexity by ignoring or removing irrelevant details?

Abstraction

Decomposition

Algorithm Design

Pattern Recognition

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a fast food restaurant offers half-price meals to students or customers with a discount card, but not on Saturdays, which logic system represents the condition for a customer to receive a half-price meal?

P = (A AND B) OR NOT C

P = (A OR B) AND NOT C

P = (A AND B) AND C

P = (A OR B) OR C

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a truth table in logic circuits?

To list all possible combinations of inputs and their corresponding outputs

To provide a step-by-step guide for building a circuit

To measure the voltage levels in a circuit

To draw the physical layout of a circuit

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?