NEW
Font size
WorksheetsC++ Knowledge Based Quiz I = IA
Total questions: 15
Worksheet time: 5mins
Do while loops
Runs a statement once
Runs a statement twice
Runs a statement multiple times or not within a boolean condition
Doesn't run at all
iostream
Displays output from the screen and input from the keyboard
Has all the math equations
Counts the time
Checks if the code has a function
The process of creating a new variable without value
declaration
naming
instantiation
assigning
What is the only function all C++ programs must contain?
start()
system()
main()
program()
What punctuation is used to signal the beginning and end of code blocks?
-> and <-
{ }
BEGIN and END
( and )
A list of instructions that enable a computer to perform a specific task is a...
Computer Program
Algorithm
Machine Code
Binary Code
What is the output of this program? Program int main() { cout<<"Hi everybody"; return 0; }
"Hi everybody"
Hi everybody"
Hi everybody
"Hi everybody
Which of the following is NOT a comparison operator in C++ language?
>
<=
=
==
.
Choose a right C Statement.
Loops or Repetition block executes a group of statements repeatedly.
Loop is usually executed as long as a condition is met.
Loops usually take advantage of Loop Counter
All the above.
int main ()
{
int x = 24, y = 39, z = 45;
z = x + y;
y = z - y;
x = z - y;
printf ("%d %d %d", x, y, z);
}
24 39 63
39 24 63
24 39 45
39 24 45
A function can have _____ inside the parenthesis
loops
Arguments/Parameters
Braces
Types
A function that has no return type starts with:
int
void
Arguments
Braces
A function that returns a whole number starts with the word
int
void
string
{ }
.
What is the type of the temp variable?
var temp = 14.55;
Double
Boolean
Integer
String
... is a set of ordered steps for solving a particular problem.
An algorithm
Program language
Operator
Variable
