ExamVeda
Login
Home
91
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main ( )
{
    static double i;
    i = 20;
    cout << sizeof(i);
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
92
Identify the incorrect option.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
93
Choose the incorrect option.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
94
Find the odd one out.
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
95
Which variable does equals in size with enum variable?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
96
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
enum colour 
{
    green, red, blue, white, yellow, pink
};
int main()
{
    cout << green<< red<< blue<< white<< yellow<< pink;
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
97
Which of the two operators ++ and - work for the bool data type in C++?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
98
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    int i;
    enum month 
    {
        JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
    };
    for (i = MAR; i <= NOV; i++)
       cout << i;
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
99
What is the range of the floating point numbers?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
100
Which of the following belongs to the set of character types?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board