Anda di halaman 1dari 6

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: SISL Sample Programming Placement Paper Level1 (Bolded option is your answer) 1. What are the types of linkages? A External, Internal and None 2. How would you round off a value from 1.66 to 2.0? A ceil(1.66) 3. When we mention the prototype of a function? A Declaring 4. What will you do to treat the constant 3.14 as a long double? A use 3.14L 5. We want to round off x, a float, to an int value, The correct way to do is A y = (int)(x + 0.5) 6. __________obtains the remainder on dividing 5.5 by 1.3 ? A rem = fmod(5.5, 1.3)

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. In which header file is the NULL macro defined? A stdio.h and stddef.h 8. A pointer is A A variable that stores address of other variable 9. How will you free the allocated memory ? A free(var-name); 10. Which bitwise operator is suitable for turning on a particular bit in a number? A | operator 11. Specify the 2 library functions to dynamically allocate memory? A malloc() and calloc() 12. Which standard library function will you use to find the last occurance of a character in a string in C? A strrchr() 13. Can you use the fprintf() to display the output on the screen? A Yes
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

14. _________cannot be checked in a switch-case statement? A Float 15. The keyword used to transfer control from a function back to the calling function is A return 16. In C, if you pass an array as an argument to a function, what actually gets passed? A Base address of the array 17. _________is the correct usage of conditional operators used in C? A max = a>b ? a>c?a:c:b>c?b:c 18. The library function used to find the last occurrence of a character in a string is A strrchr() 19. __________ is not a type of constructor? A Friend constructor 20. __________statement is correct? A A constructor is called at the time of declaration of an object.
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

21. _____________statement is correct? A C++ allows static type checking. and C++ allows dynamic type checking. 22. __________statements regarding inline functions is correct? A It speeds up execution. and It slows down execution. 23. ____________statements is correct in C++? A Structures can have functions as members. 24. ___________access specifier is used as a default in a class definition? A private 25. _____________statement is correct regarding destructor of base class? A Destructor of base class should always be virtual. 26. ___________type of data member can be shared by all instances of its class? A Static 27. __________can be overloaded?

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 Functions and Operators 28. Where the default value of parameter have to be specified? A Function prototype 29. ___________statement is correct? A Overloaded functions can accept same number of arguments. 30. Destructor has the same name as the constructor and it is preceded by ______ . A~ 31. If the copy constructor receives its arguments by value, the copy constructor would A call itself recursively 32. A destructor takes __________ arguments. A no 33. ____________statement is correct? A A reference is a constant pointer. 34. ___________statements is correct about constructors?
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 If we do not provide a constructor, then the compiler provides a zero-argument constructor. 35. __________statements is correct about constructors in C#.NET? A A constructor can be a static constructor. 36. __________is NOT a Bitwise operator in C#.NET? A << 37. ____________statements are correct about static functions? A Static functions are invoked using class. 38. Which will legally declare, construct, and initialize an array? A int myList [] = {4, 3, 7}; 39. Which cannot directly cause a thread to stop executing? A Calling notify() method on an object. 40. What allows the programmer to destroy an object x? A Only the garbage collection system can destroy an object.

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

Anda mungkin juga menyukai