.
  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 concatenation of two lists can be performed in O(1) time. Which of the following variation of the linked list can be used?

    a) Singly linked list

    b) Doubly linked list

    c) Circular doubly linked list

    d) Array implementation of list

    Answer: c) Circular doubly linked list
  2. Consider the following definition in C programming language:
        struct node {
          int data;
          struct node * next;
        };
        typedef struct node NODE;
        NODE *ptr;
        
    Which of the following C code is used to create a new node?

    a) ptr = (NODE*)malloc(sizeof(NODE));

    b) ptr = (NODE*)malloc(NODE);

    c) ptr = (NODE*)malloc(sizeof(NODE*));

    d) ptr = (NODE)malloc(sizeof(NODE));

    Answer: a) ptr = (NODE*)malloc(sizeof(NODE));
  3. What kind of linked list is best to answer questions like “What is the item at position n?”

    a) Singly linked list

    b) Doubly linked list

    c) Circular linked list

    d) Array implementation of linked list

    Answer: d) Array implementation of linked list
  4. Linked lists are not suitable for the implementation of ___________

    a) Insertion sort

    b) Radix sort

    c) Polynomial manipulation

    d) Binary search

    Answer: d) Binary search
  5. Linked list is considered as an example of ___________ type of memory allocation.

    a) Dynamic

    b) Static

    c) Compile time

    d) Heap

    Answer: a) Dynamic
  6. In Linked List implementation, a node carries information regarding ___________

    a) Data

    b) Link

    c) Data and Link

    d) Node

    Answer: c) Data and Link
  7. Linked list data structure offers considerable saving in _____________

    a) Computational Time

    b) Space Utilization

    c) Space Utilization and Computational Time

    d) Speed Utilization

    Answer: c) Space Utilization and Computational Time
  8. What data structure would you mostly likely see in non recursive implementation of a recursive algorithm?

    a) Linked List

    b) Stack

    c) Queue

    d) Tree

    Answer: b

    Explanation: In recursive algorithms, the order in which the recursive process comes back is the reverse of the order in which it goes forward during execution. The compiler uses the stack data structure to implement recursion. In the forwarding phase, the values of local variables, parameters and the return address are pushed into the stack at each recursion level. In the backing-out phase, the stacked address is popped and used to execute the rest of the code.

  9. The process of accessing data stored in a serial access memory is similar to manipulating data on a ________

    a) Heap

    b) Binary Tree

    c) Array

    d) Stack

    Answer: d

    Explanation: In serial access memory data records are stored one after the other in which they are created and are accessed sequentially. In stack data structure, elements are accessed sequentially. Stack data structure resembles the serial access memory.

  10. The postfix form of A*B+C/D is?

    a) *AB/CD+

    b) AB*CD/+

    c) A*BC+/D

    d) ABCD+/*

    Answer: b

    Explanation: Infix expression is (A*B)+(C/D) AB*+(C/D) AB*CD/+. Thus postfix expression is AB*CD/+.

  11. Which data structure is needed to convert infix notation to postfix notation?

    a) Branch

    b) Tree

    c) Queue

    d) Stack

    Answer: d

    Explanation: The Stack data structure is used to convert infix expression to postfix expression. The purpose of stack is to reverse the order of the operators in the expression. It also serves as a storage structure, as no operator can be printed until both of its operands have appeared.

  12. The prefix form of A-B/ (C * D ^ E) is?

    a) -/*^ACBDE

    b) -ABCD*^DE

    c) -A/B*C^DE

    d) -A/BC*^DE

    Answer: c

    Explanation: Infix Expression is (A-B)/(C*D^E) (-A/B)(C*D^E) -A/B*C^DE. Thus prefix expression is -A/B*C^DE.

  13. What is the result of the following operation? Top (Push (S, X))

    a) X

    b) X+S

    c) S

    d) XS

    Answer: a

    Explanation: The function Push(S,X) pushes the value X in the stack S. Top() function gives the value which entered last. X entered into stack S at last.

  14. The prefix form of an infix expression (p + q) – (r * t) is?

    a) + pq – *rt

    b) – +pqr * t

    c) – +pq * rt

    d) – + * pqrt

    Answer: c

    Explanation: Given Infix Expression is ((p+q)-(r*t)) (+pq)-(r*t) (-+pq)(r*t) -+pq*rt. Thus prefix expression is -+pq*rt.




 


.

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