1.standard error stream stderr,
ans: are by defaultbuffered
2.
Named pipes are ansd:strictly unidirectional, even on systems where
anonymous pipes are bidirectional ( full-duplex).
3.
proto type of printf
ans: int fprintf(FILE *stream, const char *format, ...)
4.
user level switcjing is faster than the kernel level s/w
ans:since a trap to kernel is not required(user level thread is not
known by the os)
5.
automatic variables are stored in
6.
dynamic meory is it allocated from heap/satck...?
7.
how to find the size of file in unix
Technical
8.
How many times is the for loop executed
for(i=0;i<10;i++);
a. 1
b. 10
c. compiler error
d. not executed
9.
How many times is the for loop executed
for(i=0;i<10;i++);
a. 1
b. 10
c. compiler error
d. not executed
10.
for selection, we use
a .if..else
b .for loop
c. while loop
d.....
11.
Which of the following is executed 1rst?
i .&& ii.|| iii.!
a. i
b. ii
c. iii
d. all are equal
12.
To find o/p of a recursive pgm, function where in parameters are
passed by value,reference......function used in
ansi computers to clear the screen is:
a. clrsc
b. clear
c. clescr
d. none of the above
Part 2
1.
In a city, 80% speaks english, 70% speaks hindi and 10% do not speak
both. It was found that 162 people talk both. How many are there in
the city?
2.
Find the missing number: 0 6 24 X 120
3.
There are 26 pearls in a bag. One among them is less in weight. You
have been given 2 pan weight machine. In how many trials, you will be
able to find the defected one?
4.
There are 30 socks in a bag. 30% is in blue color. What is the
probability to take two blue socks?
5.
In a party, every man has his dog with him. There are 22 heads and 72
legs all together. How many men & dogs are there?
6.
Find the missing number: 0, 0.577, 1, 1.732, ?
a. 0.656 b.2 c.2.743 d.none
7.
Two different types of tea are mixed, at 6 Kg of type 1 and 4 Kg of
type 2. One Kg of type 1 is Rs. 6 and that of type 2 is Rs. 7. The
seller get 10% profit, by this action. Find at what price, he 'd have
sold the mixture/Kg?
8.
There are 10 people in a party. "How many other people, you met?" is
the question asked to everyone. First person says 1, Second says 2,
Third says 3..........ninth says 9. Now what tenth person 'd have
answered?
9.
.The Distance between A to B is 1000 miles... A person has 3000 Apples
..He has to deliver to the market in B , he is carring Maximum of 1000
apples by the camel.. For every mile the camel eats a Apple ...Like
that then u have to find out the number of apples that he delivered to
the market?
10.
In the old era humans used --------- to prevent themself from the
attack of dianosur?(Easy one)
11.
Mr x & MRS x and Mr.y and MRS y are playing a chess ..like that then
the chance of winning? ans (MR.y)
C Programming
12.
void checkA()
{
int a=2;
if(a=3!=3)
printf(" 3 ");
else
printf(" 2 ");
return;
}
ans. 2
13.
main()
{
char P[]={"Hello World"};
printf(" %s \n",p);
main();
} ans (abnormal program termination)
14.
# define D 10
# define Y D+10
# define D 30
main(int argc, char *arc[])
{
printf(" %d \n",D);
}
ans.30
15.
# define TRUE 0
main()
{
int i=0;
while(TRUE)
{
printf(" %d \n",i);
i++;
}
printf(" %d \n",i);
i++;
}