- Error
- Will make an infinite loop.
- Some address will be printed.
- None of these.
Answer: Option 2 Compiler Error : Type mismatch in redeclaration of function display As the function display() is not defined before use, compiler will assume the return type of the function...
1 Answers 9 viewsAnswer: Option 4 Implicit super constructor Base is not visible, must explicitly invoke another constructor.
1 Answers 5 viewsAnswer: Option 3 1. new Derived(); statement executes and invoke the non-parametrized constructor of derived class i.e. public Derived(); 2. As Derived class is a subclass of class Base so super(); executes...
1 Answers 25 viewsAnswer: Option 4 \\n - newline - printf("\\nab"); - Prints 'ab' \\b - backspace - printf("\\bsi"); - firstly '\\b' removes 'b' from 'ab ' and then prints 'si'. So after execution...
1 Answers 2 viewsAnswer: Option 2 As the first option is matching, the cases are evaluated till the break statement is encountered or end of switch statement is encountered.
1 Answers 4 viewsAnswer: Option 2 The sizeof() operator gives the number of bytes taken by its operand. p is a character pointer, which needs one byte for storing its value (a character)....
1 Answers 1 viewsAnswer: Option 4 This will compile and print "Hello". The entry point for a standalone java program is the main method of the class that is being run. The java run-time...
1 Answers 1 viewsAnswer: Option 3 Let'
1 Answers 2 views