Sei sulla pagina 1di 4

CARITOR PAPER

===============

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

fraction==> x/x+14=1/8 ==> x=2

Original fraction=2/6

Complete the series


-------------------------
2)

3)

4)Synonyms:
final (---------- ) ultimate

a)end b)last c)finish d)dead

5)Synonyms:

nice ( -------- ) punish


6) Data Representation both graph ,pie chart

7)Time & work problem

8)Verbal Reasoning 3 or 4 problems

C QUESTIONS:(30 ques in 30 min)


==============

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

4)How to print "%" symbol in printf?

Ans:
printf("\%");
5) What is the max no of char in command line arguments?

6)Can arithmetic Operation be performed on void pointers?

7)main()
{
char str1[]="HELLO";
char str2[]="HELLO";
if(str1==str2)
printf("EQUAL");
else
printf("NOT EQUAL");
}

Ans: NOT EQUAL

Since string can be compared only using strcmp()

8)main(int argc)
{
int a;
printf("%d",a);

9) How to declare argc and argv

ans: main(int argc,char* argv[])

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

Potrebbero piacerti anche