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;

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;
}

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;
}

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;
}

Read More Section(Variables and Data Types in C plus plus)

Each Section contains maximum 100 MCQs question on Variables and Data Types in C plus plus. To get more questions visit other sections.