Vidyalelo
Computer Science · all questions

Object Oriented Programming Using C++
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

535

Questions

26/27

Page

Pick an option on a question to see the right answer and solution.

The exclusive OR operator gives the result 1 when

Select an option to see the answer and solution.

A function's purpose is to print customer data. Which of the following is the best name for this function?

Select an option to see the answer and solution.

The function strcmp("Jose", "JOSE") will return _____

Select an option to see the answer and solution.

A pointer to void can hold pointers to

Select an option to see the answer and solution.

Which of the following is the extraction operator?

Select an option to see the answer and solution.

The function whose prototype is void getData(Item &thing); receives

Select an option to see the answer and solution.

When a multidimensional array is accessed, each array index is

Select an option to see the answer and solution.

To create a variable, you must assign _____ to it

Select an option to see the answer and solution.

You indicate a variable is a pointer variable by placing a(n) _____ in front of the variable's name

Select an option to see the answer and solution.

A function can make_________

Select an option to see the answer and solution.

A default exception block must be placed _____

Select an option to see the answer and solution.

Which of the following control structures is used in every program?

Select an option to see the answer and solution.

In the C language, a string is assigned to the

Select an option to see the answer and solution.

Which of the following statements declares a one-dimensional Character array named item that consists of five elements?

Select an option to see the answer and solution.

A derived class may also be called a

Select an option to see the answer and solution.

The main() function is always

Select an option to see the answer and solution.

Variables that are known only to the function in which they are declared are called _____ variables

Select an option to see the answer and solution.

In the expression p → val, p is a(n)

Select an option to see the answer and solution.

In a template function, _____ argument is generic, or parameterized

Select an option to see the answer and solution.

Object-oriented programmers primarily focus on _________

Select an option to see the answer and solution.