Test
Chapter 4 review
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (17)
1A _____ structure can execute a set of statements only under certain circumstances.
- Asequence
- Bcircumstantial
- Cdecision
- DBoolean
2A case structure is a ___________ alternative decision structure.
- ASingle
- BDual
- CMultiple
- DSingle or dual
3Which structure is a logical design that controls the order in which a set of statements executes?
- AControl
- BSequence
- CModule
- DTerminal
4A compound Boolean expression created with the _____ operator is true only if both of its subexpressions are true.
- AAND
- BOR
- CNOT
- DBOTH
5 What two logical operators perform short-circuit evaluation?
- AAND and OR
- BNOT and OR
- CAND and NOT
- DAll of these
6Which operator is used to determine that the operands are not exactly of the same value?
- A=
- B!
- C=!
- D==
- Enone of these
7 The _______ symbol indicates that some condition must be tested in a flowchart.
- ARectangle
- BParallelogram
- COval
- DDiamond
8You use a(n) _____ statement in pseudocode to write a single alternative decision structure.
- ATest-Jump
- BIf-Then
- CIf-Then-Else
- DIf-Call
9A _____ is a Boolean variable that signals when some condition exists in the program.
- Aflag
- Bsignal
- Csentinel
- Dsiren
10Consider the following statement: A store is giving a discount of 30% for all purchases of over $100. Which of the following is not the appropriate structure to use to program the statement?
- ASelection
- BDecision
- CSequence
- DControl
11AND, OR, and NOT are _____ operators.
- Arelational
- Blogical
- Cconditional
- Dternary
12What type of operators are the following? > < >= <= == !=
- ABoolean
- BRelational
- CLogical
- DMathematical
13A(n) _____ structure tests a condition and then takes one path if the condition is true, or another path if the condition is false.
- AIf-Then statement
- Bsingle alternative decision
- Cdual alternative decision
- Dsequence
14Which of the following is a logical operator?
- ANOT
- BOR
- CAND
- DAll of these
15Which of the following operators reverses the logic of its operand?
- ANOT
- BAND
- COR
- DNone of these
- EAll of these
16The ________ operator could be used in some situations to simplify nested selection structures.
- AAND
- BOR
- CNOT
- DAll of these
- ENone of these
17 If the expression is false the ____________ operator will return true.
- AAND
- BOR
- CNOT
- DAll of these
- ENone of these
Información
- Descripción
- Computer Science Test sobre Chapter 4 review, creado por Naina Minhas el 15/10/2022.
- Autor
- Naina Minhas
- Idioma
- English
- Visitas
- 5
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test