C++ Programming Chapters 1-4 (TEST 1)
#include iostream using namespace std; int main() { return 0; } - Answer- the parts required in every C++ program comments - Answer- nonexecutable statements that are included in a program to provide information about what the program does, how it works, what input is expected, what output is generated, who wrote it, etc. preprocessor directives - Answer- tells the computer where to find the library for operations and data types preprocessor - Answer- a program that finds and attaches to your program the indicated libraries for compilation namespace std; - Answer- place where identifiers used in the system provided header files are defined int values - Answer- whole numbers, no decimals and no commas included char - Answer- single letters, digits, special symbols; enclose value in single quotes ('a' '?' '8') escape sequences - Answer- use 2 characters to represent one 'n' = newline 't' = tab floating-point category: float, double - Answer- data types that refer to numbers with decimals unary operator - Answer- operator with only one operand binary operator - Answer- operator with two operands named constant - Answer- a memory location with a name and data type and a value, its content (value) cannot be changed during program execution type casting (conversion) - Answer- programmer explicitly indicates that a value is to be converted to another type
Document information
- Uploaded on
- December 16, 2023
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers