A continue statement causes execution to skip to
What is the value of the bool? 1.bool is_int(789.54)
Which of these expressions will return true if the input integer v is a power of two?
Choose the right option. string* x, y;
How do we define a constructor?
What is the range of the floating point numbers?
When class B is inherited from class A, what is the order in which the constructers of those classes are called
Originally ‘C’ was developed as:
What does the following statement mean? void a;
Under which of the following circumstances, synchronization takes place?
Which of the following is the most general exception handler that catches exception of any type?
Which of the following is not recommended in a header file?
Identify the incorrect option.
Which of the following correctly describes C++ language?
Which of the following statement is not true about preprocessor directives?
What happens when a pointer is deleted twice?
Size of C++ objects are expressed in terms of multiples of the size of a ____ and the size of a char is ____.
Which variable does equals in size with enum variable?
‘Prime area’ in context of file system is defined as
Which of the following is illegal?
In a C language ‘3’ represents
What is the output of this program? 1.#include
2.int main()
3.{
4.char a = '\012';
5. printf("%d", a);
6.return 0;
7.}
Which of the following will not return a value?
What is the output of this program? 1.#include
2.using namespace std;
3.void addprint()
4.{
5.static int s = 1;
6.s++;
7.cout << s;
8.}
9.int main()
10.{
11.addprint();
12.addprint();
13.addprint();
14.return 0;
15}
Observe following program and answer 100 class Example{public: int a,b,c; Example(){a=b=c=1;} //Constructor 1 Example(int a){a = a; b = c = 1;} //Constructor 2 Example(int a,int b){a = a; b = b; c = 1;} //Constructor 3 Example(int a,int b,int c){ a = a; b = b; c = c;} //Constructor 4 } In the above example of constructor overloading, the following statement will call which constructor Example obj = new Example (1,2,3);
How many characters are specified in the ASCII scheme?
Which of the following is not a component of file system
Which one of the following is not a valid reserved keyword in C++
Value of ix+j, if i,j are integer type and ix long type would be
What will be the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 8;
6.cout << "ANDing integer 'a' with 'true' :" << a && true;
7.return 0;
8.}
Evaluate the following. (false && true) || false || true
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.float num1 = 1.1;
6.double num2 = 1.1;
7.if(num1 == num2)
8.cout << "stanford";
9.else
10.cout << "harvard";
11.return 0;
12.}
The pointer can point to any variable that is not declared with which of these?
Which of the following is not true about preprocessor directives
Which type is best suited to represent the logical values?
The output of this program is int a = 10; void main(){ int a = 20; cout << a << ::a;}