Placement Paper      -12 Sep 2009

 Placement Paper      -12 Sep 2009


  • Posted by  FreshersWorld 
    7 Jan, 2012

    MKCL-2009       (70 Technical Question)

    1.What is the size of an object of an empty class?
    (A) 0 Byte   (B) 2 Byte (C) 1 Byte (D) None
     
    2. When does ?this? pointer of a class get created?
    Ans:(C) When a non-static member function of a class is called.
     
    3.If your method overrides one of its superclass? methods, you can invoke the overridden method of superclass through the use of the keyword.
     
    4.When class A is privately inherited by class B, public and protected members become___________
    5.Which of the following statements is false?
    Ans:We cannot create objects of abstract classes.
     
    6.A software object?s behavior is exposed through (
    A) Fields (B) Methods (C) Data types (D) All of the above
     
    7.Copy constructors are called  when.........
     
    8.In C/C++ int is a
    (A) modern type (B) class type(C) primitive type (D) none of above
     
    9.What is name mangling in C++?
    10.What is a local class in C++?
     
    11.Which header file should you include if you are to develop a function which can accept variable number of arguments?
     
    12.Which properly declares a variable of struct foo?
    A) struct foo; (B) var foo; (C) foo var; (D) int foo;
     
    13.char txt [20] = ?Hello world!\0?;How many bytes are allocated by the definition above?
    Ans:21
     
    14.What does the ?auto? specifier do?
     
    15.A class whose object cannot be created is called
    (A) Sub class (B) Super class (C) Abstract class (D) Interface
     
     
     
     

     

2009-2016 downloadmela.com. All rights reserved.