Sample Questions
Number of Weights needed for weighing 1 to 40 kgs? 27 9 3 1 ans : 4
Venn diagram problem venndiagram find the formulae. Ans. (AB+BC+CA)(A,+B,+C,)
a +2b=6,ab=4 2/a + 1/b=? ans : 3/2
Age of 4 persons given in a relation find smallest age? ans : meera
find floating point result (float)25/2, float(25/2), 25/(float)2 ,25/2 ans: 1 & 3
find equivalent *(*(s+x)+y) ==> s[x][y] ans : content of s[x][y]
find invalid statement : int a[3]
1. scanf("%d",a[2]);
2. scanf("%d",&a[2]);
3. scanf("%d",a);
4. all
ans : 1
One palindrome programme was given in recursion ans : pal(f++,t--)
main program:
i=foo(2) foo(int s)
{
if(!s)
return s;
else
{ int i=5; return i}
}
ans : 5
k=0 i=0j=1;
if(i0)&&(k=2) printf(k);
if(i0|| k=0)
printf(k)
ans: 2 2
cube is moulded as a sphere. find the ratio of cube of surface area of sphere to squareof surface area of cube. ans pi/6
Teacher in math=4 p6=3 kmistry=3 each can take 2 subject minimum teacher needed for school ans : 5
3 vowels,4 consonents formulate string of 6 letters with a vowel in a string max no of string ? ans: 5040
binnary of .6875. 0.1011
man walks at speed of 8 km/h 300 mtrs length train crosses man in 30 sec from back, find speed of train ans: 44 km/hr
main()
{
char ch;
int count=0;
while((ch = getch() != ,\n,)
{
while (ch == , ,)
ch = getch();
while((ch!=, ,) && (ch!=,.,))
{
count++;
ch=getch();
}
}
ans : 11
Radius of a circle is 5cm , if we draw a rectangle of maximum size, what is the area of rectangle ans : 50 cmsq
main()
{
int i;
for(i=0;i