Lesson 4.13.1.4
4.13.1.4 Testing Quiz: AQA Computer Science, Unit 13
20 questions
In partnership with Revision Ninja
Lesson 4.13.1.4, Testing: 20 multiple choice questions for the AQA Computer Science (7517), Unit 13: Systematic approach to problem solving, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
What must an implementation be tested for?
- The colour of its buttons, using a paint program on the screen.
- The name of the programmer, using a list of the staff who work in the company.
- The presence of errors, using selected test data.
- The number of lines of code, using a line-counting tool on the source files.
-
Which three types of test data should be used when testing a program?
- Random, sorted and reversed test data that is generated by the testing software.
- Normal, boundary and erroneous test data.
- Valid, invalid and deleted data records taken from an old backup of the system.
- Small, medium and large data files only, with no other size of test data.
-
What is normal test data?
- Typical data that the system should accept and process correctly.
- Data chosen to be as large as the system is able to hold in its storage at once.
- Data that lies exactly on the edge of the valid range and nowhere else at all.
- Data that is deliberately wrong, to see how the system reacts when it goes wrong.
-
What is boundary test data?
- Typical values that lie somewhere in the middle of the expected range of the input.
- Data that has been copied from the boundary of another program on the same server.
- Data at the limits of the valid range, such as the smallest and largest permitted values.
- Values that lie completely outside the data type of the input field in the form.
-
What is erroneous test data?
- Data that is valid but uncommon, which the system should accept without any difficulty at all.
- Data that is invalid, such as the wrong type or an out-of-range value, which should be rejected.
- The largest valid values that the program is designed to process within its limits.
- Data that has already been checked and approved by an end user of the system.
-
What is the purpose of acceptance testing?
- To check the speed of the network cables that connect the computers in the office.
- To count the number of bugs that the programmer introduced while writing the code.
- To test the programmer's knowledge of the programming language that was used.
- To check, with the intended users, that the solution meets its specification.
-
Who should be involved in acceptance testing?
- Only the marketing team who will later sell the finished product to customers.
- The intended users of the system.
- Only the original programmers who wrote the code in the first place for the project.
- Only the hardware suppliers who built the computers that the system runs on.
-
A field accepts ages from 11 to 18. Which value is a boundary test?
- 15
- 18
- 30
- abc
-
A password field must contain 8 to 12 characters. Which test is erroneous?
- A password with 10 characters, which lies in the middle of the range.
- A password with 8 characters, which is the lower limit of the range.
- A password with 12 characters, which is the upper limit of the range.
- A password with 3 characters.
-
A system accepts 1 to 100 items. Which value is the best boundary test?
- 150
- a value of text rather than a number
- 50
- 100
-
A tester enters text into a numeric field. Which kind of test data is this?
- Erroneous test data.
- Acceptance test data, because it is provided by the end user of the system.
- Normal test data, because users sometimes type text into numeric fields by accident.
- Boundary test data, because text is at the edge of the numeric type range.
-
Which test data best checks a typical everyday case?
- Normal test data.
- Erroneous test data, which checks that invalid input is rejected by the system.
- Boundary test data, which checks the edges of the valid range of input values.
- Maximum-size test data, which checks the largest data set the program can hold.
-
A quiz app is tested with a score of 0 and then with 100 on a 100-mark quiz. Which type of test data is this?
- Erroneous test data, because a score should never be zero or one hundred in a quiz.
- Normal test data, because scores of zero and one hundred are typical in a quiz.
- Random test data, because the scores are chosen at random by the tester.
- Boundary test data.
-
Why are erroneous tests needed?
- To prove the system is always fast when it is given valid input from the users.
- To confirm the system rejects or handles invalid input safely.
- To make the test plan longer so that it looks more impressive to the funding body.
- To remove the need for boundary testing altogether from the test plan for the project.
-
What does a test plan record?
- The salary of each programmer who was involved in writing the code for the project.
- The test data, the expected results and the actual results for each test.
- The colour scheme and font size of the interface that is being tested by the team.
- The list of hardware suppliers that the team has used on earlier projects in the past.
-
After acceptance testing, a user says a feature is confusing. What does this show?
- The program has a syntax error that the compiler failed to detect during the build.
- The test data was too normal and should be replaced with erroneous data in the plan.
- The user has made a mistake, so the feature should be left as it is in the release.
- The solution may not fully meet the intended users' needs, so the feature should be reviewed.
-
Evaluate: why is testing with boundary values valuable?
- Boundary values remove the need for normal test data in every case of the testing plan.
- Boundary values prove the program is free of errors everywhere else in its code.
- Boundary values are always the most common inputs that users give the system in real use.
- Errors often occur at the limits of a range, such as off-by-one mistakes in loops and comparisons.
-
A tester finds that the program passes normal and boundary tests but crashes on erroneous input. What should be done?
- Add validation so that invalid data is rejected with a sensible message, then retest the program.
- Accept that the crash cannot be fixed and leave the program in its current state.
- Remove all the boundary tests, because they are now causing crashes in the program.
- Stop testing, because normal and boundary tests are enough for a release of the program.
-
Which statement about testing is correct?
- Testing is replaced entirely by user acceptance testing in every software project.
- Testing with enough test data proves that a program has no errors at all in its code.
- Testing shows the presence of errors, but it cannot by itself prove that a program has no errors.
- Testing is needed only for programs that are longer than a thousand lines of code.
-
Why should test data be chosen as far as possible before the program is written?
- Test data should be chosen to match exactly what the program already does, to be safe.
- Test data cannot be chosen until the program has been compiled and run at least once.
- Test data is only needed after the program has been delivered to the users in the field.
- It helps define expected results from the specification, so the tests are not biased by the code.
Related quizzes
- Analysis Quiz · 4.13.1.1 · 20 questions
- Design Quiz · 4.13.1.2 · 20 questions
- Implementation Quiz · 4.13.1.3 · 20 questions
- Evaluation Quiz · 4.13.1.5 · 20 questions
- Data types Quiz · 4.1.1.1 · 20 questions
- Entity relationship modelling Quiz · 4.10.1.1 · 20 questions
- Big Data Quiz · 4.11.1.1 · 20 questions
- Function types and first-class objects Quiz · 4.12.1.1 · 20 questions
- Data structures and abstract data types Quiz · 4.2.1.1 · 20 questions
- Breadth-first and depth-first search Quiz · 4.3.1.1 · 20 questions