COP 1000 - Intro to Computer Programming (Final Exam)

Descripción

Java Test sobre COP 1000 - Intro to Computer Programming (Final Exam), creado por Taylor Walker el 18/04/2020.
Taylor Walker
Test por Taylor Walker, actualizado hace más de 1 año
Taylor Walker
Creado por Taylor Walker hace más de 4 años
154
0

Resumen del Recurso

Pregunta 1

Pregunta
Which of the following is not a check for data accuracy?
Respuesta
  • 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

Pregunta 2

Pregunta
Which of the following library functions could be used to validate the length of a string?
Respuesta
  • random
  • isString
  • length
  • toUpper
  • None of these

Pregunta 3

Pregunta
Which of the following is not an input validation error type?
Respuesta
  • Empty input
  • Incorrect data type
  • Inaccurate data
  • All of these are input validation error types
  • None of these

Pregunta 4

Pregunta
Which of the following library functions could be used to simplify the process of string validation?
Respuesta
  • length
  • toUpper
  • isReal
  • isInteger
  • None of these

Pregunta 5

Pregunta
In addition to using loops to validate data, ________ can also be used to validate data.
Respuesta
  • String Function
  • Real Function
  • Integer Function
  • Boolean Function
  • None of These

Pregunta 6

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

Pregunta 7

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

Pregunta 8

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

Pregunta 9

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

Pregunta 10

Pregunta
True/False: Programs should be designed such that all input is inspected before it is processed and bad data is discarded.
Respuesta
  • True
  • False
Mostrar resumen completo Ocultar resumen completo

Similar

Useful String Methods
Shannon Anderson-Rush
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Historical Development of Computer Languages
Shannon Anderson-Rush
Java Week 5 Object Oriented Programming
Troy Bowlin
Flvs foundations of programming dba 2
mariaha vassar
Programming Review
Shannon Anderson-Rush
Programming in Java
Faheem Ahmed
Python Quiz
karljmurphy
computer systems and programming quiz
Molly Batch
Think Python
tsilvo2001