wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Paper 2 topics OCR computer science

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

10001010 10011101 is an example of...

a)

High-level language

b)

Low-level language

c)

Machine Code

2.

'LDA 14, STA 5, INP 12' is an example of...

a)

High-level language

b)

Low-level language

c)

Machine Code

3.

Which of the following is in the data type of integer?

a)

1

b)

1.0

c)

one

d)

"1"

4.

What will be the output if the input is 5?

a)

The number is Even

b)

The number is odd

5.

What will LEN(“Happy”) output ?

a)

1

b)

7

c)

5

6.

Identify the type of error in the pseudocode

a)

Syntax error

b)

Runtime error

c)

Logic error

d)

Memory error

7.

Match the following SQL term with a description - FROM

a)

The criteria which must be met

b)

The fields to display

c)

The field and order used to sort the results

d)

The table used in the query

8.

In what order does SQL process the instructions?

a)

FROM - SELECT - WHERE - ORDER BY

b)

WHERE - FROM - SELECT - ORDER BY

c)

SELECT - FROM - WHERE - ORDER BY

d)

SELECT - FROM - ORDER By - WHERE

9.

Which IDE tool converts each line of source code into machine code, and executes it as each line of code is run?

a)

Compiler

b)

Variable Watch

c)

Memory Inspector

d)

Interpreter

10.

What is meant by source code?

a)

The final executable program

b)

The code written by the programmer

c)

The additional information about errors

d)

Code relating to sources of information on the Internet

11.

What type of validation would be used on a field to enter a mobile phone number to ensure it contains 11 digits

a)

Spell check

b)

Lookup table

c)

Presence check

d)

Length check

12.

Testing an input and ensuring it is in the correct format or range

a)

Input Sanitation

b)

Input Validation

c)

Input Creation

d)

Input Testing

13.

Final/terminal testing takes place...

a)

Many times throughout a programming project

b)

At the end of a programming project

14.

Iterative testing takes place...

a)

Many times throughout a programming project

b)

At the end of a programming project

15.

Erroneous test data is used to...

a)

Test a value that is just inside/outside of what should/shouldn't be accepted.

b)

Test a value that is expected in a program and should work.

c)

Test a value that should be rejected by the program.

16.

What logic gate is this?

a)

AND

b)

NOT

c)

OR

17.

If 1 is the input, the output will be...

a)

0

b)

1

18.

DIV means...

a)

Dividing without including the remainder

b)

Dividing, but only writing the remainder

c)

Multiplying the number by itself