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?
Which of the following statements are true? int f(float)
Which of the following is a valid destructor of the class name “Country”
The size_t integer type in C++ is?
How many characters are specified in the ASCII scheme?
Which one of the following is not a valid reserved keyword in C++
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int num1 = 10;
6.float num2 = 20;
7.cout << sizeof(num1 + num2);
8.return 0;
9.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 10;
6.if (a < 10) {
7.for (i = 0; i < 10; i++)
8.cout << i;
9.}
10.else {
11.cout << i;
12.}
13.return 0;
14.}
Which of the following is not a standard exception built in C++.
Which variable does equals in size with enum variable?
Which of the two operators ++ and — work for the bool datatype in C++?
What is the range of the floating point numbers?
What is the output of this program? 1.#include
2.using namespace std;
3.#define PI 3.14159
4.int main ()
5.{
6.float r = 2;
7.float circle;
8.circle = 2 * PI * r;
9.cout << circle;
10.return 0;
11.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.char *ptr;
6.char Str[] = "abcdefg";
7.ptr = Str;
8.ptr += 5;
9.cout << ptr;
10.return 0;
11.}
What is the output of this program? 1.#include
2.using namespace std;
3.enum cat {
4.temp = 7
5.};
6.int main()
7.{
8.int age = 14;
9.age /= temp;
10.cout << "If you were cat, you would be " << age << endl;
11.return 0;
12.}
Which of the STL containers store the elements contiguously (in adjacent memory locations)?
Which of the following is not a standard exception built in C++.
Which of the following members do get inherited but become private members in child class
Under which of the following circumstances, synchronization takes place?
What will be the output of the this program? 1.#include
2.using namespace std;
3.int main ()
4.{
5.int array[] = {0, 2, 4, 6, 7, 5, 3};
6.int n, result = 0;
7.for (n = 0; n < 8; n++) {
8.result += array[n];
9.}
10.cout << result;
11.return 0;
12.}
Which of the following statement is not true about preprocessor directives?
Is bool a fundamental datatype in C++?
Choose the incorrect option
What is the value of the following 8-bit integer after all statements are executed?
int x = 1;
x = x << 7;
x = x >> 7;
What’s wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
Which of the following is/are advantages of cellular partitioned structure:
Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
STL is based on which of the following programming paradigms?
What will happen when the structure is declared?
Which of the following is not a component of file system
To which of these enumerators can be assigned?
*ptr++ is equivalenet to:
In a C language ‘3’ represents
The output of this program is int a = 10; void main(){ int a = 20; cout << a << ::a;}
What happens when a null pointer is converted into bool?
What we can’t do on a void pointer?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a[2][4] = {3, 6, 9, 12, 15, 18, 21, 24};
6.cout << *(a[1] + 2) << *(*(a + 1) + 2) << 7.2[1[a]];
7.return 0;
8.}
What is the size of wchar_t in C++?