Quiz Game Project In Dev C++

  • C++ Basics
  • C++ Object Oriented
  • C++ Advanced
  • C++ Useful Resources
  • Selected Reading

C projects for beginners. Use these project as sample code for making board game program like Tic-Tac-Toe, Snake and ladder, Hangman. Data handling projects using object oriented design Bank, Library and Student database projects for project idea. Understandable C tutorials, source code, a 50 question C quiz, compiler information, a very active message board, and a free programming newsletter. C/C Programming and Computer Science Quizzes - Cprogramming.com.


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

Autotune free download. SYL-1512A2 PID TEMPERATURE CONTROLLER INSTRUCTION MANUAL Version 2.3 AUBER INSTRUMENTS WWW.AUBERINS.COM Caution This controller is intended to control equipment under normal operating conditions. If failure or malfunction of it could lead to an abnormal operating condition that could cause personal injury or damage to the equipment.

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 ?:

Quiz Game Project In Dev C 2017

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

Quiz Game Project In Dev C 5

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

Quiz Game Project In Dev C Full

Explaination

An array never is passed with call by value mechanism

Q 7 - An exception is __

Quiz game project in dev c 2017

Answer : A

Explaination

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

Explaination

0, strcmp return 0 if both the strings are equal

Dev

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
Test your C++ programming and computer science knowledge against our quizzesand see how much you've learned.

General C++ Programming and Computer Science Quizzes

  • C, C++ andComputer Science MegaQuiz Test your general C, C++ and computer scienceknowledge!

Language Feature Quizzes

These quizzes are based on the material covered in our C and C++ tutorials.

C++ Quizzes

C Quizzes


Taken all the tests? Test you skills against our programming challenges.
Advertising Privacy policy Copyright © 2019 Cprogramming.com Contact About