Explore topic-wise MCQs in E & Y.

This section includes 44 Mcqs, each offering curated multiple-choice questions to sharpen your E & Y knowledge and support exam preparation. Choose a topic below to get started.

1.

 If a class contains pure virtual function, then it is termed as____________________ .

A. Virtual class
B. Sealed class
C. Pure Local class
D. Abstract Class
Answer» E.
2.

 Can we alter/modify the values of data members of a class inside const member function?

A. Yes
B. No
Answer» B. No
3.

  Functions called from within a try block may also throw exception.

A. True
B. False
Answer» B. False
4.

  What Direct measures include in the Software product?

A. Line Of Code (LOC)
B. Execution Speed
C. Defect reported
D. All of these
Answer» E.
5.

 What is the default value at which monitor send update to the controller for Data Point Graph?

A. 2
B. 3
C. 5
D. 10
Answer» D. 10
6.

 7n test cases are generated in which case of Boundary Value Analysis?

A. Worst case
B. Roust worst case
C. Critical fault assumption
D. None of these
Answer» C. Critical fault assumption
7.

Which is not the state of bug in bug Life Cycle?

A. Verified
B. Deferred
C. Critical
D. Postponed
Answer» D. Postponed
8.

Which testing focuses on heavily testing of one particular module?

A. Gorilla Testing
B. Fuzz Testing
C. Inter-Systems Testing
D. Breadth Testing
Answer» B. Fuzz Testing
9.

 Which of the following is not true?

A. Content coupling in a module is desirable
B. Logical cohesion in a module is desirable
C. Stamp coupling is preferred over functional coupling
D. All of these
Answer» E.
10.

Which is the odd one out?

A. .qfl
B. .vbs
C. .mta
D. .txt
Answer» D. .txt
11.

  In Which of the following situation defects will arise?

A. No knowledge of system
B. System is used in wrong way
C. May have coded wrongly
D. All the above
Answer» E.
12.

 Which testing cannot be performed on first build of the software?

A. Regression testing
B. Retesting.
C. Sanity testing
D. All of these
Answer» E.
13.

Which testing is performed with Planning and Documentation?

A. Ad-hoc testing
B. Monkey testing
C. Fuzz testing
D. End-to-End testing
Answer» E.
14.

  Which is not true in context of Decision Tree?

A. Used in white box model.
B. Perform well with large data
C. Handles both categorical and numerical data
D. Random forest tree is used for regression type problem
Answer» E.
15.

Which testing enables the tester to evaluate the software behaviour when exceptions occur?

A. Fault Injection Testing
B. Fuzz Testing
C. Active Testing
D. Passive Testing
Answer» B. Fuzz Testing
16.

Dynamic dispatch is a feature that 

A. selects which polymorphic operation to call at run time
B. selects which polymorphic operation to call at compile time
C. Both a and b
D. None
Answer» C. Both a and b
17.

 The keyword 'this' is used 

A. As reference to current object
B. Explicit constructor invocation
C. In open recursion
D. All the above
Answer» E.
18.

 Use of preprocessor directive in OOP 

A. for conditional compilation
B. for macro expansion
C. error and warning reporting
D. all the above
Answer» E.
19.

Which Java.Lang contains only static methods? 

A. Math ,System
B. Number,Exception
C. There is no such class
D. none
Answer» B. Number,Exception
20.

Fallthrough in a switch case statement 

A. prevents the next case after the matching block to be executed
B. Allows the next case after the matching block to be executed
C. no fallthorugh occurs in switch case
D. none
Answer» C. no fallthorugh occurs in switch case
21.

 Break statement in switch case 

A. prevents from fallthrough
B. causes an exit from innermost loop
C. both a and b
D. none
Answer» D. none
22.

 In nested try blocks, there is no need to specify catch handler for inner try block. Outer catch handler is sufficient for the program.

A. True
B. False
Answer» C.
23.

A try block can be nested under another try block.

A. True
B. False
Answer» B. False
24.

In case of operator overloading, operator function must be ______ .  1. Static member functions 2. Non- static member functions 3. Friend Functions

A. Only 2
B. Only 1, 3
C. Only 2 , 3
D. All 1 , 2, 3
Answer» D. All 1 , 2, 3
25.

 Scope resolution operator is used______ .

A. to resolve the scope of global variables only
B. to resolve the scope of functions of the classes only
C. to resolve scope of global variables as well as functions of the classes
D. None of these
Answer» D. None of these
26.

The purpose of explicit keyword is to tell the compiler that a certain constructor may not be used to implicitly cast an expression to its class type.

A. True
B. False
Answer» B. False
27.

 Is it possible to define a constructor with default arguments?

A. Yes
B. No
Answer» B. No
28.

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» D. It is not possible in CPP to restrict a function
29.

Attempting to throw an exception that is not supported by a function call results in calling _____________ library function.

A. indeterminate()
B. unutilized()
C. unexpected()
D. unpredicted()
Answer» D. unpredicted()
30.

Which of the following is not a file opening mode ____ .

A. ios::ate
B. ios::nocreate
C. ios::noreplace
D. ios::truncate
Answer» E.
31.

In case of inheritance where both base and derived class are having constructors, when an object of derived class is created then___________ .

A. constructor of derived class will be invoked first
B. constructor of base class will be invoked first
C. constructor of derived class will be executed first followed by base class
D. constructor of base class will be executed first followed by derived class
Answer» E.
32.

 In a program, If there exists a function template with two parameters and normal function say void add(int , int), so add(3,4) will _____________________ .

A. Invoke function template body as it is generic one
B. Invokes normal function as it exactly matches with its prototype
C. Not be called and Compiler issues warning
D. Not be called and Compiler issues ambiguity in calling add()
Answer» C. Not be called and Compiler issues warning
33.

const member function does not allow to modify/alter value of any data member of the class.

A. True
B. False
Answer» B. False
34.

While redefining a virtual function in the derived class, if its prototype is changed then ___________________ .

A. It will be overloaded by the compiler
B. Its virtual nature will be lost
C. both a and b
D. Compiler will generate “Prototype mismatch error”
Answer» D. Compiler will generate “Prototype mismatch error”
35.

  ___________ header file is used for manipulators.

A. < iomanipulator.h>
B. < stdiomanip.h>
C. < stdmanip.h>
D. < iomanip.h>
Answer» E.
36.

Which of the following is not a casting operator in CPP?

A. explicit_cast
B. static_cast
C. dynamic_cast
D. reinterpret_cast
Answer» B. static_cast
37.

&nbsp;Which of the following manipulator is used for the representing octal equivalent of a given decimal number?

A. oct
B. setbase(8)
C. tobase(8)
D. both a and b
Answer» E.
38.

&nbsp;If the derived class is struct, then default visibility mode is _______ .

A. public
B. protected
C. private
D. struct can’t inherit class
Answer» B. protected
39.

Can we allocate memory for the objects dynamically in CPP?

A. Yes
B. No
Answer» B. No
40.

In any ways, Non-member function cannot have access to the private data of the class.

A. True
B. False
Answer» C.
41.

When a virtual function is redefined by the derived class, it is called___________.

A. Overloading
B. Overriding
C. Rewriting
D. All of these
Answer» C. Rewriting
42.

Object based language differs from object oriented language as it does not support features _____ . 1. Encapsulation&nbsp; 2. Inheritance&nbsp; 3. Dynamic Binding&nbsp; 4. Abstraction 5. Polymorphism

A. only 3 ,4
B. only 1,3,5
C. 2,4,5
D. Only 2,3
Answer» E.
43.

&nbsp;The code of statements which may cause abnormal termination of the program should be written under_________ block.

A. Try
B. catch
C. Finally
D. None of these
Answer» B. catch
44.

Can we define our exceptions in CPP?

A. Yes
B. No
Answer» B. No