Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
===============
Online test:
Quantitative
C/C++
GD
Interview
Quantitative Section
--------------------------
30 ques in 30 min
1)A fraction in which nr. is 4 less than dr.When 10 is added to the dr the fraction
becomes 1/8.What is the original fraction?
Ans:
Let nr be x
dr be x+4
fraction x/x+4
on adding 10 to dr
Original fraction=2/6
3)
4)Synonyms:
final (---------- ) ultimate
5)Synonyms:
1) main()
{
char s[]={'1','2','3',0,'1','2','3'};
printf("%s",s);
}
a)123 123
b)123123
c)1230123
d)error
2)main()
{
char *p="Caritor";
*++p;
printf("%s",p);
*++p;
printf("%s",*p);
}
Ans: aritor ritor
3)main()
{
int K,j;
for(k=0;k<10;k++)
{
some codes
}
}
Ans : ERROR since k not declared
Ans:
printf("\%");
5) What is the max no of char in command line arguments?
7)main()
{
char str1[]="HELLO";
char str2[]="HELLO";
if(str1==str2)
printf("EQUAL");
else
printf("NOT EQUAL");
}
8)main(int argc)
{
int a;
printf("%d",a);
10)main()
{
int s=5;
printf("%d",s,s<<2,s>>2);
}
ans:5 20 1
11)main()
{
int a[2][2]={2,3}
printf("%d%d%d%d",a[0][0],a[0][1],a[1][0],a[1][1]};
}
a)2000
b)0002
c)2300
d)error
ans: 2300