What is a correct syntax to output "Hello World" in C++?
cout<<"Hello World";
Which operator is used to add together two values?
+
How do you start writing an if statement in C++?
if(x<y){ }
C++ code line ends with ___
semicolon(;)
Every variable should be separated by .......... separator?
comma(,)
C++ is an alias of C#
False
Which header file lets us work with input and output objects?
#include<iostream.h>
Which keyword is used to return a value inside a method?
return
Default constructor has ____ arguments.
No arguments
To make large programs more manageable programmers modularize them into subprograms that are called_______
Functions
Which data type is used to create a variable that should store text?
string
To declare an array in C++, define the variable type with:
[]
Which statement is used to stop a loop?
break
Reusability of code in C++ is achieved through ____
Inheritance
A function that need no return value is called
void function
How do you create a variable with the numeric value 5?
int x=5;
Array indexes start with:
0
What is the index number of the last element of an array with 9 elements?
8
Auto, static, extern and register are called as
Storage Classes
How many storage classes are offered by C++?
Five
How do you create a variable with the floating number 2.8?
float x=2.8;
Which keyword is used to create a class in C++?
class
How to access the seventh element stored in array?
a[6];
Which operator is used to compare numerical values?
Relational Operator
Several functions of the same name can be defined, as long as they have different parameter is called_____
Function Overloading