Taylor Walker
Test por , creado hace más de 1 año

Java Test sobre COP 1000 - Intro to Computer Programming (Final Exam), creado por Taylor Walker el 18/04/2020.

132
0
0
Taylor Walker
Creado por Taylor Walker hace alrededor de 4 años
Cerrar

COP 1000 - Intro to Computer Programming (Final Exam)

Pregunta 1 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 2 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • random

  • isString

  • length

  • toUpper

  • None of these

Explicación

Pregunta 3 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • Empty input

  • Incorrect data type

  • Inaccurate data

  • All of these are input validation error types

  • None of these

Explicación

Pregunta 4 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • length

  • toUpper

  • isReal

  • isInteger

  • None of these

Explicación

Pregunta 5 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • String Function

  • Real Function

  • Integer Function

  • Boolean Function

  • None of These

Explicación

Pregunta 6 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • True

  • False

Explicación

Pregunta 7 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • True

  • False

Explicación

Pregunta 8 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • True

  • False

Explicación

Pregunta 9 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • True

  • False

Explicación

Pregunta 10 de 10

1

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

Selecciona una de las siguientes respuestas posibles:

  • True

  • False

Explicación