Introduction to C++ Flashcards

1
Q

Line

A

Row of Text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

{}

A

Braces

Surround a list of statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Statement

A

Program instruction

Ends with semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

return 0

A

Ends the program without an error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

cout

A

Character Out

Prints a program’s output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

endl

A

Creates a new line in the output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

main

A

Starting place of a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

“text in double quotes”

A

String literal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Comment

A
Text added to code to be read by humans but ignored by the compiler
// single-line comment
/*multi-line comment*/
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Block Comment

A

Multi-line comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Whitespace

A

Blank spaces between items within a statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Syntax Error

A

aka Compile-Time Error

Violating a programming language’s rules on how symbols can be combined to create a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Logic Error

A

aka Runtime Error / Bug

Occurs while a program runs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

C++

A

C-based language

Supports object-oriented programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

=

A

Assign value on right to variable on left

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

cin

A

Character In

Stores user entered value into given variable

17
Q

const

A

Constant Variable

Variable whose value should not be changed while the program runs.

18
Q

Overflow

A

Occurs when value being assigned is greater than the max value a variable can store.
Integer overflow - drops the higher bits and can dramatically alter the number
Floating-point overflow results in infinity

19
Q

Compiler Warning

A

A message that indicates a potential problem

20
Q

Preprocessor

A

Tool that scans the file looking for lines that with with # which direct preprocessor to modify the file before compilation continues.