From the main menu, choose File New Project to open the Create a New Project dialog box. At the top of the dialog, set Language to C, set Platform to Windows, and set Project type to Desktop. From the filtered list of project types, choose Windows Desktop Wizard then choose Next. In the next page, enter a name for the project, for example.
Quiz Game Project In Dev C Online
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.
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 : AExplaination
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 : CExplaination
If no access specifiers are specified for structure variables/functions, then the default is considered as public.
Q 3 - Operators sizeof and ?:
Answer : BExplaination
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 : AExplaination![]()
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 : BExplaination
An array never is passed with call by value mechanism
Q 7 - An exception is __
Answer : AExplaination
When the program is in execution phase the possible unavoidable error is called as an exception.
Web Dev Projects
Q 8 - What will be the output of the following program?
Answer : AExplaination
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 : CExplaination
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 : BExplaination
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
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |