Lecture 1 Flashcards

Basics of computer programming with C++

1
Q

How many ways can a computer handle instructions?

A

3

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

How can a computer handle instructions?

A

Executing by instructions in a sequence, selection and iteration

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

What is the structure of a C++ program?

A

include <iostream></iostream>

int main()
{
return 0;
}

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

What is an IDE?

A

Integrated Development Environment

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

What are pre-processor directives?

A

the start of the program that is instructs the compiler
#include (library e.g. iostream)

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

How do we print in C++?

A

cout &laquo_space;” “ &laquo_space;endl;

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

How are statements ended?

A

;

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

What is endl?

A

ends the output

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

What is cout?

A

console output (like print)

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

What is information stored in?

A

Variables

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