Tata technologies Technical Paper

Posted on :23-04-2016
Q1. Why is the synchronize used?

a) to initialize multiple objects
b) to lock an object 
c) option 3 
d) option 4


ANS: b (probably)


Q2. There is an employer table with key fields as employer no.data in every n th row are needed for a simple following queries will get required results. 

a) select A employe no. from employe A , where exists from employe B where A employe no. >= B employe having (count(*) mod n)=0 
b) select employe no. from employe A, employe B where A employe no.>=B employ no.grouply employe no.having(count(*) mod n=0 ) 
c) both a& b 
d) none of the above 


Q3. If 85% of the population of an ant colony is red, and of these 45% are females, then what % of the total ant population are male red ants?

a. 46.75
b. 40 
c. 33.66 
d. 66.66

ANS: a


Q4. If A and B can do a piece of work in 10 days and A alone can do it in 15 days, how long will B take to do it?


a. 25 
b. 20 
c. 15 
d. 30


Q5. If B occurs which must occur 

(a) D 
(b) D and G 
(c) G and H 
(d) F and G 
(e) J 


Q6. Q is not equal to zero and k = (Q x n - s)/2 find n? 

(a) (2 x k + s)/Q 
(b) (2 x s x k)/Q 
(c) (2 x k - s)/Q 
(d) (2 x k + s x Q)/Q (e) (k + s)/Q 


Q7.  If J occurs which must have occured 

(a) E 
(b) either B or C 
(c) both E & F 
(d) B 
(e) both B & C 

ANS: (b)


Q8.  what is the cost price of an article sold at rs.199 after two successive discount of 10% and 15%?

a.260
b.200 
c.234 
d.220

ANS: a


Q9.  Type duplicates of a row in a table customer with non uniform key field customer no. you can see 

a) delete from customer where customer no. exists ( select distinct customer no. from customer having count ) 
b) delete customer a where customer no. in b row id 
c) delete customer a where customer no. in ( select customer no. from customer a, customer b ) 
d) none of the above 


Q10. Number  of  zeros  between  0  and  10000


Q11. In signed magnitude notation what is the minimum value that can be represented with 8 bits 

a) -128 
b) -255 
c) -127 
d) 0 


Q12. Find the odd one out: 8 125 512 729?


Q13. Write a Program find and replace a character in a string.


Q14. Write a Program read a line from file from location N1 to N2 using command line arguments Eg: exe 10 20 a.c 


Q15. What is not true about the following statements about java.

a) it is compiled using java c compiler
b) the compiled files have .class extension.
c) such files cannot be transferred from one comp to another.
d) they use the java interpreter

ANS: c


Q16. Write a Program dynamically initialize a 2 dimensional array 

Eg: 5x20,accept strings and check for vowels and display the no. finally free the space allocated .


Q17. Write a Program find the largest of 4 no using macros.


Q18. Write a Program function to perform the subtraction of two .

Eg: char N1="123",N2="478", N3=-355(N1-N2). 


Q19. The layer in the OST model handles terminal emulation 

a) session 
b) application 
c) presentation 
d) transport 

ANS: b application 





Tata technologies Related Companies


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