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

 

Mascot Placement Paper -: DATA STRUCTURES Questions And Answers


Advertisements
Advertisements




Mascot Previous Years Solved Sample Placement Papers

  1. Example for infix expression

    a) +ab

    b) a+b

    c) ab+

    d) none

    Answer: b) a+b
  2. The condition top=-1 in stack indicates

    a) stack is full

    b) stack has one element

    c) stack overflow

    d) stack is empty

    Answer: d) stack is empty
  3. Which condition indicates queue is empty

    a) front=null

    b) rear=N

    c) front=rear

    d) both a and b

    Answer: c) front=rear
  4. Which condition indicates only one element in queue

    a) front=null

    b) rear=N

    c) front=rare

    d) rear=N-1

    Answer: c) front=rare
  5. Inheritance occurs when a class adopts all the traits of ________

    A) an object

    B) a parent class

    C) a variable

    D) a function

    Ans: B) a parent class
  6. Encapsulation means____________

    A) Binding of data and code together

    B) To inherit properties of base class

    C) To reduce code length

    D) To define global variable

    Ans: A) Binding of data and code together
  7. To derive new class from existing class is known as ________

    A) Inheritance

    B) Polymorphism

    C) Object

    D) None of these

    Ans: A) Inheritance
  8. Which of the following statement is correct?

    A) Class is an instance of object.

    B) Object is an instance of a class.

    C) Class is an instance of data type.

    D) Object is an instance of data type

    Ans: B) Object is an instance of a class.
  9. An object consists of -----

    A) State

    B) Behavior

    C) Both A and B

    D) None of these

    Ans: C) Both A and B
  10. Which of the following provides a reuse mechanism?

    A) Inheritance

    B) Polymorphism

    C) Abstraction

    D) Encapsulation

    Ans: A) Inheritance
  11. Which of the following is correct about class and structure?

    A) Class can have member functions while structure cannot

    B) Class data members are public by default while that of structure are private

    C) Pointer to structure or classes cannot be declared.

    D) Class data members are private by default while that of structure are public by default.

    Ans: D) Class data members are private by default while that of structure are public by default.
  12. The major goal of inheritance in c++ is:

    A) To facilitate the conversion of data types.

    B) To help modular programming.

    C) To extend the capabilities of a class.

    D) To hide the details of base class.

    Ans: C) To extend the capabilities of a class.
  13. Class is __________

    A) Built in data type

    B) User defined data type

    C) Both a& b

    D) None of these

    Ans: B) User defined data type
  14. What would be the Prefix notation for the given equation? A+(B*C)
    (a) +A*CB
    (b) *B+AC
    (c) +A*BC
    (d) *A+CB
    Answer: (c)
    Explanation: Reverse the equation or scan from right to left. Apply the infix-to-postfix algorithm. Inside the brackets, the result is CB*, and outside the brackets, it is A+. Reversing gives +A*BC.

  15. What would be the Prefix notation for the given equation? (A*B)+(C*D)
    (a) +*AB*CD
    (b) *+AB*CD
    (c) **AB+CD
    (d) +*BA*CD
    Answer: (a)
    Explanation: Reverse the equation or scan from right to left. Apply the infix-to-postfix algorithm. Brackets evaluate to DC* and BA*, resulting in +*AB*CD after reversal.

  16. What would be the Prefix notation for the given equation? A+B*C^D
    (a) +A*B^CD
    (b) +A^B*CD
    (c) *A+B^CD
    (d) ^A*B+CD
    Answer: (a)
    Explanation: Reverse the equation or scan from right to left. Apply the infix-to-prefix algorithm. The order of precedence is +* and ^. The reversed expression evaluates to +A*B^CD.

  17. Out of the following operators (^, *, +, &, $), the one having the highest priority is?
    (a) +
    (b) $
    (c) ^
    (d) &
    Answer: (c)
    Explanation: According to the infix-to-prefix algorithm, exponentiation (^) has the highest priority among the given operators.

  18. Out of the following operators (|, *, +, &, $), the one having the lowest priority is?
    (a) +
    (b) $
    (c) |
    (d) &
    Answer: (c)
    Explanation: Logical OR (|) has the lowest precedence among the given operators, as defined in the infix-to-prefix algorithm.

  19. What would be the Prefix notation for the given equation? A^B^C^D
    (a) ^^^ABCD
    (b) ^A^B^CD
    (c) ABCD^^^
    (d) AB^C^D
    Answer: (a)
    Explanation: Reverse the equation or scan from right to left. The exponentiation operator has right-to-left associativity, so all operators are pushed onto the stack, resulting in ^^^ABCD.




 


.

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