COP 1000 - Intro to Computer Programming (Final Exam)

Descrição

Java Quiz sobre COP 1000 - Intro to Computer Programming (Final Exam), criado por Taylor Walker em 18-04-2020.
Taylor Walker
Quiz por Taylor Walker, atualizado more than 1 year ago
Taylor Walker
Criado por Taylor Walker aproximadamente 4 anos atrás
132
0

Resumo de Recurso

Questão 1

Questão
Which of the following is not a check for data accuracy?
Responda
  • 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

Questão 2

Questão
Which of the following library functions could be used to validate the length of a string?
Responda
  • random
  • isString
  • length
  • toUpper
  • None of these

Questão 3

Questão
Which of the following is not an input validation error type?
Responda
  • Empty input
  • Incorrect data type
  • Inaccurate data
  • All of these are input validation error types
  • None of these

Questão 4

Questão
Which of the following library functions could be used to simplify the process of string validation?
Responda
  • length
  • toUpper
  • isReal
  • isInteger
  • None of these

Questão 5

Questão
In addition to using loops to validate data, ________ can also be used to validate data.
Responda
  • String Function
  • Real Function
  • Integer Function
  • Boolean Function
  • None of These

Questão 6

Questão
True/False: An input validation loop is sometimes called an error handler.
Responda
  • True
  • False

Questão 7

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

Questão 8

Questão
True/False: Often a Boolean function can be used to validate data.
Responda
  • True
  • False

Questão 9

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

Questão 10

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

Semelhante

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