C++ Programming
CONSTANTS MCQs
Total Questions : 9
Answer is Option A. -> L prefix
It can turn this as wide character instead of narrow characters.
Answer is Option A. -> The first one refers to a variable whose identifier is x and the second one refers to the character constant x
None.
Answer is Option C. -> Declares a constant a whose value will be 100
Because the const is used to declare non-changable values only.
Answer is Option D. -> They end with a semicolon
None.
Answer is Option A. -> 12.5664
In this program, we are finding the area of the circle by using concern formula.
Output:
$ g++ cons.cpp
$ a.out
12.5664
Answer is Option C. -> Error
We cannot modify a constant integer value.
Answer is Option D. -> all of the mentioned
Because these are the types used to declare variables and so these can be declared as constants.
Answer is Option C. -> both a and b
The const will declare with a specific type values and #define is used to declare user definied
constants.
Recent Questions
Q. DIVA:OPERA
Q. All Computers Must Have __________
Q. Which Of The Following Statements Are Correct With Regard To....
Q. (solve As Per The Direction Given Above)
Q. Deficiency Of 'Thiamine' Causes
Q. In Each Question Below A Sentence Broken Into Four Or Five P....
Q. IRS 1A And 1B Satellites Can Carry Which Of The Following Se....
Q. ....
Q. For A Dc Machine Shunt Resistance And Armature Resistance Va....
Q. ....
Q. Who Among The Following Was The First English Man To Visit W....
Q. Find The Correctly Spelt Word
Q. The Color Of Fluorine Is
Q. Rashi Went toy Shopping With Her Mother And Saw A Toy ....
Q. The Process Partially Responsible For The Life On Earth Is
Q. What Is The Place Of The Indian Men's Cricket Team In The La....
Q. ....
Q. Match The Following: 1. Nishka (i) Later Vedic Coi....
Q. Which Fertiliser Is Made (using Coke Oven Gas) In By Product....
Q. ....