Learn C++ Chapter 0/1

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

1/79

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:25 AM on 3/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

80 Terms

1
New cards

What is software?

Programs on a system designed to run on hardware.

2
New cards

What is a platform?

A set of hardware + software that provides an environment to run programs.

3
New cards

What does portable mean?

A program that can run on multiple platforms easily.

4
New cards

What is porting?

Modifying a program to run on another platform.

5
New cards

What language do CPUs understand?

Machine language (binary instructions).

6
New cards

What is an instruction set?

All machine instructions a CPU can execute.

7
New cards

What is a bit?

A single binary digit (0 or 1).

8
New cards

What is assembly language?

Human-readable version of machine language.

9
New cards

What does an assembler do?

Converts assembly into machine code.

10
New cards

Why aren’t CPU families compatible?

They use different instruction sets.

11
New cards

What is ISA?

Instruction Set Architecture (CPU family design).

12
New cards

What is C++’s design philosophy?

“Trust the programmer” (freedom + risk).

13
New cards

What are low-level languages?

Machine and assembly languages with minimal abstraction.

14
New cards

Why are low-level languages not portable?

They depend on specific hardware (ISA).

15
New cards

Main downside of low-level languages?

Hard to write, understand, and maintain.

16
New cards

Main advantage of low-level languages?

Very fast and efficient.

17
New cards

Why were high-level languages created?

To fix low-level language issues.

18
New cards

What is a high-level language?

A language with high abstraction from hardware.

19
New cards

Do high-level languages run directly?

No, they must be compiled or interpreted.

20
New cards

What is a compiler?

Translates source code into machine code.

21
New cards

What is an interpreter?

Executes code directly without compiling.

22
New cards

Compiler vs interpreter difference?

Compiler = faster runtime, Interpreter = more flexible.

23
New cards

What is cross-platform software?

Software that runs on multiple platforms.

24
New cards

Steps to build a program?

Define → Design → Code → Compile → Link → Test → Debug.

25
New cards

What is a bug?

An error in a program.

26
New cards

What is debugging?

Finding and fixing bugs.

27
New cards

What is source code?

Human-written program instructions.

28
New cards

What is a code editor?

A text editor for programming.

29
New cards

Key editor features?

Line numbers, syntax highlighting, monospace font.

30
New cards

What does the compiler do?

Checks code + converts it to object files.

31
New cards

What is an object file?

Intermediate compiled file (.obj).

32
New cards

What does the linker do?

Combines object files into an executable.

33
New cards

What happens if linking fails?

A linker error is generated.

34
New cards

What is the C++ Standard Library?

Built-in reusable functionality.

35
New cards

Example of standard library use?

Input/output (iostream).

36
New cards

What is a third-party library?

External reusable code from others.

37
New cards

What is building?

Full process of compiling + linking.

38
New cards

What is testing?

Checking if program works correctly.

39
New cards

What is an IDE?

Software with editor, compiler, linker, debugger.

40
New cards

What is a project?

Collection of files to build one program.

41
New cards

What is a solution/workspace?

Container for multiple projects.

42
New cards

What is a console application?

Text-based program (no GUI).

43
New cards

What does Build do?

Compiles changed files and links.

44
New cards

What does Clean do?

Deletes compiled files.

45
New cards

What does Rebuild do?

Clean + Build.

46
New cards

What does Run do?

Executes program.

47
New cards

What is Debug mode?

Slower, easier to debug.

48
New cards

What is Release mode?

Faster, optimized for performance.

49
New cards

What is an error?

Stops compilation.

50
New cards

What is a warning?

Doesn’t stop compilation.

51
New cards

What is a statement?

Instruction that performs an action.

52
New cards

What is a function?

A group of statements executed together.

53
New cards

What is an identifier?

Name of a function, variable, etc.

54
New cards

What is a character?

Single symbol (letter, number, etc.).

55
New cards

What is text (string)?

Sequence of characters.

56
New cards

What is a control character?

Special non-visible character (e.g., tab).

57
New cards

What is syntax?

Rules for writing valid code.

58
New cards

What is a syntax error?

Violation of language rules.

59
New cards

What is a comment?

Note ignored by compiler.

60
New cards

Single-line comment syntax?

//

61
New cards

Multi-line comment syntax?

/* */

62
New cards

What should comments explain at high level?

What code does.

63
New cards

What should comments explain inside code?

How it works.

64
New cards

What should statement comments explain?

Why something is done.

65
New cards

What is data?

Information processed by a computer.

66
New cards

What is a value?

A single piece of data.

67
New cards

What is a literal?

Value written directly in code.

68
New cards

What is RAM?

Memory used while program runs.

69
New cards

What is an object?

Storage location for a value.

70
New cards

What is a variable?

Named object.

71
New cards

What is a definition?

Declaring a variable.

72
New cards

What is allocation?

Reserving memory.

73
New cards

What is a data type?

Type of value stored.

74
New cards

What is assignment?

Giving a value using =.

75
New cards

What is initialization?

Giving a value at creation.

76
New cards

Default initialization?

No value assigned (garbage value).

77
New cards

Copy initialization?

int a = 5;

78
New cards

Direct initialization?

int a(5);

79
New cards

Direct-list initialization?

int a{5};

80
New cards

Value initialization?

int a{}.

Explore top notes

note
Observation and Critique Exercise
Updated 626d ago
0.0(0)
note
Of Mice and Men - Study Guide
Updated 1275d ago
0.0(0)
note
Mental Health
Updated 323d ago
0.0(0)
note
Chapter 22: Solutions
Updated 1032d ago
0.0(0)
note
WW2 1939-1945
Updated 1386d ago
0.0(0)
note
Chapter 8 - Acids, Bases, and pH
Updated 1437d ago
0.0(0)
note
Observation and Critique Exercise
Updated 626d ago
0.0(0)
note
Of Mice and Men - Study Guide
Updated 1275d ago
0.0(0)
note
Mental Health
Updated 323d ago
0.0(0)
note
Chapter 22: Solutions
Updated 1032d ago
0.0(0)
note
WW2 1939-1945
Updated 1386d ago
0.0(0)
note
Chapter 8 - Acids, Bases, and pH
Updated 1437d ago
0.0(0)

Explore top flashcards

flashcards
Gilded Age Study Guide
74
Updated 729d ago
0.0(0)
flashcards
Semester Exam Revision
182
Updated 478d ago
0.0(0)
flashcards
VOCAB FINAL HAMILTON
83
Updated 1192d ago
0.0(0)
flashcards
Verbs (me-)
41
Updated 1026d ago
0.0(0)
flashcards
Unit 3: Iceland
24
Updated 892d ago
0.0(0)
flashcards
Sociology 2463 Midterm 2
216
Updated 101d ago
0.0(0)
flashcards
Gilded Age Study Guide
74
Updated 729d ago
0.0(0)
flashcards
Semester Exam Revision
182
Updated 478d ago
0.0(0)
flashcards
VOCAB FINAL HAMILTON
83
Updated 1192d ago
0.0(0)
flashcards
Verbs (me-)
41
Updated 1026d ago
0.0(0)
flashcards
Unit 3: Iceland
24
Updated 892d ago
0.0(0)
flashcards
Sociology 2463 Midterm 2
216
Updated 101d ago
0.0(0)