Object Oriented Programming Using C++ - Part 1 Online Exam Quiz

Object Oriented Programming Using C++ - Part 1 GK Quiz. Question and Answers related to Object Oriented Programming Using C++ - Part 1. MCQ (Multiple Choice Questions with answers about Object Oriented Programming Using C++ - Part 1

You can use C++ as a procedural, as well as an object-oriented, language

Options

A : True

B : False

C : -

D : -

View Answer

A default catch block catches

Options

A : all thrown objects

B : no thrown objects

C : any thrown object that has not been caught by an earlier catch block

D : all thrown objects that have been caught by an earlier catch block

View Answer

Adding a derived class to a base class requires fundamental changes to the base class

Options

A : True

B : False

C : -

D : -

View Answer

Format flags may be combined using

Options

A : the bitwise OR operator (|)

B : the logical OR operator (||)

C : the bitwise AND operator (&)

D : the logical AND operator (&&)

View Answer

The use of the break statement in a switch statement is

Options

A : optional

B : compulsory

C : not allowed. It gives an error message

D : to check an error

View Answer

To expose a data member to the program, you must declare the data member in the _____ section of the class

Options

A : common

B : exposed

C : public

D : unrestricted

View Answer

Evaluate the following expression: 3 >6&&7>4

Options

A : True

B : False

C : -

D : -

View Answer

A function that changes the state of the cout object is called a(n) _____

Options

A : member

B : adjuster

C : manipulator

D : operator

View Answer

A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?

Options

A : char function(double d, char c)

B : int function(int d, char c)

C : both (a) and (b)

D : neither (a) nor (b)

View Answer

When the compiler cannot differentiate between two overloaded constructors, they are called

Options

A : overloaded

B : destructed

C : ambiguous

D : dubious

View Answer

Artificial Intelligence - Part 1 more Online Exam Quiz

Electronic Principles - Part 1

Language Processors - Part 1

Linux - Part 1

Management Information Systems - Part 1

Networking - Part 1

Operating Systems Concepts - Part 1

System Analysis and Design - Part 1

Unix - Part 1

Windows 2000 Server - Part 1

Windows NT - Part 1