Zensar Technologies Written Exam 2011

Posted on :29-02-2016
Q1. Complexity of merge sort .?

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

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

Q4. What is the output?

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

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

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

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

Q7. What is the output?

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

Q8. #define FILENAME(extension) test_##extension, how will it print FILENAME(back)

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

Q9. What is the output?

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

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

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

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

Q12. 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

Q13. What is true?

class b class a
{ friend class b }

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

Q14 : 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

Q15.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/- 


Q16. 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


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

ANS: 15% 


Q18. 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 

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

Q20. 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




Placement Papers for All Companies




FreshersLive - No.1 Job site in India. Here you can find latest 2023 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...
DMCA.com Protection Status