CS Edexcel 1.2b Testing and Errors

CS Edexcel 1.2b Testing and Errors

9th - 10th Grade

18 Qs

quiz-placeholder

Similar activities

9F End of Term Python Quiz

9F End of Term Python Quiz

9th Grade

22 Qs

lesson 2 vocab gaming

lesson 2 vocab gaming

6th - 9th Grade

15 Qs

Python - While loop

Python - While loop

9th - 10th Grade

19 Qs

Python - If Else...

Python - If Else...

9th Grade

19 Qs

ocr computer science 2.5

ocr computer science 2.5

10th Grade

16 Qs

APCSA Unit Vocab Study

APCSA Unit Vocab Study

10th - 12th Grade

20 Qs

CODE: Debugging

CODE: Debugging

8th - 10th Grade

13 Qs

AP CSP 1.1.6 - 1.1.9 Vocabulary

AP CSP 1.1.6 - 1.1.9 Vocabulary

9th - 12th Grade

20 Qs

CS Edexcel 1.2b Testing and Errors

CS Edexcel 1.2b Testing and Errors

Assessment

Quiz

Computers

9th - 10th Grade

Medium

Created by

Stuart Smith

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?