Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

In an economical model, physical object is

A. economics
B. transport
C. probability
D. country
Answer» E.
2.

The major goal of inheritance in c++ is:

A. To facilitate the conversion of data types
B. To help modular programming
C. To extend the capabilities of a class
D. To hide the details of base class
Answer» D. To hide the details of base class
3.

Many companies find that being able to reuse classes on a second project provides original programming investment

A. decrease return
B. increase return
C. no return
D. infinite return
Answer» C. no return
4.

Class which share its characteristics to parent class but also add its own is termed as

A. base class
B. derived class
C. sub class
D. object
Answer» C. sub class
5.

Automobile in a traffic flow simulation is

A. object
B. function
C. data
D. variable
Answer» B. function
6.

Mouse, keyboard, disk drives and printers are basic elements of

A. circuit design-user environment
B. automobile-user environment
C. economical environment
D. computer-user environment
Answer» E.
7.

C++ is derived from

A. Java
B. C
C. PHP
D. Smalltalk
Answer» C. PHP
8.

You can read input that consists of multiple lines of text using

A. the normal cout << combination
B. the cin.get( ) function with one argument
C. the cin.get( ) function with two arguments
D. the cin.get( ) function with three arguments
Answer» D. the cin.get( ) function with three arguments
9.

Mechanism of deriving a class from another derived class is known as____

A. Polymorphism
B. Single Inheritance
C. Multilevel Inheritance
D. Message Passing
Answer» D. Message Passing
10.

Consider the following class definitions: class a { }; class b: protected a { }; What happens when we try to compile this class?

A. Will not compile because class body of a is not defined
B. Will not compile because class body of b is not defined
C. Will not compile because class a is not public inherited
D. Will compile successfully
Answer» E.
11.

Once a class has been written, created and debugged, it can be distributed to other programs for use in their own program. This is called

A. reusability
B. usability
C. robust
D. reboot
Answer» B. usability
12.

Pure object oriented language is

A. Scala
B. PHP
C. C
D. Matlab
Answer» B. PHP
13.

When an existing operator, such as + or =, is given the capacity to operate on a new data type, is said to be

A. overloaded
B. loaded
C. unloaded
D. None of these
Answer» B. loaded
14.

Data encapsulation and data hiding are key features of

A. procedural language
B. machine language
C. structural language
D. object oriented language
Answer» E.
15.

Arrays in object oriented language can be referred to as data storage

A. constructs
B. entities
C. collection
D. types
Answer» B. entities
16.

Language in which arrangement of separate data and functions does a poor job of modeling things in real world is

A. Procedural language
B. Object oriented language
C. Module language
D. C++
Answer» B. Object oriented language
17.

Data type which holds its own data members and member functions, which can be accessed and used by creating an instance of that class is known as

A. user defined data type
B. by default data type
C. integer data type
D. string data type
Answer» B. by default data type
18.

RunTime polymorphism is achieved by ___________

A. friend function
B. virtual function
C. operator overloading
D. function overloading
Answer» C. operator overloading
19.

RunTime Polymorphism is achieved by ______

A. friend function
B. virtual function
C. operator overloading
D. function overloading
Answer» C. operator overloading
20.

What is the output of the following code : char symbol[3]={‘a’,‘b’,‘c’};for (int index=0; index

A. a b c
B. “abc”
C. abc
D. ‘abc’
Answer» D. ‘abc’
21.

A copy constructor takes

A. no argument
B. one argument
C. two arguments
D. arbitrary no. of arguments
Answer» C. two arguments
22.

If we create a file by ‘ifstream’, then the default mode of the file is _________

A. ios :: out
B. ios :: in
C. ios :: app
D. ios :: binary
Answer» C. ios :: app