Zensar Technologies Written Test April 2011
Posted on :29-02-2016
Q1. Which character function can be used to return a specified portion of a character string?
A. INSTR
B. SUBSTRING
C. SUBSTR
D. POS
Q2. Which command will delete all data from a table and will not write to the rollback segment?
A. DROP
B. DELETE
C. CASCADE
D. TRUNCATE
Q3. Which of the following can be a valid column name?
A. Column
B. 1966_Invoices
C. Catch_#22
D. #Invoices
Q4. If 8 men 8 hrs per day works for 8 days get 45/- then how many men required if the work is 5 hrs per day for 10 days they get 60/-?
Q5. A person sold an item at a profit of 12% .If he sold it at a loss of 12% then he would get Rs.6/- less. What is the cost price?
Q6. (1 1/2 /((3/4-2/5 )/(2/3+4/5))) * ((2 3/4/((4/3-2/5 )/(5/3+6/5))) (Numbers different)
Q7. If a sum of money compound annually amounts of thrice itself in 3 years. In how many years will it become 9 times itself.
(A) 6
(B) 8
(C) 10
(D) 12
Q8. Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train observes the 15 seconds elapse before the faster train completely passes by him. What is the length of faster train?
(A) 100 m
(B) 75 m
(C) 120 m
(D) 50 m
Q9. How many mashes are there in 1 square meter of wire gauge if each mesh is 8 mm long and 5 mm wide?
(A) 2500
(B) 25000
(C) 250
(D) 250000
Q10. x% of y is y% of ?
(A) x/y
(B) 2y
(C) x
(D) cant be determined
Q11.
main(){
int i,j=2;
if(i%j !=0)
j=5;
printf(?%d?,j);
}
For what values if i the output will be 5 :
1) when i is even
2) odd
3) prime
4) for all
Q12. Complexity of merge sort ?
Q13. Which sorting also will use to sort {1,2,3,4,5} ?
Q14. Which cpu register holds the address of next instruction?
Q15.
Main(){
Char *p[]=?pradeep mani?;
Printf(?%c%c%c%c?,p[i],i[p],(*p+1),*(p+1));
Q16. Which is the fastest : FTP ,TELNET ,TCP, etc.
Q17. output:
main(){
int x=20 ,y=35;
x= x++ + y++;
y = ++x + ++y;
printf(?%d %d?,x,y);
}
Q18. What is the output?
char *p[]=?rachit and devender?;
printf(?%C?,++(p[4]));
Q19. What is the output?
const char *p[]=?abhishek and Ankur?;
char k=?a?;
p[1]=k;
printf(?%s?,p);
Q20. What is the output?
main(){
extern int i;
i=5;
printf(?%d?,i);
}