C++ Programming Questions

Q.  How can we restrict a function to throw certain exceptions?

a. Defining multiple try and catch block inside a function
b. Defining generic function within try block
c. Defining function with throw clause
d. It is not possible in CPP to restrict a function


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Generic catch handler must be placed at the end of all the catch handlers.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  An exception can be of only built-In type.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  The CPP compiler supports automatic type conversions for the user defined datatypes.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Can a class be declared/defined inside another class ?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Can we pass parameters to base class constructor though derived class or derived class constructor?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  _________________are used for generic programming.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Irrespective of exception occurrence, catch handler will always get executed.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  In CPP, cin and cout are the predefined stream __________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Object oriented programming employs_________ programming approach.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Constant variables can be created in CPP by using ________ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  A virtual function that has no definition within the base class is called____________.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  What are the characteristics of software?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Compilers, Editors software come under which type of software?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Software Engineering is defined as systematic, disciplined and quantifiable approach for the development, operation and maintenance of software.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  RAD Software process model stands for _____ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Software project management comprises of a number of activities, which contains _________.
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  COCOMO stands for ______ .
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the following is not defined in a good Software Requirement Specification (SRS) document?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  What is the simplest model of software development paradigm?
Category: Computer Science MCQs,   Published by: T-Code Scripts
MCQs:  Which of the following is the understanding of software product limitations, learning system related problems or changes to be done in existing systems beforehand, identifying and addressing the impact of project on organization and personnel etc?
Category: Computer Science MCQs,   Published by: T-Code Scripts