Quiz
Chapter 7 multiple choice
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (18)
1If when asked for a date of birth the user enters a future date this error should be caught by a ____________ check.
- Atime
- Breasonableness
- Cday
- Dnone of the answers
- Edate
2 Which of the following library functions could be used to validate the length of a string?
- Alength
- Bnone of the answers
- CtoUpper
- Drandom
- EisString
3 _______________ is sometimes the term used for input validation.
- APriming
- BExamination
- CNone of the answers
- DValidation
- ECheck
4GIGO stands for:
- Agarbage in, garbage out
- Bgreat input, great output
- CGIGabyte Operation
- DGIGahertz Output
5Which of the following library functions could be used to validate the length of a string?
- ANone of the answers
- BtoUpper
- CisString
- Dlength
- Erandom
6 Which of the following is not a check for data accuracy?
- ATime measurements
- BSalary within the allowable range
- CNone of the answers
- DZIP codes in correct format and valid
- EAll of the answers are checks for data accuracy
7What is the famous saying among computer programmers that refers to the fact that computers cannot tell the difference between good and bad data?
- AGarbage input, garbage output
- BNone of the answers
- CGarbage in, garbage out
- DGarbage output is from garbage inputted
- EGarbage out is from garbage in
8What type of function can be used to see if the password entered has the minimum number of characters?
- ANone of the answers
- BMathematical
- CString
- DTrigonometric
- EBoolean
9The term empty input describes what happens when
- Aan input operation attempts to read data, but there is no data to read
- Bthe user enters 0, when 0 is an invalid value
- Cthe user presses the Spacebar and then the Enter key
- Dthe user enters any invalid data as input
10Which of the following library functions could be used to simplify the process of string validation?
- AisReal
- BisInteger
- CtoUpper
- DNone of the answers
11 In addition to using loops to validate data _____________ can also be used to validate data.
- ANone of the answers
- BString Function
- CBoolean Funtion
- DInteger Functcion
- EReal Function
12Validation loops are also known as ______
- Adefensive programming loops
- Berror avoidance loops
- Cerror traps
- Ddoomsday loops
13: Which of the following is not an input validation error type?
- AAll of the answers are input validation error types
- BNone of the answers
- CEmpty input
- DInaccurate data
- EIncorrect data type
14 Designing a program to avoid common errors is called _________________ programming.
- ADirect
- BDefensive
- CDefective
- DNone of the answers
- EDetective
15What is the first step to use in detecting data type mismatch errors?
- AConvert to the desired data type
- BNone of the answers
- CDetermine whether it can be converted
- DDisplay error message
- ERead the input as a string
16Which of the following library functions could be used to validate that the correct data type was input for an amount of money?
- AisString
- BisInteger
- CisReal
- DAll of the answers
- EtoLower
17The purpose of the __________ is to get the first input value for the validation of a loop.
- ARead
- BWrite
- CPriming Read
- DGIGO
- ENone of the answers
18_______________ happens when an input operation attempts to read data but there is no data to read.
- ANone of the answers
- BNo data
- CInput error
- DEmpty input
- EError reading
Informações
- Descrição
- Computer Science Quiz sobre Chapter 7 multiple choice, criado por Naina Minhas em 10-12-2022.
- Autor
- Naina Minhas
- Idioma
- English
- Visualizações
- 1
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz