The main hardware component categories (name 3).
What is the central processing unit (CPU), main memory (RAM), secondary memory/storage, input devices, and output devices?
An example would be:
#include <iostream>
What is a preprocessor directive?
(True or False): When doing mathematical operations between two different datatypes, the lower data type will automatically promote to the higher data type.
What is true?
These are relational operators (name 5).
What are >, <, >=, <=, ==, and !=?
A set of instructions that the computer follows to perform a task.
What is a program?
The two units that make up the CPU.
What is the control unit and the arithmetic/logic unit?
This is how you would display input and output in the command prompt.
What is cin >> "input" and cout << "output"?
This is how you would type cast.
What is static_cast<data_type>(value) or (data_type) value?
(True or False): You can use strings in a switch statement.
BONUS: This is how you exit a switch statement.
What is false?
BONUS: What is break?
A set of well-defined steps.
What is an algorithm?
The only type of programming language the computer can understand.
What is machine language?
These are examples of special characters (name 4).
What is //, #, <>, (), {}, "", and ;?
This is the order of operations for C++.
What is -(unary negation), * / % (left to right), then + - (left to right)?
This is the syntax of an if/else if/else statement.
What is:
if(expression){
code;
}else if(expression){
code;
}else{
code;
}
What is a variable?
This is how a file goes from a high-level program to an executable file.
What is when a file is created, run through a preprocessor, run through a compiler, and then run through a linker?
These are examples of variable datatypes not including anything with short/unsigned/long prefixes (name 3).
What are int, double/float, char, bool, and string?
This is a stream manipulator that makes it so that the decimal is always printed for floating-point values.
What is showpoint?
This is how strings are compared in an expression using relational operators.
What is by using ASCII values?
This occurs when assigning a value that is too large or too small to be held in a variable.
What are overflow and underflow?
This is the type of programming language that java is considered to be due to it being focused on objects that contain data and the means to manipulate data.
What is object-oriented programming?
This is what sizeOf() displays for a variable.
What provides the size in bytes of a variable?
The preprocessor directive required to use math functions like abs() and sin().
What is #include <cmath>?
This is the syntax of a conditional operator.
What is:
(expression)? true: false;
This is a variable that signals a condition.
What is a flag?