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

 

Sun Microsystem Placement Paper -: Technical Questions With Answers


Advertisements
Advertisements




Sun Microsystem Previous Years Solved Sample Placement Papers

  • 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 the equation from right to left. Apply the infix-postfix algorithm. The equation inside the bracket evaluates to CB* and outside the bracket evaluates to A+ therefore getting CB*A+. Reversing this and we get +A*BC.

  • 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 the equation from right to left. Apply the infix-postfix algorithm. The equation inside the brackets evaluate to DC* and BA* respectively giving us DC*BA*+ in the end. Reversing this we get the +*AB*CD.

  • 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 the equation from right to left. Apply the infix-prefix algorithm. The preference order in ascending order are as follows +*^. Operators are pushed into the stack and popped if its preference is greater than the one which is getting pushed. In the end all operators are popped. The equation evaluates to DC^B*A+. Reversing this we get our following answer.

  • Out of the following operators (^, *, +, &, $), the one having highest priority is _________

    a) +

    b) $

    c) ^

    d) &

    Answer: c

    Explanation: According to the algorithm (infix-prefix), it follows that the exponentiation will have the highest priority.

  • Out of the following operators (|, *, +, &, $), the one having lowest priority is ________

    a) +

    b) $

    c) |

    d) &

    Answer: c

    Explanation: According to the algorithm (infix-prefix), it follows that the logical OR will have the lowest priority.

  • 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 the equation from right to left. Apply the infix-prefix algorithm. Here we have to remember that the exponentiation has order of associativity from right to left. Therefore the stack goes on pushing ^. Therefore resulting in ^^^ABCD.

  • What would be the Prefix notation for the given equation? a+b-c/d&e|f

    a) |&-+ab/cdef

    b) &|-+ab/cdef

    c) |&-ab+/cdef

    d) |&-+/abcdef

    Answer: a

    Explanation: Reverse the equation or scan the equation from right to left. Apply the infix-prefix algorithm. The preference order in ascending order are as follows |&+*/.

  • What would be the Prefix notation for the given equation? (a+(b/c)*(d^e)-f)

    a) -+a*/^bcdef

    b) -+a*/bc^def

    c) -+a*b/c^def

    d) -a+*/bc^def

    Answer: b

    Explanation: Reverse the equation or scan the equation from right to left. Apply the infix-prefix algorithm. The preference order in ascending order are as follows +*/^. Brackets have the highest priority. The equations inside the brackets are solved first.

  • A fruit basket contains more apples than lemons. There are more lemons in the basket than there are oranges. The basket contains more apples than oranges. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: a. true.
  • The Shop and Save Grocery is south of Greenwood Pharmacy. Rebecca’s house is northeast of Greenwood Pharmacy. Rebecca’s house is west of the Shop and Save Grocery. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: b. false.
  • Joe is younger than Kathy. Mark was born after Joe. Kathy is older than Mark. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: a. true.
  • All spotted Gangles have long tails. Short-haired Gangles always have short tails. Long-tailed Gangles never have short hair. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: a. true.
  • Battery X lasts longer than Battery Y. Battery Y doesn’t last as long as Battery Z. Battery Z lasts longer than Battery X. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: c. uncertain.
  • Martina is sitting in the desk behind Jerome. Jerome is sitting in the desk behind Bryant. Bryant is sitting in the desk behind Martina. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: b. false.
  • Middletown is north of Centerville. Centerville is east of Penfield. Penfield is northwest of Middletown. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: c. uncertain.
  • Taking the train across town is quicker than taking the bus. Taking the bus across town is slower than driving a car. Taking the train across town is quicker than driving a car. If the first two statements are true, the third statement is

    a. true.

    b. false.

    c. uncertain.

    Answer: c. uncertain.



  •  


    .

    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