0
Alien head

C++ Programming

Description: Enhance your skills in Object Oriented Paradigm, Object Oriented Programming, C, C++, Software, Cobol, Web Designing
Number of Questions: 25
Created by:
Tags: Object Oriented Paradigm Object Oriented Programming C Programming C++ Programming Software Cobol Programming Web Designing OOPS Middle Level Language Programming
Attempted 0/25 Correct 0 Score 0

After you assign a value to reference, you cannot change the reference value.

  1. True

  2. False


Correct Option: A

C++ allows you to specify default parameter values to functions. Please state if these statement is true or false?

  1. True

  2. False


Correct Option: A

An array variable can be used to different types of data.

  1. True

  2. False


Correct Option: B

Unless specified otherwise, C ++ assumes all members of a class as public.

  1. True

  2. False


Correct Option: B

You can define a union variable in C++ without giving it a particular name. State whether the above statement is true or false.

  1. True

  2. False


Correct Option: A

Union definition does not allocate memory.

  1. True

  2. False


Correct Option: A

Each time your program creates a class variable, C++ automatically calls the class constructor function.

  1. True

  2. False


Correct Option: A

Macros execute faster than function calls.

  1. True

  2. False


Correct Option: A
Explanation:

 Macros execute faster than function calls. So, the given statement is true.

To change the value of a union member within a function, your program must pass the union variable to the function by value.

  1. True

  2. False


Correct Option: B

You cannot overload a constructor function in C++.

  1. True

  2. False


Correct Option: B

Using macros instead of function decreases the size of the executable program.

  1. True

  2. False


Correct Option: B

Constructor & deconstructor functions are generally declared of the type void.

  1. True

  2. False


Correct Option: B

You can overload : (operator ) in C++.

  1. True

  2. False


Correct Option: A

In union, unlike a structure, your programs can only assign a value to one member at a time.

  1. True

  2. False


Correct Option: A

In C++, unless a function uses pointer or references, the function cannot change a parameter's values.

  1. True

  2. False


Correct Option: A

In C++, passing structure variable to a function results in compilation error.

  1. True

  2. False


Correct Option: B

In function overloading, the same function operates on different types of data.

  1. True

  2. False


Correct Option: B

Constructor function must always have the same name as the class.

  1. True

  2. False


Correct Option: A

C++ structure consists of one or more pieces of related data of the same type.

  1. True

  2. False


Correct Option: B

You can overload ?: (operator ) in C++. State whether the above statement is True or False.

  1. True

  2. False


Correct Option: B

In C++, if a function follows the functions use, it will not be necessary to place a function prototype at the start of your source file.

  1. True

  2. False


Correct Option: B

To assign a value to or access the value of a structure member, your programs must use the format variable -> member to access a structure.

  1. True

  2. False


Correct Option: B

You cannot pass parameters to a destructor function.

  1. True

  2. False


Correct Option: A

Your program uses the C++ operation keyword to overload an operator.

  1. True

  2. False


Correct Option: A

Constructor function in C++ cannot return a value. Is it true or false?

  1. True

  2. False


Correct Option: A
+ View questions