ExamVeda
Login
Home
71
Which of the given statements are false
i. extern int func;
ii. extern int func2(int,int);
iii. int func2(int,int);
iv. extern class foo;
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
72
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    int i = 3;
    int l = i / -2;
    int k = i % -2;
    cout << l << k;
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
73
What does the following statement mean?
void a;
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
74
What is the value of the following 8-bit integer after all statements are executed?
int x = 1;
x = x << 7;
x = x >> 7;
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
75
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    int num = 0x20 + 020 + 20;
    cout << sizeof(num)<<'\n';
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
76
Which of the following will not return a value?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
77
Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
78
Is bool a fundamental data type in C++?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
79
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    int a = 8;
    cout << "ANDing integer 'a' with 'true' :" << (a && true);
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
80
Which data type is used to represent the absence of parameters?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board