- C++ Basics
Oct 13, 2017 Im not sure how to check if the open of file was successful, but i fixed the loop and changed the do while to for and the game now runs with the questions, but after the first question the questions get messed up.
- C++ Object Oriented
- C++ Advanced
- C++ Useful Resources
- Selected Reading
C++ Questions and Answers has been designed with a special intention of helping students and professionals preparing for various Certification Exams and Job Interviews. This section provides a useful collection of sample Interview Questions and Multiple Choice Questions (MCQs) and their answers with appropriate explanations.
Sr.No | Question/Answers Type |
---|---|
1 | C++ Interview Questions This section provides a huge collection of C++ Interview Questions with their answers hidden in a box to challenge you to have a go at them before discovering the correct answer. |
2 | C++ Online Quiz This section provides a great collection of C++ Multiple Choice Questions (MCQs) on a single page along with their correct answers and explanation. If you select the right option, it turns green; else red. |
3 | C++ Online Test If you are preparing to appear for a Java and C++ Framework related certification exam, then this section is a must for you. This section simulates a real online test along with a given timer which challenges you to complete the test within a given time-frame. Finally you can check your overall test score and how you fared among millions of other candidates who attended this online test. |
4 | C++ Mock Test This section provides various mock tests that you can download at your local machine and solve offline. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. |
- C++ Basics
Quiz Game Project In Dev C Download
- C++ Object Oriented
- C++ Advanced
- C++ Useful Resources
- Selected Reading
Following quiz provides Multiple Choice Questions (MCQs) related to C++ Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - What is the output of the following program?
Answer : A
Explaination
The static member variable ‘x’ shares common memory among all the objects created for the class.
Q 2 - By default the members of the structure are
Answer : C
Explaination
If no access specifiers are specified for structure variables/functions, then the default is considered as public.
Q 3 - Operators sizeof and ?:
Answer : B
Explaination
Both the mentioned operators cannot be overloaded.
Q 4 - Choose the Object oriented programming language from below.
Q 5 - What is the output of the following program?
Answer : A
Explaination
The method f() inherited from Base is referred using :: operator.
Q 6 - An array can be passed to the function with call by value mechanism.
Answer : B
Explaination
An array never is passed with call by value mechanism
Q 7 - An exception is __
Answer : A
Explaination
Quiz Game Project In Dev C 2017
When the program is in execution phase the possible unavoidable error is called as an exception.
Q 8 - What will be the output of the following program?
Answer : A
Quiz Game Project In Dev C Online
Explaination
0, strcmp return 0 if both the strings are equal
Q 9 - Following is the invalid inclusion of a file to the current program. Identify it
Answer : C
Explaination
option (a) & (b) are valid. There is no such syntax or provision as in option (c).
Q 10 - i) Exceptions can be traced and controlled using conditional statements.
ii) For critical exceptions compiler provides the handler
Answer : B
Explaination
Conditional statements are used to take alternate actions depending upon certain condition but not multi branching. C++ too provides some critical exception handlers.
cpp_questions_answers.htm