Sunday 12 October 2014

c program


C Sample Questions – 4
1. What will be the output of the following code:-
int c=20; switch(c)
{
case 19-26:printf("here"); break;
default:printf("there");
break;
}
a)here
b)there
c)No output
d)Error
Ans b

reasoning


Ques. Statements
P:All good athletes want to win.
Q:All good athletes eat well. Conclusions
I. All those who eat well are good athletes. II. All those who want to win, eat well.
Op 1: Only conclusion I follows. Op 2: Only conclusion II follows. Op 3: Neither I nor II follows Op 4: Both I and II follow.
Op 5: Correct Op : 2
Ques. Statements
P:Some mobiles are cameras.
Q:Some cameras are calculators. Conclusions
I. All calculators are mobiles. II. All cameras are mobiles.
Op 1: Only conclusion I follows. Op 2: Only conclusion II follows. Op 3: Neither I nor II follows.
Op 4: Both I and II follow. Op 5:
Correct Op : 3

math

Ques. If the sum of two numbers is 55 and the H.C.F. and L.C.M of these numbers are 5 and 120 respectively, then the sum of the reciprocals of the numbers is equal to:
Op 1: 55/601
Op 2: 601/55
Op 3: 11/120
Op 4: 120/11
Op 5:
Correct Op : 3
 

english

Ques. Select the word or phrase which best expresses the meaning of the given word. : VORACIOUS
Op 1: Wild Op 2: Hungry Op 3: Angry Op 4: Quick Op 5: Correct Op : 2
Ques. Select the word or phrase which best expresses the meaning of the given word. : TIMID
Op 1: Fast
Op 2: Slow Op 3: Medium Op 4: Shy
Op 5: Correct Op : 4
Ques. Select the word or phrase which best expresses the meaning of the given word. : IRONIC
Op 1: Inflexible Op 2: Bitter
Op 3: Good-natured
Op 4: Disguisedly sarcastic Op 5:
Correct Op : 4

computer

Ques. There is a new data-type which can take as values natural numbers between (and including) 0 and 25. How many minimum bits are required to store this data- type.
Op 1: 4
Op 2: 5
Op 3: 1
Op 4: 3
Op 5: Correct Op : 2