You are on page 1of 5

Technical Aptitude Problems

1. What is the output of this C code?


#include <stdio.h>
int main()
{
signed char chr;
chr = 128;
printf("%d\n", chr);
return 0;
}
a) 128
b) -128
c) Depends on the compiler
d) None of the mentioned

2. What will you do to treat the constant 3.14 as a long double?

A. use 3.14LD B. use 3.14L


C. use 3.14DL D. use 3.14LF

3. Which is correct with respect to size of the datatypes?


a) char > int > float
b) int > char > float
c) char < int < double
d) double > char > int

4. What is the output of this C code?

#include <stdio.h>
int main()
{
float x = 'a';
printf("%f", x);
return 0;
}
a) a
b) run time error
c) a.0000000
d) 97.000000

5. Which of the datatypes have size that is variable?


a) int
b) struct
c) float
d) double

6. What is the output of this C code?


#include <stdio.h>
int main()
{
int i = 3;
int l = i / -2;
int k = i % -2;
printf("%d %d\n", l, k);
return 0;
}

a) Compile time error


b) -1 1
c) 1 -1
d) Implementation defined

8. What is the output of this C code?

#include <stdio.h>
void main()
{
int y = 3;
int x = 5 % 2 * 3 / 2;
printf("Value of x is %d", x);
}

a) Value of x is 1
b) Value of x is 2
c) Value of x is 3
d) Compile time error

9. What is the output of this C code?


#include <stdio.h>
void main()
{
int x = 0;
if (x = 0)
printf("Its zero\n");
else
printf("Its not zero\n");
}
a) Its not zero
b) Its zero
c) Run time error
d) None

10. What is the output of this C code?


#include <stdio.h>
void main()
{
1 < 2 ? return 1: return 2;
}
a) returns 1
b) returns 2
c) Varies
d) Compile time error

11. What is the output of this C code?

#include <stdio.h>
void main()
{
unsigned int x = -5;
printf("%d", x);
}

a) Run time error


b) Aries
c) -5
d) 5

Problems based on Time & Work

1. A can do a job 12 days, B is 60% more efficient than A. How many days B will take to
complete the job alone ?
a. 6 days
b. 7 days
c. 8 days
d. 7.5 days
e. None
2. Ram can finish a job in 18 days. Shaam can do the same job within 9 days. If they work
togother what portoin of work they can complete in a day?
a. 1/6
b. 1/7
c. 1/5
d. 2/15
3. Adam can do a job in 15 days, Eve can do the same job in 20 days. If they work together for 4
days on this job. What fraction of job is incomplete ?

a. 1/4
b. 7/15
c. 1/10
d. 8/15
4. Ram takes 6 hours to type 32 pages. Shaam takes 5 hours to type 40 pages. In how many
hours they will type 110 pages together ?
a. 7 hours
b. 8 hours 15 min
c. 8 hours
d. 8 hours 30 min
5. 7 men take 12 days to complete a job. They worked for 5 days, after 5 days 2 men left the
job. In how many days 5 men will complete the job ?
a. 5 days
b. 9 days
c. 7 days
d. None
6. A can do of the job in 3 days. B can do of the same job in 4 days. If they work together
Rs 180 is to be paid to them in total, how much A should get ?
a. 64
b. 100
c. 60
d. 120
7. A can do piece of work in 30 days while B alone can do it in 40 days. In how many days can A
and B working together do it?
a. 16 (1/7)
b. 17(1/7)
c. 18(1/7)
d. 19(1/7)
8. To complete a piece of work A and B take 8 days, B and C 12 days. A, B and C take 6 days. A
and C will take :
a. 7 days
b. 7.5 days
c. 8 days
d. 8.5 days
9. A and B together can complete a piece of work in 35 days while A alone can complete the
same work in 60 days. B alone will be able to complete the same working in:
a. 74 days
b. 80 days
c. 84 days
d. 90 days
10. Two pipes can fill the cistern in 10hr and 12 hr respectively, while the third empty it in 20hr.
If all pipes are opened simultaneously, then the cistern will be filled in
a. 7.5 hr
b. 8 hr
c. 8.5 hr
d. 10 hr

Problems based on Series Test

1. 1, 6, 15, ... , 45, 66, 91.


a. 25
b. 26
c. 27
d. 28
2. 1, 2, 6, 24, ...... [C.A.T. 1997]
a. 60
b. 95
c. 120
d. 150
3. 134, 245, 356, 467, (? ). [MBA1997]
a. 578
b. 579
c. 478
d. 568
4. 4, 10, (?), 82, 244, 730. [C.B.I. 1993]
a. 24
b. 28
c. 77
d. 21
5. 0.5, 1.5, 4.5, 13.5, .... [Railways 1994]
a. 45.5
b. 39.5
c. 30.5
d. 40.5
6. 1, 2, 5, 12, 27, 58, 121, ( ?)
a. 246
b. 247
c. 248
d. 249
7. 2, 15, 41, 80, ....
a. 111
b. 121
c. 120
d. 132
8. 1,9, 17, 33, 49, 73, .....
a. 97
b. 98
c. 99
d. 100
9. 3, 6, 18, 72, ...
a. 144
b. 288
c. 360
d. 216

10. 5, 16, 49, 104, ?


a. 115
b. 148
c. 170
d. 181

You might also like