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

 

SYNTEL Placement Paper -: Data Structure Questions With Answers


Advertisements
Advertisements




SYNTEL Previous Years Solved Sample Placement Papers

  1. The postfix form of the expression (A+ B)*(C*D- E)*F / G is?

    a) AB+ CD*E – FG /**

    b) AB + CD* E – F **G /

    c) AB + CD* E – *F *G /

    d) AB + CDE * – * F *G /

    Answer: c

    Explanation: (((A+ B)*(C*D- E)*F) / G) is converted to postfix expression as (AB+(*(C*D- E)*F )/ G) (AB+CD*E-*F) / G (AB+CD*E-*F * G/). Thus Postfix expression is AB+CD*E-*F*G/

  2. The data structure required to check whether an expression contains a balanced parenthesis is?

    a) Stack

    b) Queue

    c) Array

    d) Tree

    Answer: a

    Explanation: The stack is a simple data structure in which elements are added and removed based on the LIFO principle. Open parenthesis is pushed into the stack and a closed parenthesis pops out elements till the top element of the stack is its corresponding open parenthesis. If the stack is empty, parenthesis is balanced otherwise it is unbalanced.

  3. Which data structure is used for implementing recursion?

    a) Queue

    b) Stack

    c) Array

    d) List

    Answer: b

    Explanation: Stacks are used for the implementation of Recursion.

  4. In a stack, if a user tries to remove an element from an empty stack it is called _________

    a) Underflow

    b) Empty collection

    c) Overflow

    d) Garbage Collection

    Answer: a) Underflow
  5. Pushing an element into stack already having five elements and stack size of 5, then stack becomes ___________

    a) Overflow

    b) Crash

    c) Underflow

    d) User flow

    Answer: a) Overflow
  6. Entries in a stack are “ordered”. What is the meaning of this statement?

    a) A collection of stacks is sortable

    b) Stack entries may be compared with the ‘<‘ operation

    c) The entries are stored in a linked list

    d) There is a Sequential entry that is one by one

    Answer: d) There is a Sequential entry that is one by one
  7. Which of the following is not the application of stack?

    a) A parentheses balancing program

    b) Tracking of local variables at run time

    c) Compiler Syntax Analyzer

    d) Data Transfer between two asynchronous process

    Answer: d) Data Transfer between two asynchronous process
  8. Consider the usual algorithm for determining whether a sequence of parentheses is balanced. The maximum number of parentheses that appear on the stack AT ANY ONE TIME when the algorithm analyzes: (()(())(()))?

    a) 1

    b) 2

    c) 3

    d) 4 or more

    Answer: c) 3
  9. Consider the usual algorithm for determining whether a sequence of parentheses is balanced. Suppose that you run the algorithm on a sequence that contains 2 left parentheses and 3 right parentheses (in some order). The maximum number of parentheses that appear on the stack AT ANY ONE TIME during the computation?

    a) 1

    b) 2

    c) 3

    d) 4 or more

    Answer: b) 2
  10. What is the value of the postfix expression 6 3 2 4 + – *?

    a) 1

    b) 40

    c) 74

    d) -18

    Answer: d) -18
  11. Here is an infix expression: 4 + 3*(6*3-12). Suppose that we are using the usual stack algorithm to convert the expression from infix to postfix notation. The maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression?

    a) 1

    b) 2

    c) 3

    d) 4

    Answer: d) 4




 


.

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