1/37
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
A program written in a high-level language, created in the text editor, is called:
Source Code or Program
A source program must be saved in a text file with which extension?
.cpp
Preprocessor directives are statements that:
Begin with the symbol # and are processed by the preprocessor program
Which header file contains the descriptions of functions needed to perform input/output (I/O)?
iostream
Which header file contains the descriptions of mathematical functions such as power, absolute, and sine?
cmath
Which header file contains specifications of functions and manipulators that help format output in a specific manner?
iomanip
The compiler checks the source program for:
Syntax errors
The machine language version of the high-level programming language is called:
Object Program
Which program combines the object program with other programs in the library to create the executable code?
Linker
Which program loads the executable program into main memory for execution?
Loader
An interpreter differs from a compiler in that an interpreter:
Translates and executes one command at a time, resulting in slower execution
A compiler translates the source program and results in a program that:
Runs faster than a program translated by an interpreter
The process by which a computer executes the instructions of a computer program is called:
Execution
A value that can be manipulated by a program and is classified based on different data types is called a:
Value
A one-word name that points to a value is called a:
Variable
The general syntax for declaring a variable is:
dataType <variable_name>;
Data types that are built-in or predefined and can be used directly by the developer are called:
Primitive Data Types
Which data type is used to store integers or numbers without a decimal part?
int
Which keyword is used for a single precision data type that deals with decimal numbers with a maximum of 7 decimal places?
float
Which keyword is used for a double precision data type that deals with decimal numbers with a maximum of 15 decimal places?
double
Which data type is used to store Boolean or logical values?
bool
A bool variable can store which of the following values?
True or False
Which data type is used to represent characters (letters, digits, special symbols)?
char
How many bytes does a char data type typically store?
1
How many bytes does an int data type typically store?
4
What is the range of a signed char?
-128 to 127
The wchar_t data type is a:
Wide character data type with size greater than the normal 8-bit datatype
What is the correct syntax for declaring a wchar_t variable?
wchar_t w = L'A';
A string is defined as:
A sequence of zero or more characters enclosed in double quotation marks
In determining the length of a string, you should:
Include any spaces in the count
A memory location whose content is not allowed to change during program execution is called a:
Constant
The general syntax for declaring a constant is:
const dataType variable_name = value;
Which of the following is NOT a primitive data type in C++?
class
A token is defined as:
The smallest individual unit of a program written in any language
Identifiers in C++:
Consist of letters, digits, and underscore, and must begin with a letter or underscore
Declaration statements are used to:
Declare things such as variables
Executable statements are used to:
Perform calculations, manipulate data, create output, accept input, and so on