C++ Basics
Variables
Looping Statement, Arrays
Operators
Functions
100

What is a correct syntax to output "Hello World" in C++?

cout<<"Hello World";

100

Which operator is used to add together two values?

+

100

How do you start writing an if statement in C++?

if(x<y){  }

100

 C++ code line ends with ___

semicolon(;)

100

Every variable should be separated by .......... separator?

comma(,)

200

C++ is an alias of C#

False

200

Which header file lets us work with input and output objects?

#include<iostream.h>

200

Which keyword is used to return a value inside a method?

return

200

Default constructor has ____ arguments.

No arguments

200

To make large programs more manageable programmers modularize them into subprograms that are called_______

Functions

300

Which data type is used to create a variable that should store text?

string

300

To declare an array in C++, define the variable type with:

[]

300

Which statement is used to stop a loop?

break

300

Reusability of code in C++ is achieved through ____

Inheritance

300

A function that need no return value is called

void function

400

How do you create a variable with the numeric value 5?

int x=5;

400

Array indexes start with:

0

400

What is the index number of the last element of an array with 9 elements?

8

400

Auto, static, extern and register are called as

Storage Classes

400

How many storage classes are offered by C++?

Five

500

How do you create a variable with the floating number 2.8?  

float x=2.8;

500

Which keyword is used to create a class in C++?

class

500

How to access the seventh element stored in array?

a[6];

500

Which operator is used to compare numerical values?

Relational Operator

500

Several functions of the same name can be defined, as long as they have different parameter is called_____

Function Overloading

M
e
n
u