With each visit of this Programming in C++ online Quiz / Practice Test, the list of MCQs / Objective Questions presented will be different, offering you a diverse set of practice opportunities. This variability encourages you to practice extensively, refining the accuracy of your answers and your overall grasp of the content. By utilizing this resource, you can hone your skills and become more adept at managing time constraints during actual exams.
Test Instructions Question type Randomized MCQs.Changes every time you visit the test Total Number of Questions 30 Time Limit 20 Minutes Points 1 Point for each Question
Remaining Time: 0 MINUTES
0 of 30 questions completed
Questions:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Information
You have already completed the test before. Hence you can not start it again.
0 of 30 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0 )
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Question 1 of 30
Q-1.What is the output of the following codechar symbol[3]={‘a’,‘b’,‘c’};
for (int index=0; index<3; index++)
cout << symbol [index];
Your Answer:Correct
Your Answer:Incorrect
Question 2 of 30
Your Answer:Correct
Your Answer:Incorrect
Question 3 of 30
Q-3.Which of the following will produce a value 10 if x = 9.7?
Your Answer:Correct
Your Answer:Incorrect
Question 4 of 30
Q-4.A class defined within another class is:
Your Answer:Correct
Your Answer:Incorrect
Question 5 of 30
Q-5.The address of a variable temp of type float is
Your Answer:Correct
Your Answer:Incorrect
Question 6 of 30
Q-6.A struct is the same as a class except that
Your Answer:Correct
Your Answer:Incorrect
Question 7 of 30
Your Answer:Correct
Your Answer:Incorrect
Question 8 of 30
Q-8.Declaration of a pointer reserves memory space
Your Answer:Correct
Your Answer:Incorrect
Question 9 of 30
Q-9.The operator that cannot be overloaded is
Your Answer:Correct
Your Answer:Incorrect
Question 10 of 30
Q-10.The members of a class, by default, are
Your Answer:Correct
Your Answer:Incorrect
Question 11 of 30
Your Answer:Correct
Your Answer:Incorrect
Question 12 of 30
Q-12.In access control in a protected derivation, visibility modes will change as follows:
Your Answer:Correct
Your Answer:Incorrect
Question 13 of 30
Q-13.The break statement causes an exit
Your Answer:Correct
Your Answer:Incorrect
Question 14 of 30
Your Answer:Correct
Your Answer:Incorrect
Question 15 of 30
Q-15.Overloading the function operator
Your Answer:Correct
Your Answer:Incorrect
Question 16 of 30
Q-16.Pure virtual functions
Your Answer:Correct
Your Answer:Incorrect
Question 17 of 30
Q-17.An array element is accessed using
Your Answer:Correct
Your Answer:Incorrect
Question 18 of 30
Q-18.A virtual class is the same as
Your Answer:Correct
Your Answer:Incorrect
Question 19 of 30
Q-19.How many constructors can a class have?
Your Answer:Correct
Your Answer:Incorrect
Question 20 of 30
Q-20.Declaration of a pointer reserves memory space
Your Answer:Correct
Your Answer:Incorrect
Question 21 of 30
Q-21.Mechanism of deriving a class from another derived class is known as____
Your Answer:Correct
Your Answer:Incorrect
Question 22 of 30
Q-22.A function call mechanism that passes arguments to a function by passing a copy of the values
of the arguments is __________
Your Answer:Correct
Your Answer:Incorrect
Question 23 of 30
Q-23.If an array is declared as
int a[4] = {3, 0, 1, 2}, then values assigned to a[0] & a[4] will be ________
Your Answer:Correct
Your Answer:Incorrect
Question 24 of 30
Q-24.Name the header file to be included for the use of built in function isalnum()
Your Answer:Correct
Your Answer:Incorrect
Question 25 of 30
Q-25.You can read input that consists of multiple lines of text using
Your Answer:Correct
Your Answer:Incorrect
Question 26 of 30
Q-26.A pointer to the base class can hold address of
Your Answer:Correct
Your Answer:Incorrect
Question 27 of 30
Q-27.Given a class named Book, which of the following is not a valid constructor?
Your Answer:Correct
Your Answer:Incorrect
Question 28 of 30
Q-28.Which of the following is false for cin?
Your Answer:Correct
Your Answer:Incorrect
Question 29 of 30
Q-29.In multiple inheritance
Your Answer:Correct
Your Answer:Incorrect
Question 30 of 30
Q-30.The major goal of inheritance in c++ is:
Your Answer:Correct
Your Answer:Incorrect