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.

Host this setFree Play

The 20 questions

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. A field accepts ages from 11 to 18. Which value is a boundary test?

    • 15
    • 18
    • 30
    • abc
  9. 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.
  10. 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
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. 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.
  16. 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.
  17. 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.
  18. 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.
  19. 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.
  20. 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.

All AQA Computer Science quizzes