wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Testing & Evaluation

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

What type of testing involves using any number between 1 and 19?

a)

Normal Testing

b)

Extreme Testing

c)

Exceptional Testing

d)

Boundary Testing

2.

Which numbers are used in extreme testing according to the picture?

a)

1 and 19

b)

0 and 20

c)

5 and 15

d)

10 and 30

3.

What does exceptional testing involve according to the picture?

a)

Numbers between 1 and 19

b)

Numbers 0 and 20

c)

BGFST

d)

The number 5

4.

What is a common example of a syntax error in coding?

a)

Dividing a number by zero

b)

Missing a letter or character

c)

Using an undefined variable

d)

Infinite loop

5.

What is another name for an execution error?

a)

Syntax error

b)

Logical error

c)

Runtime error

d)

Compilation error

6.

What happens when an execution error occurs?

a)

The program runs successfully

b)

The program crashes

c)

The program compiles without issues

d)

The program outputs incorrect results

7.

Which of the following is a widely used example of a runtime error?

a)

Forgetting a semicolon

b)

Using a wrong variable name

c)

Asking a program to divide by 0

d)

Incorrect loop condition

8.

What is a logic error in programming?

a)

An error that prevents the code from compiling

b)

An error in the logic of the code, such as using < instead of > or AND instead of OR

c)

An error that causes the program to crash

d)

An error that occurs due to incorrect syntax

9.

What is the form of quality assurance carried out by a software development company after software has been implemented, tested, and documented?

a)

Evaluation

b)

Implementation

c)

Development

d)

Testing

10.

When is software deemed fit for purpose?

a)

When it is developed quickly

b)

When it meets the requirements determined at the analysis phase

c)

When it is cost-effective

d)

When it has the latest features

11.

Why is it necessary to look at test table data?

a)

To ensure the software is working as expected

b)

To reduce development costs

c)

To improve user interface design

d)

To increase software speed

12.

What should be done if software is not fit for purpose?

a)

Add more features

b)

Revisit previous phases of the development process

c)

Increase marketing efforts

d)

Reduce the software price

13.

What is one way to reduce code in programming?

a)

Use more variables

b)

Use loops where possible

c)

Avoid using functions

d)

Write longer code

14.

What should be used instead of individual variables to make code more efficient?

a)

Functions

b)

Arrays

c)

Constants

d)

Classes

15.

What is the purpose of using selection statements in programming?

a)

To make code longer

b)

To perform unnecessary comparisons

c)

To make comparisons until a solution is reached

d)

To avoid decision-making

16.

What is a more efficient way to declare multiple string variables with the same initial value?

a)

Declare each string individually.

b)

Use a loop to declare each string.

c)

Declare an array of strings with the initial value.

d)

Use a function to declare each string.

17.

What is the main advantage of using a fixed loop in programming?

a)

It reduces the number of lines of code.

b)

It increases the complexity of the code.

c)

It makes the code run slower.

d)

It requires more memory.

18.

In the efficient code example, what does the variable 'i' represent?

a)

A constant value.

b)

A counter for the loop.

c)

A string input.

d)

A function name.

19.

How many times does the loop execute in the efficient code example?

a)

5 times

b)

10 times

c)

11 times

d)

12 times

20.

What is the ticket category for a person aged 70 according to the efficient algorithm?

a)

Child

b)

Adult

c)

Concession

d)

Senior

21.

In the efficient algorithm, what is the age condition for setting the ticket category to adult?

a)

age > 18

b)

age >= 18

c)

age > 17

d)

age < 65

22.

According to the inefficient algorithm, what is the ticket category for a person aged 16?

a)

Adult

b)

Child

c)

Concession

d)

Senior

23.

What is a key characteristic of robust software?

a)

It runs faster than other software.

b)

It can cope with unexpected or incorrect input.

c)

It uses less memory.

d)

It has a user-friendly interface.

24.

Why are programs likely to encounter incorrect or unexpected data?

a)

Because of user error and incorrect data from external files.

b)

Due to hardware malfunctions.

c)

Because of software updates.

d)

Due to network issues.

25.

Which of the following is a technique to improve the readability of code?

a)

Complex algorithms

b)

Internal commentary

c)

Obscure variable names

d)

Lack of indentation

26.

What is the purpose of using meaningful identifiers in code?

a)

To make the code run faster

b)

To confuse other programmers

c)

To improve code readability

d)

To increase the file size

27.

Why is indentation important in coding?

a)

It makes the code look colorful

b)

It helps in organizing code structure

c)

It increases the execution time

d)

It reduces the number of lines

28.

How does white space contribute to code readability?

a)

It makes the code harder to read

b)

It separates code into logical sections

c)

It increases the complexity of code

d)

It is used to store data