Professional Documents
Culture Documents
Sonata Software is a leading provider of IT consulting and software services globally. Combining unparalleled experience, domain expertise, best practices and comprehensive capabilities across various industries and business functions, Sonata collaborates with customers to help them effectively address their operational challenges and grow their businesses stronger. Headquartered in Bangalore, India, and with a customer base spread across the globe, you will find Sonata offices in the US, Europe, MiddleEast and the Asia-Pacific. With a broad set of capabilities and a proven Global Delivery Model, Sonata is poised to be the perfect partner of global firms in their outsourcing initiatives. It bring together a unique combination of breadth of capabilities, strong management focus and flexibility in engagement required to make their customer relationships a success. Sonata's services range from IT Consulting to Product Engineering Services, Application Development, Application Management, Managed Testing, Business Intelligence, Infrastructure Management, Packaged Applications and Travel Solutions. Their partnerships with global leaders enable them to work on the latest technologies that Sonata leverage to ensure enhanced business efficiencies for their customers. Their proficiency and commitment, combined with their partners strength and knowledge, makes them a trusted organization to work with. Contact: Sonata Software Ltd. APS Trust Building, Bull Temple Road Bangalore 560019, India Tel : +91-80-3097 1999
Page 1
www.durgajobs.com , continuous job updates for every hour SONATA PAPER ON 19th MAY 2008
Sonata Whole Test Paper and Interview.. on 19th may,2008. APTITUDE ROUND: In this round they have given 50 questions which you have to answer in 12 minutes. In this round the most important thing is speed and accuracy. You should not waste even a second after you are given the paper. Some are multiple choice questions and some are fill in the blank type. You will be given an answer sheet where you have to mark your answer for multiple choice questions and write the answer for fill in the blank type questions. 1. General Mathematics (Like calculating costs of items from given data say 1pen this much 220 pens how much? identifying the odd one, Simple calculations etc.) 2. English : Words often confused(Why because they will give two words and ask us to identify the relation between them whether they are synonyms, antonyms or no relation etc), Idioms and Phrases(They will give a sentence and ask you to choose the meaning of the sentence from the given four options.). 3. Analytical: Syllogism based questions (Simple ones), Coding etc. Bits like Hyderabad: Andhra Pradesh then they will give four options; we have to select one option which is similar in nature as above given statement. Here the relation between the two words is Hyderabad is capital city of Andhra Pradesh. Technical Written( C/C++): 30 bits will be given and you have to answer them in 30 minutes. All are of multiple choice type .Our paper covered bits from different areas in c and c++. I remembered only a few bits which A bit on macros #define cube(x) x*x*x. You have to replace this code and follow the order of execution 1) #define cube(x) x*x*x main() { int a; a=6/cube(6)*6; printf(\n a=%da); }
Page 2
5) A bit on switch case which is little tricky. Please refer Test your c skills by yashavanth Kanethkars text chapter 2: Control Structures. 6) A few bits on pointers .Same refer Test your c skills. 7) Difference between malloc () and calloc() statements. 8) A bit on Command line arguments.Its very easy one.He has a given a command line argument and asked us to give the no.of arguments passed. (Refer test your c skills.) myprog 1 2 main(int argc, char *argv[]) { . .. } How many arguments are passed to main. 1)2 2)3 3)10 4)8. Ans.Opt2. myprogram,1,2 are the three arguments that are passed to main. 9) A bit on scope and life time of variables(Refer Let us C by yashavanth kanetkar text book chapter: Storage classes in c for better understanding ).
Page 3
11)A bit on for loop. You should clearly understand the syntax and semantic of for loop to solve that bit. 12)Which of the following occupies less memory (Consider the platform as Windows.So char-1 byte,int 2 bytes ,float -4 bytes) 1)some structure will be given struct a{int a,b;float c;}; 2)union b{int a,b;float c;} 3)char a[10]; 4)int a,b,c,d; Ans: Opt1 occupies (2*2+4)=8 bytes Option 2 occupies only 4 bytes as Union allocates memory for the largest data type in its members .In this case memory for float c is allocated. Option 3 occupies 10 bytes. Option 4 occupies 8 bytes. Opt 2. Is the answer. 13)A bit on enum. 14)main() { int n=3; If(n=5) printf (Hyderabad); else printf(Vijayawada); //Of course it is not exactly given as Hyderabad and Vijayawada bit something else . which I didnt remember } What is the output of the program? 1) Hyderabad 2) Vijayawada 3) Error .. Ans) Opt 1 Why because we used n=5 here which is a non Zero value i.e. TRUE, Hence if (TRUE) then First statement will be executed. Hence Hyderabad is printed.
Page 4
Page 5
Page 6
EDC: What are semiconductors? What are p-type semiconductors and what are n-type semiconductors? Why Germanium and silicon are used in semiconductors? What is valency of silicon? DLD: Truth tables of NAND, NOR, EX-OR, AND, OR. Gates for NAND, NOR, EX-OR, AND, OR. If possible go through all the basic definitions in Basic Electronics.(capacitor,Inductor,Current,Voltage,Resistance,Transformer,Tr ansistor etc.).
Page 7
Page 8
Page 9
Page 10
www.durgajobs.com , continuous job updates for every hour Sonata Software Aptitude Test
1. Last month of an year (a) January (c) December 2. Select the odd one (a) January (c) Wednesday (b) February (d) November (b) February (d) November
3. Select the antonym of capture from the following (a) attack (c) condemn (b) Release (d) None of the above
4. Find the antonym of autumn (a) Spring (c) Summer (b) Winter (d) None of the above
5. One skirt requires 3.75 yards of cloth. How many skirts you can make from 45 yards? Ans: 12 skirts 6. How can you make a square from two triangles? 7. Is the meaning of Client and Customer, (a) same (c) no relation (b) contradictory
Page 11
13. Select the least from the following. (a) 0.99 (c) 81 (b) 1 (d) 0.333
14. Find the next number in the series 1, 0.5, 0.25, 0.125 Ans: 0.0625 15. One dollar is saved in one month. Then how much dollar is saved in one day? Ans: 1/30 =0.0333$
Page 12
Page 13
27. Statement A: All great men are ridiculous; Statement B: I am ridiculous; Inference: I am a great man; (a) True (c) Not clear 28. Statement: Normal children are active; Inference: All children are active; (a) True (c) Uncertain 29. Next number in the series 1, 1/2, 1/4, 1/8 ? Ans: 1/16 30. In 6 seconds a light flashes once. In one hour how many times I flash? Ans: 601 times 31. At 20% discount, a cycle is sold at a selling price of 2500 Rs. What is the actual price? Ans: Rs. 3125 (b) false (b) False
Page 14
Page 15
www.durgajobs.com , continuous job updates for every hour Sample Technical Paper
1. { int i=1; switch(i) { case 1: printf("\nRadioactive cats have 18 half-lives"); break; case 1*2+4: printf("\nBottle for rent -inquire within"); break; } } Ans. No error. Constant expression like 1*2+4 are acceptable in cases of a switch. 2. Point out the error, if any, in the following program main() { int a=10,b; a>= 5 ? b=100 : b=200; printf("\n%d",b); } Ans. lvalue required in function main(). The second assignment should be Point out error, if any, in the following program
main()
Page 16
Page 17
#define SQR(x) (x*x) main() { int a,b=3; a= SQR(b+2); printf("%d",a); } a) 25 6. reported? 1. #define CIRCUM(R) (3.14*R*R); 2. main() 3. { 4. float r=1.0,c; 5. c= CIRCUM(r); 6. printf("\n%f",c); 7. if(CIRCUM(r))==6.28) 8. printf("\nGobbledygook"); 9. } a) line 1 b) line 5 c) line 6 7. #define FLOATPTR float* FLOATPTR a,b; a) float b) float pointer c) int d) int pointer d) line 7 What is the type of the variable b in the following declaration? b) 11 c) error d) garbage value In which line of the following, an error would be
Page 18
#include<stdio.h> main() { FILE *fp; fp= fopen("trial","r"); } fp points to: a) The first character in the file. b) A structure which contains a "char" pointer which points to the first character in the file. c) The name of the file. d) None of the above. 9. We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind() < TRUE/FALSE> Ans. True 10. If the program (myprog) is run from the command line as myprog 1 2 3 , What would be the output? main(int argc, char *argv[]) { int i; for(i=0;i<argc;i++) printf("%s",argv[i]); } a) 1 2 3 b) C:\MYPROG.EXE 1 2 3 c) MYP d) None of the above
Page 19
as myprog 1 2 3, What would be the output? main(int argc, char *argv[]) { int i,j=0; for(i=0;i<argc;i++) j=j+ atoi(argv[i]); printf("%d",j); } a) 1 2 3 12. b) 6 c) error d) "123" If the following program (myprog) is run from the command line
as myprog monday tuesday wednesday thursday, What would be the output? main(int argc, char *argv[]) { while(--argc >0) printf("%s",*++argv); } a) myprog monday tuesday wednesday thursday wednesday thursday c) myprog tuesday thursday d) None of the above 13. In the following code, is p2 an integer or an integer pointer? typedef int* ptr ptr p1,p2; Ans. Integer pointer 14. Point out the error in the following program main() b) monday tuesday
Page 20
const int x; x=128; printf("%d",x); } Ans. x should have been initialized where it is declared. 15. { int y=128; const int x=y; printf("%d",x); } a) 128 b) Garbage value c) Error d) 0 16. What is the difference between the following declarations? const char *s; char const *s; Ans. No difference 17. { char near * near *ptr1; char near * far *ptr2; char near * huge *ptr3; printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3)); } a) 1 1 1 b) 1 2 4 c) 2 4 4 d) 4 4 4 What would be the output of the following program? main() What would be the output of the following program? main()
Page 21
as myprog friday tuesday sunday, What would be the output? main(int argc, char*argv[]) { printf("%c",**++argv); } a) m 19. b) f c) myprog d) friday If the following program (myprog) is run from the command line
as myprog friday tuesday sunday, What would be the output? main(int argc, char *argv[]) { printf("%c",*++argv[1]); } a) r b) f c) m d) y 20. If the following program (myprog) is run from the command line as myprog friday tuesday sunday, What would be the output? main(int argc, char *argv[]) { while(sizeofargv) printf("%s",argv[--sizeofargv]); } a) myprog friday tuesday sunday b) myprog friday tuesday c) sunday tuesday friday myprog d) sunday tuesday friday
Page 22
main ()
Page 23
Page 24
a) constants as arguments b) constant expression as arguments c) string as an argument d) None of the above 29. { printf("\nSonata Software"); main(); } a) infinite loop 30. b) until the stack overflows c) All of the above d) None of the above On combining the following statements, you will get char*p; How long the following program will run? main()
Page 25
Page 26