CMSC 140 Pearson Chapter 3

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

1/56

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.

57 Terms

1
New cards

cin

A C++ object used to receive input from the user.

2
New cards

Stream Extraction Operator

Symbol (>>) used with cin to input data into a program.

3
New cards

Mathematical Expressions

Combinations of numbers and operators to perform calculations.

4
New cards

Order of Operations

Rules defining the sequence in which operations are performed in expressions.

5
New cards

Type Conversion

Automatic or explicit conversion of one data type to another.

6
New cards

Overflow

Occurs when a variable exceeds its maximum storage capacity.

7
New cards

Underflow

Occurs when a variable falls below its minimum storage capacity.

8
New cards

Type Casting

Explicit conversion of a variable from one type to another.

9
New cards

Multiple Assignment

Assigning the same value to multiple variables in one statement.

10
New cards

Combined Assignment

Operators that perform an operation and assignment in one step.

11
New cards

Manipulators

Functions like setw and setprecision used to format output.

12
New cards

Characters

Single letters or symbols used in programming.

13
New cards

Strings

Sequences of characters used to store text.

14
New cards

Mathematical Library Functions

Functions like sqrt and pow used for advanced calculations.

15
New cards

Hand Tracing

Manual simulation of code execution to identify errors.

16
New cards

Keyboard Buffer

Memory area where input values are stored before being read by cin

17
New cards

Prompt

Message displayed to guide users on what data to enter

18
New cards

Console

Text-Based interface for input and output operations

19
New cards

Operator Precedence

The hierarchy determining the order of operations in an expression.

20
New cards

Associativity

The direction in which operators are evaluated when they have the same precedence.

21
New cards

Unary Negation

An operator with right-to-left associativity that negates a value

22
New cards

Type Coercion

Automatic conversion of operands to the same type in C++.

23
New cards
Unsigned Int
An integer data type in C++ that can only represent non-negative values.
24
New cards
Long
A data type in C++ used to represent larger integer values.
25
New cards
Char
A data type in C++ used to represent single characters.
26
New cards
Short
A data type in C++ used to represent smaller integer values.
27
New cards
Integer Division
Division of integers in C++ that results in an integer
28
New cards
Promotion
Conversion of a value to a higher data type in C++.
29
New cards
Demotion
Conversion of a value to a lower data type in C++.
30
New cards
Setw
A manipulator that sets the minimum width for the next input/output field.
31
New cards
Setprecision
A manipulator that sets the number of significant digits for floating-point numbers.
32
New cards
Fixed
A manipulator that forces floating-point numbers to be displayed in fixed-point notation.
33
New cards
Showpoint
A manipulator that ensures decimal points and trailing zeros are displayed in floating-point numbers.
34
New cards
Left
A manipulator that aligns output to the left of the print field.
35
New cards
Right
A manipulator that aligns output to the right of the print field.
36
New cards
getline
Function that reads an entire line from input
37
New cards
string
Object used to store and manipulate sequences of characters.
38
New cards
cin.get
Function that reads a single character from input
39
New cards
cin.ignore
Function used to clear the input buffer to avoid reading unwanted characters.
40
New cards
Member Functions
Functions associated with an object that perform operations on its data.
41
New cards
length
Function that returns the number of characters in a string.
42
New cards
Concatenate
Operation of joining two strings together using the + operator.
43
New cards
C++ Runtime Library
A collection of pre-written code that provides mathematical functions and other utilities for C++ programs.
44
New cards
cmath
A header file in C++ that includes mathematical functions like pow
45
New cards
pow
A function that raises a number to a specified power.
46
New cards
abs
A function that returns the absolute value of an integer.
47
New cards
cos
A function that calculates the cosine of an angle in radians.
48
New cards
sin
A function that calculates the sine of an angle in radians.
49
New cards
exp
A function that computes the exponential function of a number.
50
New cards
fmod
A function that returns the remainder of a division with doubles.
51
New cards
sqrt
A function that calculates the square root of a number.
52
New cards
random_device
An engine that generates random bits for random number generation.
53
New cards
uniform_int_distribution
An object that produces random integers within a specified range.
54
New cards
uniform_real_distribution
An object that produces random floating-point numbers within a specified range.
55
New cards
random
A header file in C++ that includes functions and objects for generating random numbers.
56
New cards
Distribution Object
An object that reads random bits and produces numbers within a specified range.
57
New cards
Random Number Engine
An object that generates random bits for use in random number generation.