0% found this document useful (0 votes)
1K views7 pages

KPIT Sample Programming Placement Paper Level1

The document provides information about resources for placement preparation including a website for placement papers and interview tips, instructions for subscribing to email updates, and a Facebook page for live updates. It also provides the answers to multiple choice questions related to programming concepts in C++, OOPs, and .NET.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views7 pages

KPIT Sample Programming Placement Paper Level1

The document provides information about resources for placement preparation including a website for placement papers and interview tips, instructions for subscribing to email updates, and a Facebook page for live updates. It also provides the answers to multiple choice questions related to programming concepts in C++, OOPs, and .NET.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 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: KPIT Sample Programming Placement Paper Level1 (Bolded option is your answer) 1. __________symbol allowed in a variable name? A _ (underscore) 2. When we mention the prototype of a function? A Declaring 3. __________range is a valid long double (Turbo C in 16 bit DOS OS) ? A 3.4E-4932 to 1.1E+4932 4. A float occupies 4 bytes. If the hexadecimal equivalent of these 4 bytes are A, B, C and D, then when this float is stored in memory_________bytes gets stored? A Depends on big endian or little endian architecture 5. _________bytes are occupied by near, far and huge pointers (DOS)? A near=2 far=4 huge=4 6. What would be the equivalent pointer expression for referring the array element a[i][j][k][l] A *(*(*(*(a+i)+j)+k)+l)

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. How will you free the allocated memory ? A free(var-name); 8. Which bitwise operator is suitable for turning off a particular bit in a number? A & operator 9. Which header file should be included to use functions like malloc() and calloc()? A stdlib.h 10. Which standard library function will you use to find the last occurance of a character in a string in C? A strrchr() 11. What will the function randomize() do in Turbo C under DOS? A returns a random number generator with a random value based on time. 12. _________declaration mean? int (*ptr)[10]; A ptr is a pointer to an array of 10 integers 13. ___________is the correct order if calling functions in the below code? a = f1(23, 14) * f2(12/4) + f3();
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 Order may vary from compiler to compiler 14. ___________function is used to find the first occurrence of a given string in another string? A strstr() 15. The maximum combined length of the command-line arguments including the spaces between adjacent arguments is A It may vary from one operating system to another 16. __________is not a type of constructor? A Friend constructor 17. cout is a/an __________ . A object 18. ___________concepts means waiting until runtime to determine which function to call? A Dynamic binding 19. __________are available only in the class hierarchy chain? A Protected data members 20. ____________if a class is not having any 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

A It cannot have a destructor. and It cannot have a constructor. 21. _________is correct? A Object is an instance of a class. 22. ___________a class abstract? A By making at least one member function as pure virtual function. 23. Constructor is executed when _____. A an object is created 24. _________can be overloaded? A Functions and Operators 25. ________is correct? A A function can be overloaded more than once. 26. ___________is correct? A All the parameters of a function can be default parameters. 27. _______is incorrect?
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 The compiler always provides a zero argument constructor. and It is necessary that a constructor in a class should always be public. 28. Constructors __________ to allow different approaches of object construction. A can be overloaded 29. Destructor calls are made in which order of the corresponding constructor calls? A Reverse order 30. _________is correct whenever an object goes out of scope? A The default destructor of the object is called. 31. _________is correct? A A reference is a constant pointer. 32. Code that targets the Common Language Runtime is known as A Native Code 33. _________is the correct output for the C#.NET code snippet given below? Console.WriteLine(13 / 2 + " " + 13 % 2); A61

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 it possible to invoke Garbage Collector explicitly? A Yes 35. If s1 and s2 are references to two strings__________is the correct way to compare the two references? A s1.Equals(s2) 36. An Employee class has a property called age and emp is reference to a Employee object and we want the statement Console.WriteLine(emp.age) to fail.___________options will ensure this functionality? A Declare age property with only set accessor. 37. ____________will declare an array and initialize it with five numbers? A int [] a = {23,22,21,20,19}; 38. What is the prototype of the default constructor? A public Test( ) 39. What will be the output of the program? class BitShift { public static void main(String [] args) { int x = 0x80000000; System.out.print(x + " and ");
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

x = x >>> 31; System.out.println(x); } } A -2147483648 and 1 40. Which is valid declaration of a float? A float f = 1F;

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy