Sasken Sample Programming Placement Paper Level1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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: Sasken 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. By default a real number is treated as a A double 4. Is the following statement a declaration or definition? extern int i; A Declaration 5. When we mention the prototype of a function? A Declaring 6. What will you do to treat the constant 3.14 as a long double? A use 3.14L

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. ______range is a valid long double (Turbo C in 16 bit DOS OS) ? A 3.4E-4932 to 1.1E+4932 8. We want to round off x, a float, to an int value, The correct way to do is A y = (int)(x + 0.5) 9. The binary equivalent of 5.375 is A 101.011 10. What will you do to treat the constant 3.14 as a float? A use 3.14f 11. ______obtains the remainder on dividing 5.5 by 1.3 ? A rem = fmod(5.5, 1.3) 12. What is (void*)0? A Representation of NULL pointer 13. In which header file is the NULL macro defined? A stdio.h and stddef.h
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. If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable? A -> 15. What would be the equivalent pointer expression for referring the array element a[i][j][k][l] A *(*(*(*(a+i)+j)+k)+l) 16. A pointer is A A variable that stores address of other variable 17. What is the similarity between a structure, union and enumeration? A All of them let you define new data types 18. Which bitwise operator is suitable for turning off a particular bit in a number? A & operator 19. Which bitwise operator is suitable for checking whether a particular bit is on or off? A & operator 20. Which header file should be included to use functions like malloc() and calloc()?

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 stdlib.h 21. Specify the 2 library functions to dynamically allocate memory? A malloc() and calloc() 22. Input/output function prototypes and macros are defined in which header file? A stdio.h 23. What is stderr ? A standard error streams 24. What is the purpose of fflush() function. A flushes all streams and specified streams. 25. In mathematics and computer programming, which is the correct order of mathematical operators ? A Division, Multiplication, Addition, Subtraction 26. The keyword used to transfer control from a function back to the calling function is A return 27. What does the following declaration mean? int (*ptr)[10];
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 ptr is a pointer to an array of 10 integers 28. In a file contains the line "I am a boy\r\n" then on reading this line into the array str using fgets(). What will str contain? A "I am a boy\n\0" 29. _______type of class allows only one object of it to be created? A Singleton class 30. _______is not the member of class? A Friend function 31. _________concepts means wrapping up of data and functions together? A Encapsulation 32. How "Late binding" is implemented in C++? A Using Virtual tables 33. ______are available only in the class hierarchy chain? A Protected data members 34. ________access specifier is used as a default in a class definition?
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 private 35. How can we make a class abstract? A By making at least one member function as pure virtual function. 36. What does a class hierarchy depict? A It describes "kind of" relationships. 37. Where the default value of parameter have to be specified? A Function prototype 38. _______is NOT a namespace in the .NET Framework Class Library? A System.Process 39. Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor. A True 40. You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective? A protected

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

You might also like