Week 2 Flashcards

1
Q

In programming // means

A

Indicates the rest of the line is a comment

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

#

A

Preprocessor

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

int main ()

A

Declaration of a function

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

{ }

A

Indicate beginning and end

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

std::cout

A

Standard character output

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

«

A

Insertion operator

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

;

A

Marks the ends

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

All the elements in the standard c++ are declared within is called

A

Namespace

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

Is a sequence of one or more letters, digits or underscore characters

A

Valid identifier

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

Data types in c++ is divided into 3 parts

A

Primitive
Derived
User

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

These data types are built-in or predefined data types and can be used directly by the user to declare variables

A

Primitive data type

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

Data types derived from primitive

A

Data derived type

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

Data type defined by user itself

A

Abstract or user defined data type

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

It can store either true or false

A

Boolean

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

Type of data that can be stored

A

Data type

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

Name given to the variable

A

Variable_name

17
Q

Initial value stored in the variable

A

Value

18
Q

Refers to the part where a variable is first declared or introduced before its first use

A

Variable declaration

19
Q

Is a part where the variable is assigned a memory location and a value

A

Variable definition

20
Q

A variable defined within a block or method or constructor

A

Local variable

21
Q

Variables that are non static and are declared in a class outside any method, constructor or block

A

Instance variable

22
Q

It is also known class variable

A

Static variable