1. If the letters of the word "rachit" are arranged in all possible ways and these words are written out as in a dictionary, what is the rank of the word "rachit".
(a) 485
(b) 480
(c) 478
(d) 481
Ans. (d)
2. Ravi's salary was reduced by 25%.Percentage increase to be effected to bring the salary to the original level is
(a) 20%
(b) 25%
(c) 33 1/3%
(d) 30%
Ans. (c)
3. A and B can finish a piece of work in 20 days .B and C in 30 days and C and A in 40 days. In how many days will A alone finish the job
(a) 48
(b) 34 2/7
(c) 44
(d) 45
Ans. (a)
4. How long will a train 100m long traveling at 72kmph take to overtake another train 200m long traveling at 54kmph
(a) 70sec
(b) 1min
(c) 1 min 15 sec
(d) 55 sec
Ans. (b)
5. The most abundant element in the universe is
(a) Hydrogen
(b) Helium
(c) Oxygen
(d) Silicon
Ans. (a)
6. Integrate 3x + 5 / (x3-x2-x+1)
(a) 1/2 log | (x+1)/(x-1) | - 4/(x-1)
(b) log |2+tanx|
(c) -(1+logx)/x
(d) 2 log|(tanx)/(tanx+2)
Ans. A
7.
main()
{
int x=5;
clrscr();
for(;x<= 0;x--)
{
printf("x=%d ", x--);
}
}
a. 5, 3, 1
b. 5, 2, 1,
c. 5, 3, 1, -1, 3
d. –3, -1, 1, 3, 5
Ans: prints nothing, as condition in loop is false.
8.
main()
{
{
unsigned int bit=256;
printf("%d", bit);
}
{
unsigned int bit=512;
printf("%d", bit);
}
}
a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error
Ans: 256, 512, becoz these r different blocks, so declaration allowed
9.
main()
{
int i;
clrscr();
for(i=0;i<5;i++)
{
printf("%d\n", 1L << i);
}
}
a. 5, 4, 3, 2, 1
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 4, 8
d. 1, 2, 4, 8, 16
Ans: d) L does't make any diff.
10. If a person walks at 4/5th of his usual spee he reaches 40min late. If he walks at his usual speed how much time does he travels.
Ans:160min or 2hr 40min
11. In a class 80% have passed english,70% passed Hindi 10% did not passed either. If 144 students passed both. What is the total strength of the class.
Ans: 240.
12. (38 x 142) ÷ (4096) =?
1) 337.25
2) 269.8
3) 490
4) 84.3125
5) None of these
13. 3 + 33.3 + 3.03 + 333 =?
1) 666
2) 636.33
3) 372.33
4) 672.66
5) None of these
14.
main()
{
char c;
int i = 456;
clrscr();
c = i;
printf("%d", c);
}
a. 456
b. -456
c. random number
d. none of the above
Ans: d) -56
15.
void main ()
{
int x = 10;
printf ("x = %d, y = %d", x,--x++);
}
a. 10, 10
b. 10, 9
c. 10, 11
d. none of the above
Ans: d) Lvalue required
16.
main()
{
int i =10, j = 20;
clrscr();
printf("%d, %d, ", j-- , --i);
printf("%d, %d ", j++ , ++i);
}
a. 20, 10, 20, 10
b. 20, 9, 20, 10
c. 20, 9, 19, 10
d. 19, 9, 20, 10
Ans: c)
17.
main()
{
int x=5;
clrscr();
for(;x==0;x--) {
printf("x=%d\n”", x--);
}
}
a. 4, 3, 2, 1, 0
b. 1, 2, 3, 4, 5
c. 0, 1, 2, 3, 4
d. none of the above
Ans: d) prints nothing, as condition x==0 is False
18.
main()
{
int x=5;
for(;x!=0;x--) {
printf("x=%d\n", x--);
}
}
a. 5, 4, 3, 2,1
b. 4, 3, 2, 1, 0
c. 5, 3, 1
d. none of the above
Ans: d) Infinite loop as x is decremented twice, it never be 0
and loop is going on & on
19.Find the least number when divided by 7 gives the reminder 6, when divided by 6 gives reminder 5, when divided by 5 gives reminder 4 and so on....
Ans: 419
20. A boat travels 20 kms upstream in 6 hrs and 18 kms downstream in 4 hrs.Find the speed of the boat in still water and the speed of the water current?
(a) 1/2 kmph
(b) 7/12 kmph
(c) 5 kmph
(d) none of these
Ans.. (b)
21. A goat is tied to one corner of a square plot of side 12m by a rope 7m long.Find the area it can graze?
(a) 38.5 sq.m
(b) 155 sq.m
(c) 144 sq.m
(d) 19.25 sq.m
Ans.. (a)
22. Which of the following does POP stand for?
A. Post Office Protocol B. Peer over peer
23. Private Office Protocol D. Post Optical Protocol
Ans: A
24. Which of the following stages of compilation produces a syntax tree?
A. Parsing B. Code generation
C. Lexical analysis D. Semantic analysis
Ans: A
25. Which of the following is not contained in a system description?
A. Internal data flows B. Flows leaving and entering the system
C. Relationship between external entities D. Internal components or processes
Ans: C
(a) 485
(b) 480
(c) 478
(d) 481
Ans. (d)
2. Ravi's salary was reduced by 25%.Percentage increase to be effected to bring the salary to the original level is
(a) 20%
(b) 25%
(c) 33 1/3%
(d) 30%
Ans. (c)
3. A and B can finish a piece of work in 20 days .B and C in 30 days and C and A in 40 days. In how many days will A alone finish the job
(a) 48
(b) 34 2/7
(c) 44
(d) 45
Ans. (a)
4. How long will a train 100m long traveling at 72kmph take to overtake another train 200m long traveling at 54kmph
(a) 70sec
(b) 1min
(c) 1 min 15 sec
(d) 55 sec
Ans. (b)
5. The most abundant element in the universe is
(a) Hydrogen
(b) Helium
(c) Oxygen
(d) Silicon
Ans. (a)
6. Integrate 3x + 5 / (x3-x2-x+1)
(a) 1/2 log | (x+1)/(x-1) | - 4/(x-1)
(b) log |2+tanx|
(c) -(1+logx)/x
(d) 2 log|(tanx)/(tanx+2)
Ans. A
7.
main()
{
int x=5;
clrscr();
for(;x<= 0;x--)
{
printf("x=%d ", x--);
}
}
a. 5, 3, 1
b. 5, 2, 1,
c. 5, 3, 1, -1, 3
d. –3, -1, 1, 3, 5
Ans: prints nothing, as condition in loop is false.
8.
main()
{
{
unsigned int bit=256;
printf("%d", bit);
}
{
unsigned int bit=512;
printf("%d", bit);
}
}
a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error
Ans: 256, 512, becoz these r different blocks, so declaration allowed
9.
main()
{
int i;
clrscr();
for(i=0;i<5;i++)
{
printf("%d\n", 1L << i);
}
}
a. 5, 4, 3, 2, 1
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 4, 8
d. 1, 2, 4, 8, 16
Ans: d) L does't make any diff.
10. If a person walks at 4/5th of his usual spee he reaches 40min late. If he walks at his usual speed how much time does he travels.
Ans:160min or 2hr 40min
11. In a class 80% have passed english,70% passed Hindi 10% did not passed either. If 144 students passed both. What is the total strength of the class.
Ans: 240.
12. (38 x 142) ÷ (4096) =?
1) 337.25
2) 269.8
3) 490
4) 84.3125
5) None of these
13. 3 + 33.3 + 3.03 + 333 =?
1) 666
2) 636.33
3) 372.33
4) 672.66
5) None of these
14.
main()
{
char c;
int i = 456;
clrscr();
c = i;
printf("%d", c);
}
a. 456
b. -456
c. random number
d. none of the above
Ans: d) -56
15.
void main ()
{
int x = 10;
printf ("x = %d, y = %d", x,--x++);
}
a. 10, 10
b. 10, 9
c. 10, 11
d. none of the above
Ans: d) Lvalue required
16.
main()
{
int i =10, j = 20;
clrscr();
printf("%d, %d, ", j-- , --i);
printf("%d, %d ", j++ , ++i);
}
a. 20, 10, 20, 10
b. 20, 9, 20, 10
c. 20, 9, 19, 10
d. 19, 9, 20, 10
Ans: c)
17.
main()
{
int x=5;
clrscr();
for(;x==0;x--) {
printf("x=%d\n”", x--);
}
}
a. 4, 3, 2, 1, 0
b. 1, 2, 3, 4, 5
c. 0, 1, 2, 3, 4
d. none of the above
Ans: d) prints nothing, as condition x==0 is False
18.
main()
{
int x=5;
for(;x!=0;x--) {
printf("x=%d\n", x--);
}
}
a. 5, 4, 3, 2,1
b. 4, 3, 2, 1, 0
c. 5, 3, 1
d. none of the above
Ans: d) Infinite loop as x is decremented twice, it never be 0
and loop is going on & on
19.Find the least number when divided by 7 gives the reminder 6, when divided by 6 gives reminder 5, when divided by 5 gives reminder 4 and so on....
Ans: 419
20. A boat travels 20 kms upstream in 6 hrs and 18 kms downstream in 4 hrs.Find the speed of the boat in still water and the speed of the water current?
(a) 1/2 kmph
(b) 7/12 kmph
(c) 5 kmph
(d) none of these
Ans.. (b)
21. A goat is tied to one corner of a square plot of side 12m by a rope 7m long.Find the area it can graze?
(a) 38.5 sq.m
(b) 155 sq.m
(c) 144 sq.m
(d) 19.25 sq.m
Ans.. (a)
22. Which of the following does POP stand for?
A. Post Office Protocol B. Peer over peer
23. Private Office Protocol D. Post Optical Protocol
Ans: A
24. Which of the following stages of compilation produces a syntax tree?
A. Parsing B. Code generation
C. Lexical analysis D. Semantic analysis
Ans: A
25. Which of the following is not contained in a system description?
A. Internal data flows B. Flows leaving and entering the system
C. Relationship between external entities D. Internal components or processes
Ans: C
No comments:
Post a Comment