Lecture 1 Flashcards
Basics of computer programming with C++
1
Q
How many ways can a computer handle instructions?
A
3
2
Q
How can a computer handle instructions?
A
Executing by instructions in a sequence, selection and iteration
3
Q
What is the structure of a C++ program?
A
include <iostream></iostream>
int main()
{
return 0;
}
4
Q
What is an IDE?
A
Integrated Development Environment
5
Q
What are pre-processor directives?
A
the start of the program that is instructs the compiler
#include (library e.g. iostream)
6
Q
How do we print in C++?
A
cout «_space;” “ «_space;endl;
7
Q
How are statements ended?
A
;
8
Q
What is endl?
A
ends the output
9
Q
What is cout?
A
console output (like print)
10
Q
What is information stored in?
A
Variables