1. Output of the following program is
main()
{
int i=0;
for(i=0;i<20;i++)
{
switch(i){
case 0:
i+=5;
case 1:
i+=2;
case 5:
i+=5;
default:
i+=4;
break;
}
}
}
(A) 5,9,13,17
(B) 12,17,22
(C) 16,21
(D) syntax error.
2. What will be the result of the following program?
char*g()
{
static char
x[1024];
return x;
}
main()
{
char*g1="FirstString";
strcpy(g(),g1);
g1=g();
strcpy(g1,"SecondString");
printf("Answeris:%s", g());
}
(A) Answer is: First String
(B) Answer is: Second String
(C) Run time Error/Core Dump
(D) None of these
3: which will not complete the transaction .(UPDATE)
4: PL / SQL loop can be replaced by which loop to get least number of steps.
5: USER_INDEX.
6: which language is used by end user to manipulate DBMS.
Ans. DML
7: What can not be used in object names.
8: What is used to collect information from more than one table (JOIN)
9: program on java.swing.
10: problem on JNI
11: What are extendability or serializability
12. which storage class allows class to be initialized in a class.