Taylor Walker
Quiz von , erstellt am more than 1 year ago

Java Quiz am COP 1000 - Intro to Computer Programming (Final Exam), erstellt von Taylor Walker am 18/04/2020.

132
0
0
Taylor Walker
Erstellt von Taylor Walker vor etwa 4 Jahre
Schließen

COP 1000 - Intro to Computer Programming (Final Exam)

Frage 1 von 10

1

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

Wähle eine der folgenden:

  • 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

Erklärung

Frage 2 von 10

1

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

Wähle eine der folgenden:

  • random

  • isString

  • length

  • toUpper

  • None of these

Erklärung

Frage 3 von 10

1

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

Wähle eine der folgenden:

  • Empty input

  • Incorrect data type

  • Inaccurate data

  • All of these are input validation error types

  • None of these

Erklärung

Frage 4 von 10

1

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

Wähle eine der folgenden:

  • length

  • toUpper

  • isReal

  • isInteger

  • None of these

Erklärung

Frage 5 von 10

1

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

Wähle eine der folgenden:

  • String Function

  • Real Function

  • Integer Function

  • Boolean Function

  • None of These

Erklärung

Frage 6 von 10

1

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

Wähle eine der folgenden:

  • True

  • False

Erklärung

Frage 7 von 10

1

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

Wähle eine der folgenden:

  • True

  • False

Erklärung

Frage 8 von 10

1

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

Wähle eine der folgenden:

  • True

  • False

Erklärung

Frage 9 von 10

1

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

Wähle eine der folgenden:

  • True

  • False

Erklärung

Frage 10 von 10

1

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

Wähle eine der folgenden:

  • True

  • False

Erklärung