Home / Tests / Object Oriented Programming Concept Using C++ Test 3 Online MCQs

Object Oriented Programming Concept Using C++ Test 3 Online MCQs

Test Name Object Oriented Programming Concept Using C++ Test 3 Online MCQs
Subject Computer
Test Type MCQs
Total Question 15
Total Marks 30
Total Time 15 Mints
Test Help For
  • Basic Knowledge about IT
  • IT General Knowledge Quiz
  • Computer History
  • IT & Computer Tests
  • General Ability
  • Competitive Exams.

Object Oriented Programming Concept Using C++ Test 3 Online MCQs

Computer

1. If the type specifier of parameters of a function is followed by an ampersand (&) that function call is

Question 1 of 15

2. Functions can be declared with default values in parameters. We use default keyword to specify the value of such parameters.

Question 2 of 15

3. Type specifier is optional when declaring a function

Question 3 of 15

4. You must specify void in parameters if a function does not have any arguments.

Question 4 of 15

5. Study the following piece of code and choose the best answer
Int x=5, y=3, z;
a=addition(x,y)

Question 5 of 15

6. Regarding string stream identify the invalid statement

Question 6 of 15

7. Which of the following is extraction operator in C++?

Question 7 of 15

8. In case of arguments passed by values when calling a function such as z=addidion(x,y),

Question 8 of 15

9. Find out the error in following block of code.
If (x = 100)
Cout << “x is 100”;

Question 9 of 15

10. Regarding the use of new line character (/n) and endl manipulator with cout statement

Question 10 of 15

11. Cin extraction stops execution as soon as it finds any blank space character

Question 11 of 15

12. In case of pass by reference

Question 12 of 15

13. Observe the following statements and decide what do they do.
String my string;
Get line(cin, my string);

Question 13 of 15

14. Which of the following is selection statement in C++?

Question 14 of 15

Uncategorized

15. The difference between while structure and do structure for looping is

Question 15 of 15


 

Test By Subject
Test By Topics
Have any Problem or Error please mention in below comments section.

Leave a Reply

Your email address will not be published. Required fields are marked *