Functions, Namespaces & Exceptions in C++ Quiz 1

0%
0

Functions, Namespaces & Exceptions in C++ Quiz 1

1 / 50

What is the use of the indentation in c++?

2 / 50

What will happen while using pass by reference?

3 / 50

Where should default parameters appear in a function prototype?

4 / 50

The if..else statement can be replaced by which operator?

5 / 50

The switch statement is also called as?

6 / 50

Which of the following feature is used in function overloading and function with default argument?

7 / 50

What will you use if you are not intended to get a return value?

8 / 50

What are the advantages of passing arguments by reference?

9 / 50

What is an inline function?

10 / 50

How are many sequences of statements present in c++?

11 / 50

If the user did not supply the value, what value will it take?

12 / 50

How many can max number of arguments present in function in the c99 compiler?

13 / 50

What is this operator called ?:?

14 / 50

The destination statement for the goto label is identified by what label?

15 / 50

Overloaded functions are ________________

16 / 50

What are mandatory parts in the function declaration?

17 / 50

How many ways of passing a parameter are there in c++?

18 / 50

In which of the following we cannot overload the function?

19 / 50

Which operator is having the right to left associativity in the following?

20 / 50

When will we use the function overloading?

21 / 50

What should be passed in parameters when function does not require any parameters?

22 / 50

What is used to write multi line comment in c++?

23 / 50

What is the scope of the variable declared in the user defined function?

24 / 50

What is the use of dynamic_cast operator?

25 / 50

By default how the value are passed in c++?

26 / 50

What happens to a function defined inside a class without any complex operations (like looping, a large number of lines, etc)?

27 / 50

If an argument from the parameter list of a function is defined constant then _______________

28 / 50

Which of the following is the default return value of functions in C++?

29 / 50

Where does the return statement returns the execution of the program?

30 / 50

which of the following is used to terminate the function declaration?

31 / 50

How many types of returning values are present in c++?

32 / 50

Which is used to keep the call by reference value as intact?

33 / 50

Which of the following permits function overloading on c++?

34 / 50

Which value will it take when both user and default values are given?

35 / 50

Where can the default parameter be placed by the user?

36 / 50

Function overloading is also similar to which of the following?

37 / 50

How many minimum number of functions should be present in a C++ program for its execution?

38 / 50

How many types of comments are there in c++?

39 / 50

What is a comment in c++?

40 / 50

When we define the default values for a function?

41 / 50

Which operator is having the highest precedence?

42 / 50

Which of the following is important in a function?

43 / 50

An inline function is expanded during ______________

44 / 50

What will happen when we use void in argument passing?

45 / 50

How many types of loops are there in C++?

46 / 50

Which looping process is best used when the number of iterations is known?

47 / 50

From which function the execution of a C++ program starts?

48 / 50

What type of comments does c++ support?

49 / 50

Which is more effective while calling the functions?

50 / 50

Where does the execution of the program starts?

Provide Your Information

Your score is

The average score is 0%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi