C++ Programming Flashcards

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

1/37

flashcard set

Earn XP

Description and Tags

Flashcards for C++ How to Program covering basic programming concepts, syntax, data structures, and object-oriented programming principles.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

38 Terms

1
New cards

Hardware

Physical components of a computer system.

2
New cards

Software

Programs that run on a computer system.

3
New cards

Moore's Law

Hardware capacity doubles roughly every 2 years.

4
New cards

Data Hierarchy

The organization of data from smallest to largest units: Bits < Characters < Fields < Records < Files < Databases.

5
New cards

Programming Languages

Programming languages such as Machine, Assembly, and High-Level. C++ is a high-level language supporting object-oriented programming.

6
New cards

main()

The entry point of a C++ program.

7
New cards

//

Used for single-line comments in C++.

8
New cards

/* */

Used for multi-line comments in C++.

9
New cards

cout

Used for output in C++.

10
New cards

cin

Used for input in C++.

11
New cards

\n

Represents a newline character.

12
New cards

\t

Represents a tab character.

13
New cards

Algorithm

Step-by-step procedure for solving a problem.

14
New cards

Pseudocode

Simplified code-like language used for designing algorithms.

15
New cards

Control Structures

Sequence, selection (if, if-else, switch), and iteration (while, for, do-while).

16
New cards

Activity Diagrams

Show the flow of control in an algorithm.

17
New cards

Iteration

for, while, do-while loops.

18
New cards

Logical Operators

&& (AND), || (OR), ! (NOT)

19
New cards

break & continue

Control loop execution.

20
New cards

switch Statement

Multi-way branch statement.

21
New cards

Functions

Reusable blocks of code.

22
New cards

Prototypes

Declare function signature.

23
New cards

Overloading

Same function name, different parameters.

24
New cards

Recursion

Function calling itself.

25
New cards

Arrays

Fixed size, same data type.

26
New cards

Vectors

Dynamic size, safer alternative to arrays.

27
New cards

Pointers

Variables that store memory addresses.

28
New cards

& (address-of)

Returns the memory address of a variable.

29
New cards
  • (dereference)

Accesses the value stored at a memory address.

30
New cards

nullptr

Represents a null pointer in C++11+.

31
New cards

Class Interface

Public member functions of a class.

32
New cards

Implementation

Hidden implementation details of a class.

33
New cards

Constructor & Destructor

Used for object lifecycle management.

34
New cards

Encapsulation

Keeping data private within a class.

35
New cards

Base & Derived Classes

Code reuse through inheritance.

36
New cards

Inheritance Types

Public, Private, Protected

37
New cards

is-a vs has-a

Inheritance vs Composition.

38
New cards

Multiple Inheritance

Derived class inherits from multiple base classes.