View as PDF

England GCSE Computer Science OCR · Unit 4 · 25 questions

Programming, Defensive Design and Testing — Practice Test

This practice test was made by AI and there may be mistakes. If a question or answer looks wrong, use the Flag a mistake button to let Brett know so he can fix it.

1

A tablet app is written in a high level language. What does this mean?

Understand It with Pulse
2

A robot program stores the distances to 5 objects in one variable. What should it use?

Understand It with Pulse
3

A games console program checks if a player has more than 100 points. What does it use to test this?

Understand It with Pulse
4

A smartphone app repeats a task until the user taps stop. Which loop should it use?

Understand It with Pulse
5

A laptop runs a program that asks for a password. The program checks the password is at least 8 characters long. What is this check called?

Understand It with Pulse
6

A keyboard is used to type a program. The programmer writes a comment to explain a tricky part. Why is the comment useful?

Understand It with Pulse
7

An array holds 20 items and the first item has index 0. What is the index of the last item?

Understand It with Pulse
8

What does a length check do?

Understand It with Pulse
9

What is erroneous test data?

Understand It with Pulse
10

When should a DO UNTIL loop be used?

Understand It with Pulse
11

What does 13 DIV 3 give?

Understand It with Pulse
12

What does a compiler do?

Understand It with Pulse
13

Which keywords are used for selection in OCR pseudocode?

Understand It with Pulse
14

Which logic gate gives True only when both inputs are True?

Understand It with Pulse
15

What does 25 MOD 4 give?

Understand It with Pulse
16

What does string concatenation do?

Understand It with Pulse
17

A FOR loop runs from i = 1 TO 20. How many times does it run its steps?

Understand It with Pulse
18

Why must a file be opened before it is used?

Understand It with Pulse
19

What does the Boolean operator AND do?

Understand It with Pulse
20

A program only accepts ages from 1 to 10. Which value would a range check reject?

Understand It with Pulse
21

What data type is the word hello?

Understand It with Pulse
22

What is the length of the string data?

Understand It with Pulse
23

Why are subprograms useful?

Understand It with Pulse
24

An array holds 8 items and the first item has index 0. What is the index of the last item?

Understand It with Pulse
25

What is verification?

Understand It with Pulse