If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
Value of a in a = (b = 5, b + 5); is
Which of the following is not a standard exception built in C++.
Which of the following is a valid destructor of the class name “Country”
Identify the correct sentence regarding inequality between reference and pointer.
Which of the following correctly declares an array?
The size of an object or a type can be determined using which operator?
What will be used when terminating a structure?
What is the output of this program? 1.#include
2.#include
3.using namespace std;
4.int main()
5.{
6.cout << setprecision(17);
7.double d = 0.1;
8.cout << d << endl;
9.return 0;
10.}
Identify the incorrect option.
The output of this program is int a = 10; void main(){ int a = 20; cout << a << ::a;}
Which of the following language feature is not an access specifier in C++?
What is the output of this program? 1.include
2.using namespace std;
3.int g = 100;
4.int main()
5.{
6.int a;
7.{
8.int b;
9.b = 20;
10.a = 35;
11.g = 65;
12.cout << b << a << g;
13.}
14.a = 50;
15.cout << a << g;
16.return 0;
17.}
It is guaranteed that a ____ has atleast 8bits and a ____ has atleast 16 bits.
Which classes allow primitive types to be accessed as objects?
What we can’t do on a void pointer?
What is meaning of following declaration? int(*p[5])();
Select the right option: Given the variables p, q are of char type and r, s, t are of int type (1) t = (r * s) / (r + s); (2) t = (p * q) / (r + s);
Which of the two operators ++ and — work for the bool datatype in C++?
Which of the following statements are false?
Which of the following correctly describes C++ language?
What’s wrong? for (int k = 2, k <=12, k++)
What is the output of this program? 1.#include
2.using namespace std;
3.void swap(int &a, int &b);
4.int main()
5.{
6.int a = 5, b = 10;
7.swap(a, b);
8.cout << "In main " << a << b;
9.return 0;
10.}
11.void swap(int &a, int &b)
12.{
13.int temp;
14.temp = a;
15.a = b;
16.b = temp;
17.cout << "In swap " << a << b;
18.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.char str[5] = "ABC";
6.cout << str[3];
7.cout << str;
8.return 0;
9.}
Which of the following functions below can be used Allocate space for array in memory?
The output of {int a = 5; int b = 10; cout << (a>b?a:b);}
How to declare a wide character in string literal?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 5, b = 10, c = 15;
6.int *arr[ ] = {&a, &b, &c};
7.cout << arr[1];
8.return 0;
9.}
The declaration of structure is also called as?
A void pointer cannot point to which of these?
The statement i++; is equivalent to
When is std::bad_alloc exception thrown?
Is bool a fundamental datatype in C++?
Which looping process is best used when the number of iterations is known?
What is the value of the following 8-bit integer after all statements are executed?
int x = 1;
x = x << 7;
x = x >> 7;
Which of the following is a valid floating point literal?