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

 

Sonata Placement Paper -: Quantitative and Analytical Reasoning Questions With Answers


Advertisements
Advertisements




Sonata Previous Years Solved Sample Placement Papers

  1. 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.

  2. 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.

  3. When an operand is read, which of the following is done?

    a) It is placed on to the output

    b) It is placed in operator stack

    c) It is ignored

    d) Operator stack is emptied

    Answer: a

    Explanation: While converting an infix expression to a postfix expression, when an operand is read, it is placed on to the output. When an operator is read, it is placed in the operator stack.

  4. What should be done when a left parenthesis ‘(‘ is encountered?

    a) It is ignored

    b) It is placed in the output

    c) It is placed in the operator stack

    d) The contents of the operator stack is emptied

    Answer: c

    Explanation: When a left parenthesis is encountered, it is placed on to the operator stack. When the corresponding right parenthesis is encountered, the stack is popped until the left parenthesis and remove both the parenthesis.

  5. 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.

  6. 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.

  7. 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.




 


.

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