Object Oriented Programming Using C++: Test 2 - Online Test

Test Difficulty Level: Easy

Syllabus of Test

C++ Lanuage - This test is based on the Object Oriented Programming using C++ and basic knowledge of the language.

Sample Question from this online test:

Question: The program can access the private member of a class _________

Option A: directly

Option B: only through other private member of the class

Option C: only through other public member of the class

Option D: None of the above- the program cannot access the private member of the class

To answer, click the "Start This Test" button below.

Start this Test






Comments

gajendra kumar jena on 2009-05-17 22:35:55 wrote,

verify ques no 20
ans :d
no 12
ans:d

Ravi Nakidi on 2009-05-19 14:12:32 wrote,

Q#1: All the private members of the class can access by all the member functions within in the class irrespective of private, public and protected.

The private data members are can't access outside of the class. So, I'm requesting you please re-check your question and answer.

Q#12: The answer provided by you is wrong. Only static memeber functions do not have any this pointer because they are belongs to class but not to object. Please, change the answer.

Q#13. Please, re check your answer. Values will be always given to any variable right side only. Here we need to define constructor with all the parameters default.

Q#16. Please, re-check your answer. Declaration is in header file not the definition. Definition is always in source file.

Q#20: Please, recheck your answer. New line character is '\n\ not '\n'.

Varun Mishra on 2009-08-24 14:21:25 wrote,

why so many wrong ques and answer is here on geygyan.com......??
plz check it out...n correct it...its very irritating sometime...

Nitesh Kumar on 2011-08-28 13:33:34 wrote,

good

Nitesh Kumar on 2011-08-28 19:24:27 wrote,

good

janet Janet on 2013-01-16 10:56:05 wrote,

Question 20 might depend on the operating system? Mine needs '\n'.