NEW
Font size
WorksheetsTesting & Evaluation
Total questions: 28
Worksheet time: 14mins
What type of testing involves using any number between 1 and 19?
Normal Testing
Extreme Testing
Exceptional Testing
Boundary Testing
Which numbers are used in extreme testing according to the picture?
1 and 19
0 and 20
5 and 15
10 and 30
What does exceptional testing involve according to the picture?
Numbers between 1 and 19
Numbers 0 and 20
BGFST
The number 5
What is a common example of a syntax error in coding?
Dividing a number by zero
Missing a letter or character
Using an undefined variable
Infinite loop
What is another name for an execution error?
Syntax error
Logical error
Runtime error
Compilation error
What happens when an execution error occurs?
The program runs successfully
The program crashes
The program compiles without issues
The program outputs incorrect results
Which of the following is a widely used example of a runtime error?
Forgetting a semicolon
Using a wrong variable name
Asking a program to divide by 0
Incorrect loop condition
What is a logic error in programming?
An error that prevents the code from compiling
An error in the logic of the code, such as using < instead of > or AND instead of OR
An error that causes the program to crash
An error that occurs due to incorrect syntax
What is the form of quality assurance carried out by a software development company after software has been implemented, tested, and documented?
Evaluation
Implementation
Development
Testing
When is software deemed fit for purpose?
When it is developed quickly
When it meets the requirements determined at the analysis phase
When it is cost-effective
When it has the latest features
Why is it necessary to look at test table data?
To ensure the software is working as expected
To reduce development costs
To improve user interface design
To increase software speed
What should be done if software is not fit for purpose?
Add more features
Revisit previous phases of the development process
Increase marketing efforts
Reduce the software price
What is one way to reduce code in programming?
Use more variables
Use loops where possible
Avoid using functions
Write longer code
What should be used instead of individual variables to make code more efficient?
Functions
Arrays
Constants
Classes
What is the purpose of using selection statements in programming?
To make code longer
To perform unnecessary comparisons
To make comparisons until a solution is reached
To avoid decision-making
What is a more efficient way to declare multiple string variables with the same initial value?
Declare each string individually.
Use a loop to declare each string.
Declare an array of strings with the initial value.
Use a function to declare each string.
What is the main advantage of using a fixed loop in programming?
It reduces the number of lines of code.
It increases the complexity of the code.
It makes the code run slower.
It requires more memory.
In the efficient code example, what does the variable 'i' represent?
A constant value.
A counter for the loop.
A string input.
A function name.
How many times does the loop execute in the efficient code example?
5 times
10 times
11 times
12 times
What is the ticket category for a person aged 70 according to the efficient algorithm?
Child
Adult
Concession
Senior
In the efficient algorithm, what is the age condition for setting the ticket category to adult?
age > 18
age >= 18
age > 17
age < 65
According to the inefficient algorithm, what is the ticket category for a person aged 16?
Adult
Child
Concession
Senior
What is a key characteristic of robust software?
It runs faster than other software.
It can cope with unexpected or incorrect input.
It uses less memory.
It has a user-friendly interface.
Why are programs likely to encounter incorrect or unexpected data?
Because of user error and incorrect data from external files.
Due to hardware malfunctions.
Because of software updates.
Due to network issues.
Which of the following is a technique to improve the readability of code?
Complex algorithms
Internal commentary
Obscure variable names
Lack of indentation
What is the purpose of using meaningful identifiers in code?
To make the code run faster
To confuse other programmers
To improve code readability
To increase the file size
Why is indentation important in coding?
It makes the code look colorful
It helps in organizing code structure
It increases the execution time
It reduces the number of lines
How does white space contribute to code readability?
It makes the code harder to read
It separates code into logical sections
It increases the complexity of code
It is used to store data
