C++ Programming
DECLARATION MCQs
Total Questions : 10
The statement makes CHAR a synonym for char*.
In statement 1 lvalue is required as unary ‘&’ operand and in statement 3 lvalue is required as
left operand.
We will get compilation error because ‘i’ is an undeclared identifier.
The variable that is declared as static has a file scope.
Output:
$ g++ dec2.cpp
$ a.out
234
We can declare variables with the same name in two functions because their scope lies within the
function.
The local values of a and g within the block are more dominant than the global values.
Output:
$ g++ dec1.cpp
$ a.out
2035655065
The keyword extern is not a definition and is not allocated storage until it is initialized.
No extern are allowed for class declarations.
Global values are implicitly initialised to 0, but local values have to be initialised by the system.
An identifier can be declared many times must be defined just once.
Recent Questions
Q. The Value Engineering Technique In Which Experts Of The Same....
Q. If Transcription Should Not Be Carried Out Beyond The Insert....
Q. Buffalo Is To Leather As Llama Is To....?
Q. Choose The Correct Answer From The Given Options To Fill The....
Q. The Arithmetic Mean (average) Of The First 10 Whole Numbers ....
Q. Which Governor General Is Remembered For The Annulment Of Th....
Q. When The Voltage Across A Capacitor Is Tripled, The Stored C....
Q. My Mother Bakes Cakes.
Q. Log Mean Temperature Difference In Case Of Counter Flow Comp....
Q. Which Of The Following Is Not A Matter Of Local Government?
Q. Which Drugs Can Easily Pass The Placental Barrier?
Q. Which Of The Following Is Not A Benefit Of BLAST?
Q. A Part Of John's Salary Was Cut By The Government. What....
Q. The Swollen Part Of The Pistil Is Known As ________ .
Q. By Definition, Make A Map Is To Select Certain Features As R....
Q. Which Of The Following Is The Best Tube Material From Therma....
Q. If You Are Going To Use A Combination Of Three Or More AND A....
Q. (a) A Ball Is Dropped From A Height Of 30m. After Striking T....
Q. What Is The Approx. Value Of W, If W=(1.5)11, Given Log2 = 0....
Q. In The Following Questions, The Symbols $, ©, *, @ And # Ar....