Вы находитесь на странице: 1из 7

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.

com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

TITLE: i2 Technology Sample Programming Placement Paper Level1 (Bolded option is your answer) 1. How would you round off a value from 1.66 to 2.0? A ceil(1.66) 2. By default a real number is treated as a A double 3. ___________range is a valid long double (Turbo C in 16 bit DOS OS) ? A 3.4E-4932 to 1.1E+4932 4. What will you do to treat the constant 3.14 as a float? A use 3.14f 5. How many bytes are occupied by near, far and huge pointers (DOS)? A near=2 far=4 huge=4 6. How will you free the allocated memory ? A free(var-name);

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

7. Which bitwise operator is suitable for turning off a particular bit in a number? A & operator 8. What function should be used to free the memory allocated by calloc() ? A free(); 9. What is stderr ? A standard error streams 10. ___________function randomize() do in Turbo C under DOS? A returns a random number generator with a random value based on time. 11. In mathematics and computer programming, which is the correct order of mathematical operators ? A Division, Multiplication, Addition, Subtraction 12. In C, if you pass an array as an argument to a function, what actually gets passed? A Base address of the array 13. Out of fgets() and gets() which function is safe to use?

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

A fgets() 14. _________correctly shows the hierarchy of arithmetic operations in C? A/*+15. If the two strings are identical, then strcmp() function returns A0 16. ___________function is more appropriate for reading in a multiword string? A gets(); 17. What do the 'c' and 'v' in argv stands for? A 'c' means argument count 'v' means argument vector 18. _________is not a type of constructor? A Friend constructor 19. ___________cannot be used with the keyword virtual? A constructor 20. __________is an invalid visibility label while inheriting a class?
Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

A friend 21. ___________is correct regarding destructor of base class? A Destructor of base class should always be virtual. 22. What does a class hierarchy depict? A It describes "kind of" relationships. 23. ____________will be correct if the function has three arguments passed to it? A The trailing argument will be the default argument. 24. ______________statement is correct? A Overloaded functions can accept same number of arguments. 25. For automatic objects, constructors and destructors are called each time the objects A enter and leave scope 26. ___________are NOT provided by the compiler by default? A Copy Destructor 27. Destructors __________ for automatic objects if the program terminates with a call to function exit or function abort.
Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

A are not called 28. How many times a constructor is called in the life-time of an object? A Only once 29. ____________statement is correct about the references? A A reference must always be initialized. 30. Reference is like a _____. A Pointer 31. In a HashTable Key cannot be null, but Value can be. A True 32. ____________are correct about the Collection Classes available in Framework Class Library? A They use efficient algorithms to manage the collection, thereby improving the performance of the program. 33. In C#.NET if we do not catch the exception thrown at runtime then__________will catch it? A CLR

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

34. _____________is correct? A Object Oriented Programming paradigm gives equal importance to data and the procedures that work on the data. 35. __________is true about an enum used in C#.NET? A An enum variable can be defined inside a class or a namespace. 36. ____________is correct about an enum used in C#.NET? A enum is a value type. 37. Which will legally declare, construct, and initialize an array? A int myList [] = {4, 3, 7}; 38. Which constructs an anonymous inner class instance? A System.out.println(new Runnable() {public void run() { }}); 39. Which interface does java.util.Hashtable implement? A Java.util.Map 40. ___________would compile without error?

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

A int a = Math.abs(-5);

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail http://groups.google.com/group/latestoffcampus/subscribeLive updates on Facebook @ www.facebook.com/LatestOffCampus

Вам также может понравиться