M3S1 Part 1 Flashcards

1
Q

is an extension of C

A

C++

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

a statically typed, compiled, general-purpose, casesensitive, free-form programming language that supports
procedural, object-oriented, and generic programming.

A

C++

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

C++ is regarded as a

A

middle-level language

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

comprises
a combination of both high-level and low-level language
features.

A

C++

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

C++ was developed by

A

Bjarne
Stroustrup starting in 1979 at Bell Labs
in Murray Hill, New Jersey,

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

C++ og name

A

C with Classes

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

when was C with Classes get renamed into C++

A

1983

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

Pre-processor directive

A
#include 
using namespace std;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Comment

A

//This is my first program in C++

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

main() function

A

int main()

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

Start of the program

A

{

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

Output statement

A

cout

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

Return

A

return 0;

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

End of the program

A

}

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

C++ Basic Structure:

A
  1. Pre-processor directive
  2. Comment
  3. main() function
  4. Start of the program
  5. Output statement
  6. Return
  7. End of the program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

are directives for

the preprocessor.

A

Lines beginning with a hash or pound sign (#)

17
Q

They tell the compiler to preprocess the source

code before compiling.

A

preprocessor directive

18
Q

No white space should appear before the

A

#

19
Q

is a semi colon required at the end of a preprocessor directive?

A

no

20
Q

instructs the compiler to add the
contents of an include file into your
program during compilation.

A

include

21
Q

includes the declarations of the basic

standard input-output library in C++

A

include

22
Q

basic

standard input-output library in C++

A

cin, cout

23
Q

defines various mathematical functions and one

macro.

A

include

The math.h header

24
Q

is used to define symbolic

names and constants.

A

define directive

25
Q
All lines beginning with two
slash signs (//) are considered
as a WHAT and do not have
any effect on the behavior of
the program.
A

comment line