Midterm Study Guide — Introduction to Computers and C++ Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/58

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering computer hardware, software compilation, C++ syntax, operators, control flow, loops, and functions based on the Midterm Study Guide.

Last updated 6:44 PM on 10/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

59 Terms

1
New cards

CPU (Central Processing Unit)

The hardware component that executes instructions; its control unit coordinates work, and its arithmetic and logic unit performs calculations and logical comparisons.

2
New cards

Main memory (RAM)

Temporarily holds programs and data while they are in use; it is volatile, meaning its contents disappear when power is removed.

3
New cards

Secondary storage

Non-volatile storage that retains data when power is turned off, with examples including solid-state drives, hard drives, and flash drives.

4
New cards

Input and output devices

Hardware components where input devices send data to the computer, and output devices communicate results from it.

5
New cards

System software

Software that manages hardware and supports other programs, such as an operating system or development tool.

6
New cards

Application software

Software that performs tasks directly for users, such as word processing or calculations.

7
New cards

Algorithm

An ordered set of well-defined steps for solving a problem.

8
New cards

Source code

Human-readable C++ statements written by the programmer.

9
New cards

Preprocessor

A translation stage tool that processes directives, such as #include, before compilation occurs.

10
New cards

Compiler

A tool that checks syntax and translates source code into object code.

11
New cards

Linker

A tool that combines object code with required library code to create an executable file.

12
New cards

Execution and testing

The stage in program development where the program runs with test data, and the programmer checks results and fixes errors.

13
New cards

IPO pattern

A common program organization structure that gathers input, processes it, and displays or stores output.

14
New cards

Syntax

The grammar and structural rules of a programming language.

15
New cards

Syntax error

An error that violates language grammar rules and prevents successful translation of the program.

16
New cards

Logic error

A mistake that allows a program to compile and run successfully but causes it to produce an incorrect result.

17
New cards

Procedural programming

A programming style that organizes work around functions that operate on data.

18
New cards

Object-oriented programming

A programming style that organizes data and behavior into objects.

19
New cards

include

A preprocessor directive that makes standard input/output declarations available, including cin and cout.

20
New cards

using namespace std;

A declaration that allows the program to reference standard library names like cout directly instead of writing std::cout.

21
New cards

int main()

Defines the mandatory entry point that every complete C++ program must have.

22
New cards

Stream insertion operator (<<)

An operator used with output streams like cout to send values to standard output.

23
New cards

Escape sequence (\n)

A character sequence within an output string that starts a new line.

24
New cards

endl

An output stream manipulator that starts a new line and flushes the output stream.

25
New cards

Keywords

Reserved words in C++ with predefined meanings, such as int, return, and using.

26
New cards

Identifiers

Programmer-chosen names for variables, functions, and other program elements.

27
New cards

Comments

Program documentation ignored by the compiler, written as // for one line or /* … */ for a block.

28
New cards

Variable

A named storage location in memory whose value can change during execution.

29
New cards

Constant

A named storage location defined with const representing a value that should not change after initialization.

30
New cards

Integer division

Division where both operands are integers; the fractional part is discarded before assignment, producing an integer result even if assigned to a double.

31
New cards

cin

The standard input stream object used with >> to extract formatted input and convert it to the variable's type, stopping when an incompatible character is encountered.

32
New cards

getline(cin, text)

A function that reads an entire line of text from standard input, including spaces.

33
New cards

cin.ignore()

A member function that skips characters waiting in the input buffer, often used to clear the newline character left behind after formatted input.

34
New cards

String concatenation

The joining of two strings together using the + operator exactly as written without inserting spaces.

35
New cards

Relational operators

Operators (==, !=,

36
New cards

Logical AND (&&)

A logical operator that evaluates to true only when both operands are true, commonly used to test if a value is inside a range.

37
New cards

Logical OR (||)

A logical operator that evaluates to true when at least one operand is true, useful for alternatives.

38
New cards

Logical NOT (!)

A logical operator that reverses the truth value of its operand.

39
New cards

Null statement

A standalone semicolon that performs no action; placing it immediately after an if condition ends the decision structure prematurely.

40
New cards

Iteration

A single repetition of the statement or block within a loop.

41
New cards

while loop

A pre-test loop that repeats while a condition is true; because the condition is checked before the body, it may run zero times.

42
New cards

do-while loop

A post-test loop that checks its condition after the body executes, guaranteeing the body runs at least once.

43
New cards

for loop

A counter-controlled repetition structure that groups initialization, testing, and updating together; checked before each iteration.

44
New cards

Prefix increment (++number)

An increment expression that increments the variable first, causing the expression to evaluate to the new value.

45
New cards

Postfix increment (number++)

An increment expression that evaluates to the current (old) value of the variable, then increments the variable.

46
New cards

Sentinel

A special value that signals the end of input in a sentinel-controlled loop.

47
New cards

Accumulator

A variable that maintains a running total across iterations, often initialized to 0 before the loop begins.

48
New cards

Function prototype

A declaration placed before a call that informs the compiler of the function's return type, name, and parameter types.

49
New cards

Function header

The first line of a function definition containing the return type, function name, and parameter list.

50
New cards

Function body

The block enclosed in braces containing the statements performed by the function.

51
New cards

Parameter

A variable in a function header that receives a value passed into the function.

52
New cards

Argument

A value or expression supplied in a function call to be passed to a parameter.

53
New cards

Function signature

The function name plus the number, order, and types of its parameters; the return type is not part of it.

54
New cards

Function overloading

Defining multiple functions that share the same name but have different signatures (differing in the number or types of parameters).

55
New cards

Local variable

A variable declared inside a function or block that can be used only there; automatic local numeric variables are not initialized automatically.

56
New cards

Global variable

A variable declared outside all functions that can be accessed from multiple functions; uninitialized numeric globals default to 0.

57
New cards

Scope

The region of a program where a declared name or variable can be used.

58
New cards

Lifetime

The duration of time that an object or variable exists in memory during program execution.

59
New cards

Shadowing

An occurrence where a local variable declaration in an inner scope hides a variable with the same name declared in an outer scope.