Computer Science

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/25

encourage image

There's no tags or description

Looks like no tags are added yet.

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

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Directives

special commands that instruct the preprocessor to manipulate or prepare the source code before actual compilation begins.

2
New cards

comments

explanatory notes or hints written inside source code

3
New cards

single-line comment

Uses //

4
New cards

multi-line comment

Starts with /* and ends with */

5
New cards

global variable

variable declared outside of any function

6
New cards

function declaration

tells the compiler about a function before the function is actually defined.

7
New cards

main() function

entry point or starting point of a C++ program

8
New cards
Main components:
9
New cards

function definition

contains the actual implementation or logic of a function.

10
New cards

variable

named placeholder/storage location that can store and manipulate a value

11
New cards

Variable Initialization

giving a variable its initial value

12
New cards

Rule 1

Must begin with a letter or underscore

13
New cards

Rule 2

Can contain letters, numbers, and underscores

14
New cards

Rule 3

No spaces

15
New cards

Rule 4

No special characters

16
New cards

Rule 5

Cannot use C++ reserved keywords

17
New cards

Rule 6

C++ is case-sensitive

18
New cards

Rule 7

Use meaningful names

19
New cards

Data Type

20
New cards

integers

whole numbers

21
New cards

char

Individual/single character

22
New cards

std::cout

used to display/output information on the screen

23
New cards

using namespace std;

to remove the “std” in std::cout

24
New cards

endl

moves the output to the next line

25
New cards

\n

replacing the 'endl'

26
New cards

constant

value that cannot be changed after it has been initialized