Font size
WorksheetsC++ Reviewer
Total questions: 15
Worksheet time: 8mins
The filename sample1.cpp, cpp means C plus plus
The value of pi=3.1416 can be changed when it is included in a C++ program.
A variable declared as int is representing any positive or negative whole number.
Assembly Language is the 2nd generation language and easier to understand than a machine language.
The data types, "float" and "double" are used to declare decimal numbers.
Who is the developer of C++?
Blaise Pascal
Steve Jobs
Bill Gates
Bjarne Stroustrup
Complete the meaning of IDE: Integrated _______ Environment
Development
Developer
Decision
Divisible
The application we use in coding a C++ program.
Notepad++
Code: :Blocks
Notepad
Online C++ compiler
#include <iostream> is a part of C++ program
Comment
Namespace Declaration
Preprocessor Directives
Function Definitions
return 0; at the bottom part of C++ program, means that
that the output of the program is zero
that the program has errors
that the program run successfully
that no compilation will happen
int x = 8, y = 2;
int result = x + y * 3;
cout << result;
41
30
14
13
int age = 11;
bool canVote = (age > 10) && (age <= 18);
0 (false)
1 (true)
. int c = 12, d = 5;
int result = c / d + c % d;
cout << result;
4
5
2.40
2.5
Which is a valid variable?
Gen_Ave
5genAve
Gen/Ave
5678
Which is NOT a reserved keyword in C++?
and
case
break
score
