C++ Fundamentals and Computer Science Basics

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

1/35

flashcard set

Earn XP

Description and Tags

Practice flashcards covering C++ basics, syntax, compiler concepts, hardware terminology, history, and roles in computing.

Last updated 12:57 PM on 8/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

36 Terms

1
New cards

What is the general definition of a computer program?

A set of instructions that tells a computer what to do, executing one instruction at a time.

2
New cards

What is the starting point of a C++ program where execution begins?

The main() function, where the computer runs the statements inside its braces { }.

3
New cards

What punctuation character marks the end of most C++ statements?

A semicolon (;)

4
New cards

What data type is used in C++ to store whole numbers such as 5, 20, or -10?

int

5
New cards

What is the purpose of cout << in C++?

It stands for Characters Out and displays information or values on the screen.

6
New cards

What is the purpose of cin >> in C++?

It stands for Characters In and gets an input value from the user to put into a variable.

7
New cards

What is the purpose of the return 0; statement at the end of main()?

It ends the program and tells the computer that the program finished successfully.

8
New cards

How do you write single-line and multi-line comments in C++?

Single-line comments start with // and multi-line comments are enclosed within /* and */.

9
New cards

What is a compile-time error?

An error in code that the compiler finds before the program can run.

10
New cards

What is a syntax error?

An error that violates a programming language's rules, such as forgetting a semicolon.

11
New cards

What is the role of the CPU (Central Processing Unit)?

It acts as the "brain" of the computer that processes instructions.

12
New cards

What is volatile memory?

Memory that loses its contents when the computer is turned off, such as RAM.

13
New cards

What standard file extension is used for C++ source files?

.cpp

14
New cards

What is machine language?

The lowest-level computer language, composed of binary 0s and 1s.

15
New cards

What does a compiler do?

It translates high-level language programs into low-level machine instructions.

16
New cards

What is Moore's Law?

The doubling of IC (integrated circuit) capacity roughly every 18 months.

17
New cards

Brian Jernigan and Dennis Ritchie in a book.

According to the lecture notes, who created the C language in 1978?

18
New cards

Who introduced C++ in 1985 based on C?

Bjarne Striustruo.

19
New cards

What does the C++ escape sequence \n represent?

New line.

20
New cards

What does the C++ escape sequence \t represent?

Tab.

21
New cards

What hardware component is located on the processor chip and provides the fastest access small volatile storage?

Cache

22
New cards

What is the role of Information Security Analysts as defined in section 1.11?

They focus on protecting an organization's computers and data from hackers.

23
New cards

Computer Support Specialists

Requires high knowledge of computer technology and willingness to help nontechnical users.

24
New cards

Computer Programs

Write programs created by software developers.

25
New cards

Computer Systems Analysis

Help organizations use computing technology. They need strong business and computing technology knowledge.

26
New cards

Software Developers

Create, design, and program software.

27
New cards

Information Security Analysts

Focus on protecting an organizations computers and data from hackers.

28
New cards

Web Developers

Build websites and prioritize in content and performance.

29
New cards

Clock

Rate at which a processor executes instructions. If it’s fast, programs run faster but costs more electricity, heat, and take up battery life.

30
New cards

SSD

Non volatile storage with slower access. Much slower than RAM, but provide data.

31
New cards
32
New cards

Assembly Language

A low-level programming language that is easier for humans to understand than machine language but is still closely connected to hardware.

33
New cards

High-Level Programming Language

A programming language designed to be easier for humans to read and write, such as C++, Java, or Python.

34
New cards
35
New cards
36
New cards

Object-Oriented Programming (OOP)

A way of organizing programs using objects to make code easier to manage and reuse.