.
  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. Where is the object created?

    (A) Class

    (B) Constructor

    (C) Destructor

    (D) Attributes

    Ans: (B)
  2. How to access the object in the class?

    (A) Scope resolution operator

    (B) Ternary operator

    (C) Direct member access operator

    (D) None of the mentioned

    Ans: (C)
  3. Which of these following members are not accessed by using direct member access operator?

    (A) Public

    (B) Private

    (C) Protected

    (D) Both b & c

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

    #include <iostream>
    using namespace std;
    class Box {
    public:
        double length, breadth, height;
    };
    int main() {
        Box Box1;
        double volume;
        Box1.height = 5;
        Box1.length = 6;
        Box1.breadth = 7.1;
        volume = Box1.height * Box1.length * Box1.breadth;
        cout << "Volume of Box1 : " << volume << endl;
        return 0;
    }
                

    (A) 210

    (B) 213

    (C) 215

    (D) 217

    Ans: (B)
  5. Pick out the other definition of objects.

    (A) Member of the class

    (B) Associate of the class

    (C) Attribute of the class

    (D) Instance of the class

    Ans: (D)
  6. How many objects can present in a single class?

    (A) 1

    (B) 2

    (C) 3

    (D) As many as possible

    Ans: (D)
  7. What is the output of this program?

    #include <iostream>
    using namespace std;
    class sample {
    private:
        int var;
    public:
        void input() { cout << var; }
        void output() {
            cout << "Variable entered is ";
            cout << var << "\n";
        }
    };
    int main() {
        sample object;
        object.input();
        object.output();
        object.var();
        return 0;
    }
                

    (A) Enter an integer 5 Variable entered is 5

    (B) Runtime error

    (C) Error

    (D) None of the mentioned

    Ans: (C)
  8. Which special character is used to mark the end of a class?

    (A) ;

    (B) :

    (C) #

    (D) $

    Ans: (A)
  9. What is the output of this program?

    #include <iostream>
    using namespace std;
    class number {
        int i;
    public:
        int geti();
        void puti(int j);
    };
    int number::geti() { return i; }
    void number::puti(int j) { i = j; }
    int main() {
        number s;
        s.puti(10);
        cout << s.geti();
        return 0;
    }
                

    (A) 10

    (B) 11

    (C) 20

    (D) 22

    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