Taylor Walker
Quiz by , created more than 1 year ago

Java Quiz on COP 1000 - Intro to Computer Programming (Final Exam), created by Taylor Walker on 18/04/2020.

154
0
0
Taylor Walker
Created by Taylor Walker over 4 years ago
Close

COP 1000 - Intro to Computer Programming (Final Exam)

Question 1 of 10

1

Which of the following is not a check for data accuracy?

Select one of the following:

  • Salary within the allowable range

  • Time measurements

  • ZIP codes in correct format and valid

  • All of these are checks for data accuracy

  • None of these

Explanation

Question 2 of 10

1

Which of the following library functions could be used to validate the length of a string?

Select one of the following:

  • random

  • isString

  • length

  • toUpper

  • None of these

Explanation

Question 3 of 10

1

Which of the following is not an input validation error type?

Select one of the following:

  • Empty input

  • Incorrect data type

  • Inaccurate data

  • All of these are input validation error types

  • None of these

Explanation

Question 4 of 10

1

Which of the following library functions could be used to simplify the process of string validation?

Select one of the following:

  • length

  • toUpper

  • isReal

  • isInteger

  • None of these

Explanation

Question 5 of 10

1

In addition to using loops to validate data, ________ can also be used to validate data.

Select one of the following:

  • String Function

  • Real Function

  • Integer Function

  • Boolean Function

  • None of These

Explanation

Question 6 of 10

1

True/False: An input validation loop is sometimes called an error handler.

Select one of the following:

  • True

  • False

Explanation

Question 7 of 10

1

True/False: If the user provides bad data as input to a program, the program will correct the data and produce output.

Select one of the following:

  • True

  • False

Explanation

Question 8 of 10

1

True/False: Often a Boolean function can be used to validate data.

Select one of the following:

  • True

  • False

Explanation

Question 9 of 10

1

True/False: Checking for accuracy of data, even when the user provides the right type of data, is part of input validation.

Select one of the following:

  • True

  • False

Explanation

Question 10 of 10

1

True/False: Programs should be designed such that all input is inspected before it is processed and bad data is discarded.

Select one of the following:

  • True

  • False

Explanation