Taylor Walker
Quiz por , criado more than 1 year ago

Java Quiz sobre COP 1000 - Intro to Computer Programming (Final Exam), criado por Taylor Walker em 18-04-2020.

132
0
0
Taylor Walker
Criado por Taylor Walker aproximadamente 4 anos atrás
Fechar

COP 1000 - Intro to Computer Programming (Final Exam)

Questão 1 de 10

1

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

Selecione uma das seguintes:

  • 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

Explicação

Questão 2 de 10

1

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

Selecione uma das seguintes:

  • random

  • isString

  • length

  • toUpper

  • None of these

Explicação

Questão 3 de 10

1

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

Selecione uma das seguintes:

  • Empty input

  • Incorrect data type

  • Inaccurate data

  • All of these are input validation error types

  • None of these

Explicação

Questão 4 de 10

1

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

Selecione uma das seguintes:

  • length

  • toUpper

  • isReal

  • isInteger

  • None of these

Explicação

Questão 5 de 10

1

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

Selecione uma das seguintes:

  • String Function

  • Real Function

  • Integer Function

  • Boolean Function

  • None of These

Explicação

Questão 6 de 10

1

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

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 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.

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 8 de 10

1

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

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 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.

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 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.

Selecione uma das seguintes:

  • True

  • False

Explicação