Test Pattern(25bits-40mins)
Section1
Arrangement of sentences(5ques-5marks)
Section 2
Paragraph Questions(5q-5m)
Section 3
General Knowledge(2q-2m)
Section 4
Arithmetic and Reasoning(8q-8m)
Section 5
Simple C programs(5q-5m)
Some questions
Q:In a Group15,7 have studied latin,8 have studied greek,and 3 have not studied either How many of them studied both latin and greek
Q:selling price is doubled profit is tripled then what is the profit percentage?
Answer Let C.P. be Rs. x and S.P. be Rs. y.
Then, 3(y - x) = (2y - x) y = 2x.
Profit = Rs. (y - x) = Rs. (2x - x) = Rs. x.
Profit % = | x | x 100 | % = 100% | |
x |
Q:Who is the founder of Google
Answer: Larry Page
Q:The 10th Biodeversity COP meeting is held at?
Answer:Japan
Q:void main()
{
int const * p=5;
printf("%d",++(*p));
}
Answer:
Compiler error: Cannot modify a constant value.
Explanation:
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".
int const * p=5;
printf("%d",++(*p));
}
Answer:
Compiler error: Cannot modify a constant value.
Explanation:
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".
Q: main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q; }
for(j=0;j<5;j++){
printf(" %d ",*p);
++p; }
}
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q; }
for(j=0;j<5;j++){
printf(" %d ",*p);
++p; }
}
Answer:
2 2 2 2 2 2 3 4 6 5
Explanation:
Initially pointer c is assigned to both p and q. In the first loop, since only q is incremented and not c , the value 2 will be printed 5 times. In second loop pitself is incremented. So the values 2 3 4 6 5 will be printed.
2 2 2 2 2 2 3 4 6 5
Explanation:
Initially pointer c is assigned to both p and q. In the first loop, since only q is incremented and not c , the value 2 will be printed 5 times. In second loop pitself is incremented. So the values 2 3 4 6 5 will be printed.
Q: #define int char
main()
{
int i=65;
printf("sizeof(i)=%d",sizeof(i));
}
Answer:
sizeof(i)=1
Explanation:
Since the #define replaces the string int by the macro char
{
int i=65;
printf("sizeof(i)=%d",sizeof(i));
}
Answer:
sizeof(i)=1
Explanation:
Since the #define replaces the string int by the macro char
Q: main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
Answer:
hai
Explanation:
\n - newline
\b - backspace
\r - linefeed
printf("\nab");
printf("\bsi");
printf("\rha");
}
Answer:
hai
Explanation:
\n - newline
\b - backspace
\r - linefeed
Q: enum colors {BLACK,BLUE,GREEN}
main(){
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
Answer:
0..1..2
Explanation:
enum assigns numbers starting from 0, if not explicitly defined.