2.
When do you call copy constructors ?
3.
What is Dangling pointer?
4.
Output of Java Programs:
class Test {
protected int x, y;
}
class Main {
public static void main(String args[]) {
Test t = new Test();
System.out.println(t.x + " " + t.y);
}
}
5.
Output of Java Programs
class Test {
private static int x;
public static void main(String args[]) {
System.out.println(fun());
}
static int fun() {
return ++x;
}
}
7.
Match the correct pair
A.Public 1) Data members and functions are available to derived classes only
B.Protected 2) Data members and functions are not accessible outside the class
C.Private 3) Data members and functions are accessible outside the class
9.
How can we delete duplicate rows in a table?
10.
Which one of the following is true ?
11.
What happens if you remove static modifier from the main method?
13.
When is the super keyword used?
super keyword is used to refer:
14.
When was C language developed?
15.
Examples of MIME Types?
16.
Output of Java Programs
class Test {
public static void main(String[] args) {
for(int i = 0; true; i++) {
System.out.println(“Hello”);
break;
}
}
}
17.
What are local static variables?
18.
Guess the missing implicit member function of a class?
- Default Constructor
- Copy
- Assignment Operator
- ………………………..
- Address Operator
19.
Difference between class and structure?
20.
INSTR returns_____________?
21.
Which tag is used to execute java source code in JSP?
22.
What is the maximum size for a RAWdata in a table?
23.
What are different storage class specifiers in C?