What is a substring?
A smaller string extracted from a main string
A small string generated by a program
A built-in function to extract a smaller string from a large string
What is the purpose of validation?
To ensure that data entered is sensible and possible
To ensure that data entered is correct
To ensure that the programmer has met all requirements
What is a subroutine?
A piece of code written in a separate module (file)
A piece of code that is smaller than the main program
A named piece of code written outside of the main program
What is a function?
A type of subroutine that calculates a value
A type of subroutine that returns a value
A type of subroutine that processes a value, but does not return it
Which of the following are validation techniques?
Presence check, length check, verification check
Presence check, format check, range check
Presence check, range check, verification check
What are two types of programming error?
Syntax errors and logic errors
Syntax errors and validation errors
Logic errors and validation errors
What is the purpose of testing?
To ensure that a user becomes familiar with a program
To ensure that a program functions as intended
What are the three types of test data?
Valid, invalid and erroneous
Normal, erroneous and boundary
Erroneous, extreme and invalid
What is recorded in a testing table?
Evidence of successful tests
Evidence of failed tests
Evidence of testing
Which of the following are all benefits of subroutines?
Subroutines are easier to debug, they save programmers from rewriting lots of code many times and only one programmer can work on a particular program
Subroutines are easier to share, they are very difficult to debug and only one programmer can work on a particular program
Subroutines save programmers from rewriting lots of code many times, they are easier to debug and multiple programmers can work on the same program