# test

## Welcome

Fill the details & start your test

Name
Email
Q1. What is the output of following program?
void main(){
int a=2;
switch(a);
{
case 1: printf("A");
case 2: printf("B");
case 3: printf("C");
break;
case 4: printf("D");
default: printf("E");
break;
}
}
Q2. What is the output of following program?
void f1(){
extern int g;
static int s=5;
int a;
++g;
a=s++;
printf("%d%d%d",a,s,g);
if(a<=6)
f1();
printf("%d%d%d",a,s,g);
}
void f2(){
static int s;
int a;
a=++s;
++g;
printf("%d%d%d",a,s,g);
if(a<=2)
f2();
printf("%d%d%d",a,s,g);
}
main(){
f1();
f2();
}
Q3. What is the output of following program?
void main(){
int a;
a=1;
while(a<=10){
printf("%d",a);
if(a>3 && a<8)
continue;
a++;
}
printf("%d",a+10);
}
Q4. What is the output of following program?
void abc(int a){
++a;
printf("%d",a);
}
void main(){
int a=10;
abc(++a);
abc(a++);
printf("%d",a);
}
Q5. What is the output of following program?
void main(){
float a;
a=8.5;
if(a==8.5)
printf("1");
else
printf("2");
}
Q6. Which of the following statements is true?
Q7. What happens when the following class is compiled and run.
public class test
{
public static void main(String args[])
{
int x = 0, y = 1, z;
if(x)
z = 0;
else
z = 1;
if(y)
z = 2;
else
z = 3;
System.out.println(z);
}
}
Q8. Which all lines are part of the output when the following code is compiled and run.
public class test {
public static void main(String args[]) {
for(int i = 0; i < 3; i++) {
for(int j = 3; j >= 0; j--) {
if(i == j) continue;
System.out.println(i + " " + j);
}
}
}
}

a. 0 0
b. 0 1
c. 0 2
d. 0 3
e. 1 0
f. 1 1
g. 1 2
h. 1 3
i. 2 0
j. 2 1
k. 2 2
l. 2 3
Q9. What is the result of compiling and running this program?
public class test
{
public static void main(String args[])
{
int i, j;
int k = 0;
j = 2;
k = j = i = 1;
System.out.println(k);
}
}

Q10. Which of these is a legal definition of a method named m assuming it throws IOException, and returns void. Also assume that the method does not take any arguments.
Q11. The output of following script would be:$somerar=15; function ad it () { GLOBAL$somevar; $somerar++ ; echo "somerar is$somerar"; } addit ();
Q12. Which of the following functions require the allow-url-fopen must be enabled?
Q13. Which function includes the specified file even the statement evaluates to false in which block the function is placed.
Q14. Trace the function that does continue the script execution even if the file inclusion fails
Q15. script is a ______.
Q16. Which of the following variables is not a predefined variable?
Q17. Which of the following delimiting method is known as string Interpolation.
Q18. Which of the following best describes JavaScript?