Zensar Technologies Technical And Aptitude Paper June 2011

Posted on :29-02-2016
Q1. There are 6 red shoes & 4 green shoes . If two of red shoes are drawn what is the probability of getting red shoes

ANS: 6c2/10c2

Q2. To 15 lts of water containing 20% alcohol, we add 5 lts of pure water. What is % alcohol.

ANS: 15%

Q3. A worker is paid Rs.20/- for a full days work. He works 1,1/3,2/3,1/8.3/4 days in a week. What is the total amount paid for that worker ?

ANS: 57.50

Q4. 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)

Q5. 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)

Q6. What is meant by int (* xyz)[13]

Q7. What is true from

a. base call reference is compatible with child class
b. child class reference is compatible with base class
c. no reference to class

Q8. class b class a
{ friend class b }
then what is true

a. a can access all protected and public members in b
b. b can access all protected and public members in a
c. a can access all members of a
d. b can access all members of b

Q9 : What is the output

#include
main()
{ int n=0; int i; i=2; switch(1)
{ case 0:do{ case 1:n++; case 2:n++; } while(--i>0); } printf("n=%d",n); }

a. compile error
b. 4
c. 1
d. 0

Q10. The cost of an item is Rs 12.60. If the profit is 10% over selling price what is the selling price ?

ANS: Rs 13.86/-

Q11. if(fp = fopen("dfas","r") == NULL), what is the value of fp

a. NULL
b. 0
c. 1
d. 0 or 1

Q12. What is the output?

#define sqr(x) x*x, what is value of j if j = 2 * sqr(3 + 4)

Q13. How will it print FILENAME(back)

#define FILENAME(extension) test_##extension

a. test_back
b. test_#back
c. test_##back
d. ??

Q14. What will be printf("%s", p);

char *p = "hello world"
p[0] = H, what will be printf("%s", p);

a. Hello world
b. hello world
c. H
d. compile error

Q15. int fun(), how do u define pointer to this function ?

Q16. Complexity of merge sort .?

Q17. Which sorting also will use to sort {1,2,3,4,5} ?

Q18. Which cpu register holds the address of next instruction?

Q19.

Main(){
Printf(?%c%c%c%c?,p[i],i[p],(*p+1),*(p+1));
}

Q20. Select * from dual ; output..??

FreshersLive - No.1 Job site in India. Here you can find latest 2020 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.

 ✖