# ASDC Aptitude, Technical Test January 2012

Posted on :20-04-2016

APTITUDE:

Q1. A coffee shop blends 2 kinds of coffee, putting in 2 parts of a 33 p. a gm. grade to 1 part of a 24 p. a gm. If the mixture is changed to 1 part of the 33 p. a gm. to 2 parts of the less expensive grade, how much will the shop save in blending 100 gms?

a) Rs.90
b) Rs.1.00
c) Rs.3.00
d) Rs.8.00

Q2. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to contribute towards the purchase of the gift?

a) D/(M-3)
b) MD/3
c) M/(D-3)
d) 3D/(M2-3M)

ANS: d

Q3. In a class composed of x girls and y boys, what part of the class is composed of girls?

a) y/(x + y)
b) x/xy
c) x/(x + y)
d) y/xy

ANS: c

Q4. If 13 = 13w/ (1-w), then (2w)2 =

a) 1/4
b) 1/2
c) 1
d) 2

TECHNICAL:

Q5. Give the output for the following program.

#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %d ",x,y);
}

Q6. What is the output of the program given below?

#include
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d ",i);
}

Q7. What is the final content of the following program?

int a[20],i
for(i=0;i<20;i++)
{
a[i]=i;
}
for(i=0;i<20;i++)
{
a[i]=a[20-i]
}

Q8. What is the output of the following program?

#include
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}

Q9. How can you include a library code written in C++ in a source code written in C?

ANS: Some cross-linked platform (compiler) is required for this

Q10. Consider the following program:

int i=0,j=50
while (i {
if()
{

i++
}
elseif ()
{
j--
}
else()
{
j--
}
}

How many times the body of the loops going to be executed?

a) Unknown
b) 25
c) 50
d) depends on the given condition.

FreshersLive - No.1 Job site in India. Here you can find latest 2018 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.

 ✖