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 is the value of the bool? bool is_int(789.54)
Is bool a fundamental datatype in C++?
Which one of the following is not a valid reserved keyword in C++
Which of these expressions will return true if the input integer v is a power of two?
The constants are also called as
Which of the following functions below can be used Allocate space for array in memory?
What happens when a null pointer is converted into bool?
Can two functions declare variables(non static) with the same name.
The output of {int a = 5; int b = 10; cout << (a>b?a:b);}
What is the output of this program? 1.#include
2.using namespace std;
3.int main ()
4.{
5.int numbers[5];
6.int * p;
7.p = numbers; *p = 10;
8.p++; *p = 20;
9.p = &numbers[2]; *p = 30;
10.p = numbers + 3; *p = 40;
11.p = numbers; *(p + 4) = 50;
12.for (int n = 0; n < 5; n++)
13. cout << numbers[n] << ",";
14. return 0;
15.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.enum channel {star, sony, zee};
6.enum symbol {hash, star};
7.int i = 0;
8.for (i = star; i <= zee; i++) {
9.printf("%d ", i);
10.}
11.return 0;
12.}
What is the index number of the last element of an array with 9 elements?
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 5;
6.float b;
7.cout << sizeof(++a + b);
8.cout << a;
9.return 0;
10.}
Under which of the following circumstances, synchronization takes place?
Which of the following is true about const member functions?
In a C language ‘3’ represents
Identify the correct sentence regarding inequality between reference and pointer.
When a language has the capability to produce new data type mean, it can be called as
Which of the two operators ++ and — work for the bool datatype in C++?
What is the output of this program? 1.#include
2.using namespace std;
3.enum test {
4.A = 32, B, C
5.};
6.int main()
7.{
8.cout << A << B<< C;
9.return 0;
10.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int array[] = {10, 20, 30};
6.cout << -2[array];
7.return 0;
8.}
What is the size of wchar_t in C++?
Which of the following will not return a value?
Which is used to indicate single precision value?
Which of the following statements are true for: int f(float)
Void pointer can point to which type of objects?
Which looping process is best used when the number of iterations is known?
How many copies of a class static member are shared between objects of the class?
The conditional compilation
Which of the following correctly describes the meaning of ‘namespace’ feature in C++?
Is the size of character literals different in C and C++?
Which of the following below can perform conversions between pointers to related classes?
Which of the following is the most preferred way of throwing and handling exceptions?
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.}
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 is the most general exception handler that catches exception of any type?
Statement scanf(“%d”,80);