Search Header Logo

CS Edexcel 1.2b Testing and Errors

Authored by Stuart Smith

Computers

9th - 10th Grade

Used 7+ times

CS Edexcel 1.2b Testing and Errors
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of testing a program?

To speed up the execution of the program

To add more features

To make the program look good

To ensure it meets the needs of the end-user

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of error is harder to detect because the program compiles and runs but produces unexpected results?

Runtime error

Syntax error

Logic error

Design error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of error occurs when the code does not follow the rules of the programming language?

Logic error

Runtime error

Syntax error

Compilation error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a strategy that tests only the inputs and outputs of a program?

White box testing

Acceptance testing

Black box testing

Alpha testing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of white box testing?

To ensure that the algorithm functions correctly without focusing on inputs and outputs

To test the program against the requirements of the user

To check for syntax errors in the code only

To evaluate how the program handles invalid inputs

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name a common example of a runtime error

Incorrect assignment statement

Dividing by zero

Incorrect syntax

Incorrect output

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a trace table used for?

To list all the syntax errors found

To outline the user interface design

To identify what the final output will be

To document the outputs and variables during a dry run

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?