.
  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 » FLEXTRONICS Placement Papers » FLEXTRONICS Previous Year Placement Paper

 

FLEXTRONICS Placement Paper - Object oriented Programming Questions


Advertisements
Advertisements




FLEXTRONICS Previous Years Solved Sample Placement Papers

  1. What does your class can hold?

    (A) Data

    (B) Functions

    (C) Both A & B

    (D) None of the mentioned

    Ans: (C)

    EXPLANATION: The classes in C++ are used to manipulate both data and functions.

  2. Which is used to define the member of a class externally?

    (A) :

    (B) ::

    (C) #

    (D) None of the mentioned

    Ans: (B)
  3. Which other keywords are also used to declare the class other than class?

    (A) struct

    (B) union

    (C) object

    (D) Both A & B

    Ans: (D)
  4. What is the output of the following program?

    #include <iostream>
    using namespace std;
    class rect
    {
    int x, y;
    public:
    void val (int, int);
    int area ()
    {
    return (x * y);
    }
    };
    void rect::val (int a, int b)
    {
    x = a;
    y = b;
    }
    int main ()
    {
    rect rect;
    rect.val (3, 4);
    cout << "rect area: " << rect.area();
    return 0;
    }
        

    (A) rect area: 1

    (B) rect area: 12

    (C) rect area: 24

    (D) None of the mentioned

    Ans: (B)
  5. Which of the following is a valid class declaration?

    (A) class A { int x; };

    (B) class B { }

    (C) public class A { }

    (D) object A { int x; };

    Ans: (A)
  6. The fields in the class in C++ program are by default

    (A) Protected

    (B) Private

    (C) Public

    (D) None of the mentioned

    Ans: (B)
  7. Constructors are used to

    (A) Initialize the objects

    (B) Construct the data members

    (C) Both A & B

    (D) None of the mentioned

    Ans: (A)
  8. When struct is used instead of the keyword class, what will happen in the program?

    (A) Access is public by default

    (B) Access is private by default

    (C) Access is protected by default

    (D) None of the mentioned

    Ans: (A)




 


.

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