Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Revision Week 4

Total questions: 10

Worksheet time: 11mins

Name
Class
Date
1.

What was the first generation of programming languages?

a)

High-level languages

b)

Assembly language

c)

Machine language

d)

Object-oriented languages

2.

What is the purpose of a compiler?

a)

To translate high-level code into machine code

b)

To manage hardware devices

c)

To get input

d)

To store program data

3.

What is a syntax error?

a)

An error due to incorrect syntax in the program

b)

A logical error that causes incorrect results

c)

A runtime error

d)

An error in program logic

4.

What is an algorithm?

a)

A programming language

b)

A hardware component

c)

A step-by-step procedure to solve a problem

d)

A type of software

5.

Determine the process for the scenario.

A university wants to develop a program that calculates a student's final grade based on three test scores. The final grade is determined by the average of the three scores.

4 lines
6.

Determine the output for this scenario:

A health clinic wants a program to calculate a person's BMI and determine their health category.

4 lines
7.

Write a Pseudo Code  for this question.

Write a pseudo code to calculate and display the volume of a cylinder. Use the formula:

Volume=π×radius2×height

where π = 3.14159,

4 lines
8.

Draw a flowchart for this question.

Draw a flowchart to calculate and display the volume of a cylinder. Use the formula:

Volume=π×radius2×height

where π = 3.14159,

9.

Which of the following is a characteristic of high-level programming languages?

a)

They are difficult to read and write

b)

They use natural language elements

c)

They are machine-dependent

d)

They require extensive knowledge of hardware

10.

What does debugging refer to in programming?

a)

The process of writing code

b)

The process of finding and fixing errors in code

c)

The process of compiling code

d)

The process of optimizing code for speed