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: Tanuja Atwal | |
Tags: Object Oriented Paradigm Object Oriented Programming C Programming C++ Programming Software Cobol Programming Web Designing OOPS Middle Level Language Programming |
After you assign a value to reference, you cannot change the reference value.
C++ allows you to specify default parameter values to functions. Please state if these statement is true or false?
An array variable can be used to different types of data.
Unless specified otherwise, C ++ assumes all members of a class as public.
You can define a union variable in C++ without giving it a particular name. State whether the above statement is true or false.
Union definition does not allocate memory.
Each time your program creates a class variable, C++ automatically calls the class constructor function.
Macros execute faster than function calls.
To change the value of a union member within a function, your program must pass the union variable to the function by value.
You cannot overload a constructor function in C++.
Using macros instead of function decreases the size of the executable program.
Constructor & deconstructor functions are generally declared of the type void.
You can overload : (operator ) in C++.
In union, unlike a structure, your programs can only assign a value to one member at a time.
In C++, unless a function uses pointer or references, the function cannot change a parameter's values.
In C++, passing structure variable to a function results in compilation error.
In function overloading, the same function operates on different types of data.
Constructor function must always have the same name as the class.
C++ structure consists of one or more pieces of related data of the same type.
You can overload ?: (operator ) in C++. State whether the above statement is True or False.
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.
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.
You cannot pass parameters to a destructor function.
Your program uses the C++ operation keyword to overload an operator.
Constructor function in C++ cannot return a value. Is it true or false?