C++ Deck 4 Flashcards
The meaning of this comparative operator: >
greater than
The meaning of this comparative operator: >=
greater than or equal to
The meaning of this comparative operator: !x
The NOT operator (negation) - returns true if x is false
(i.e. if the value is NOT x, then this statement will return TRUE)
The meaning of this comparative operator: x && y
The AND operator - true if BOTH x AND y are true
The meaning of this comparative operator: x II y
The OR operator - true if EITHER x OR y or BOTH are true.
True or False: The values in case labels must be constants.
True
True or False: The constants in a case label can be any data type.
False, they must be integer types.
(int, char, enumerations)
In the context of a switch statement, what does the break statement do?
It prevents other cases from being tested if the current one returns true.
What is the CPU?
Central Processing Unit
The “brain” of the computer.
What is the ISA?
Instruction Set Architecture
The specific set of low-level instructions available to a CPU.
What is the ALU?
Arithmetic & Logic Unit
Responsible for performing arithmetic calculations as well as logical operations (comparisons of equality and inequality, etc.)
What is the Main Memory (RAM)?
Random Access Memory
Storage close to CPU that is faster to access than the hard disk. It stores executing programs and data being currently worked on.
What is Secondary Memory?
SSD, Hard Disk, DVD, etc.
What are some examples of input devices?
Mouse, keyboard, scanner, network card, etc.
What are some examples of output devices?
Screen, console, printer, network card, etc.