COP 1000 - Intro to Computer Programming (Final Exam)

Description

Java Quiz on COP 1000 - Intro to Computer Programming (Final Exam), created by Taylor Walker on 18/04/2020.
Taylor Walker
Quiz by Taylor Walker, updated more than 1 year ago
Taylor Walker
Created by Taylor Walker over 4 years ago
154
0

Resource summary

Question 1

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

Question 2

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

Question 3

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

Question 4

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

Question 5

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

Question 6

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

Question 7

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

Question 8

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

Question 9

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

Question 10

Question
True/False: Programs should be designed such that all input is inspected before it is processed and bad data is discarded.
Answer
  • True
  • False
Show full summary Hide full summary

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