C++ Flashcards

1
Q

C++ is a popular cross-platform language that can be

A

used to create high-performance applications - operating systems, browsers, video games, art applications, and so on.

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

The entry point of every C++ program

A

is the main() function, irrespective of what the program does.

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

Curly brackets { } indicate the

A

beginning and end of a function, which can also be called the function’s body.

The information inside the brackets indicates what the function does when executed.

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

cout is used to

A

perform output on the standard output device which is usually the display screen.

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

In C++

A

the semicolon is used to terminate a statement. Each statement must end with a semicolon. It indicates the end of one logical expression.

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

include is used for

A

adding a standard or user-defined header files to the program.

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

The <iostream> header</iostream>

A

defines the standard stream objects that input and output data.

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

A namespace is

A

a declarative region that provides a scope to the identifiers (names of elements) inside it.

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

the endl manipulator is use to

A

print two lines which will put in a line break.

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

The backslash () is called an escape character

A

indicates a “special” character.

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

When you program in C++, you mainly go through 4 phases during development:

A

Code — writing the program
Save — saving the program
Compile — compiling via the terminal
Execute — executing via the terminal

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