CMSC Chapter 2 Key Terms Pearson

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

41 Terms

1
New cards
Main Function
The entry point of a C++ program where execution begins.
2
New cards
Preprocessor Directives
Instructions that guide the compiler before actual compilation.
3
New cards
Statements
Individual instructions in a program that perform actions.
4
New cards
Cout

A stream object used to output data to the console in C++.

5
New cards
Include Directive
A command to include libraries in a C++ program.
6
New cards
Variables

Memory locations in programming used to store and manipulate data.

7
New cards
Literals

Constant values written directly into code, such as numbers or strings.

8
New cards
Identifiers
Names given to elements like variables and functions.
9
New cards
Integer Data Types
Data types for handling whole numbers.
10
New cards
Char Data Type
Represents individual characters in C++.
11
New cards
String Class
Allows manipulation of sequences of text.
12
New cards
Floating-Point Data Types
Data types for numbers with decimal points.
13
New cards
Bool Data Type
Represents true or false values.
14
New cards
Scope
Defines where variables can be accessed in a program.
15
New cards
Arithmetic Operators
Operators for performing mathematical calculations.
16
New cards

Difference in Syntax for single line and multi line comments

// for single line, /* and */ for multi line

17
New cards

Namespaces

Organizational units in C++ ensuring unique and well-defined names.

18
New cards

Stream Insertion Operator

The << operator used to send data to cout.

19
New cards

Escape Sequences

20
New cards
Preprocessor
A tool that processes directives before the compiler runs.
21
New cards
Compiler
A program that translates C++ code into machine code.
22
New cards
Input-Output Stream
A library in C++ for handling input and output operations.
23
New cards
Header File
A file containing declarations and macro definitions to be shared between several source files.
24
New cards

Constants

Values that do not change during program execution, synonymous with literals.

25
New cards

Keywords

Reserved words in C++ that must be lowercase and cannot be used as identifiers.

26
New cards

Null Terminator

A special byte marking the end of a string, ASCII code 0.A special byte marking the end of a string, ASCII code 0.

27
New cards

Linefeed

ASCII code 10, used for the newline character.

28
New cards

Byte

A unit of data typically consisting of 8 bits.

29
New cards

Mantissa

The part of a floating-point number that represents the significant digits.

30
New cards
Float
A single precision floating-point data type
31
New cards
Double
A double precision floating-point data type
32
New cards
Long Double
A floating-point data type intended to be larger than double
33
New cards
True
Boolean value represented by 1 in memory.
34
New cards
False
Boolean value represented by 0 in memory.
35
New cards
sizeof
An operator in C++ that returns the number of bytes a data type or variable occupies in memory.
36
New cards
Variable Initialization
Assigning a value to a variable at the time of its creation.
37
New cards
Operands
The entities on either side of an operator.
38
New cards
Auto Keyword
A C++11 feature that allows the compiler to deduce the variable type.
39
New cards
Unary Operator
An operator that requires only one operand
40
New cards
Binary Operator
An operator that works with two operands
41
New cards
Ternary Operator
An operator that requires three operands