.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » LG Placement Papers » LG Previous Year Placement Paper

 

LG Placement Paper -: Object-oriented programming (OOP) Questions And Answers


Advertisements
Advertisements




LG Previous Years Solved Sample Placement Papers

  1. Which of the following problem causes an exception?

    A: Missing semicolon in statement in main().

    B: A problem in calling function

    C: A syntax error

    D: A run-time error

    Ans: D
  2. Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.

    A: Inheritance

    B: Polymorphism

    C: Abstraction

    D: Encapsulation

    Ans: B
  3. What will be the output of the following program?

    #include <iostream.h>
    void main()
    {
      float x;
      x = (float)9/2;
      cout << x;
    }
        

    A: 4.5

    B: 4.0

    C: 4

    D: 5

    Ans: A
  4. The term __________ means the ability to take many forms.

    A: Inheritance

    B: Polymorphism

    C: Member function

    D: Encapsulation

    Ans: B
  5. Runtime polymorphism is achieved by

    A: Friend function

    B: Virtual function

    C: Operator overloading

    D: Function overloading

    Ans: B
  6. Access to private data

    A: Restricted to methods of the same class

    B: Restricted to methods of other classes

    C: Available to methods of the same class and other classes

    D: Not an issue because the program will not compile

    Ans: B
  7. Additional information sent when an exception is thrown may be placed in

    A: The throw keyword

    B: The function that caused the error

    C: The catch block

    D: An object of the exception class

    Ans: C
  8. What is the output of the following code

    char symbol[3] = {'a', 'b', 'c'};
    for (int index = 0; index < 3; index++)
      cout << symbol[index];
        

    A: a b c

    B: "abc"

    C: abc

    D: 'abc'

    Ans: C
  9. Identify the operator that is NOT used with pointers

    A: ->

    B: &

    C: *

    D: >>

    Ans: D
  10. Overloading a postfix increment operator by means of a member function takes

    A: No argument

    B: One argument

    C: Two arguments

    D: Three arguments

    Ans: A
  11. Which of the following is not the characteristic of constructor?

    A: They should be declared in the public section.

    B: They do not have return type.

    C: They cannot be inherited.

    D: They can be virtual.

    Ans: D
  12. You separated a derived class name from its access specifier with

    A: A colon

    B: Two colons

    C: At least one space

    D: A semi colon

    Ans: B
  13. The members of a class by default are

    A: Public

    B: Protected

    C: Private

    D: Mandatory to specify

    Ans: C
  14. The type of value that a function sends back to the function that calls it is known as its _____

    A: type

    B: return value

    C: reference data

    D: sentinel

    Ans: B
  15. Which of the following are never inherited?

    A: public data members

    B: constructor functions

    C: void functions

    D: overloaded + operators

    Ans: B
  16. A function's purpose is to print customer data. Which of the following is the best name for this function?

    A: pcd(). It's short for "print customer data" and takes few keystrokes

    B: Printcustomerdata(). It states everything the function will do

    C: printCustomer(). It states the function's purpose and is easy to read

    D: lastFunction(). It is the final function called in most programs, and this name identifies the function's timing

    Ans: C
  17. The function strcmp("Jose", "JOSE") will return _____

    A: -1

    B: 0

    C: 1

    D: null

    Ans: C




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy