.
  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 Structure & Programming Questions And Answers


Advertisements
Advertisements




Mascot Previous Years Solved Sample Placement Papers

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

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

  3. What is the postfix expression for the following infix expression?

    a/b^c-d

    a) abc^/d-

    b) ab/cd^-

    c) ab/^cdd

    d) abcd^/-

    Answer: a

    Explanation: Using the infix to postfix conversion algorithm, the corresponding postfix expression for the infix expression is abc^/d-.

  4. What is the corresponding postfix expression for the given infix expression?

    a*(b+c)/d

    a) ab*+cd/

    b) ab+*cd/

    c) abc*+/d

    d) abc+*d/

    Answer: d

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

    Explanation: Arrays provide random access to elements by providing the index value within square brackets. In the linked list, we need to traverse through each element until we reach the nth position. Time taken to access an element represented in arrays is less than the singly, doubly and circular linked lists. Thus, array implementation is used to access the item at the position n.

  6. Linked lists are not suitable for the implementation of ___________

    a) Insertion sort

    b) Radix sort

    c) Polynomial manipulation

    d) Binary search

    Answer: d

    Explanation: It cannot be implemented using linked lists.

  7. Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?

    a) Insertion Sort

    b) Quick Sort

    c) Heap Sort

    d) Merge Sort

    Answer: d

    Explanation: Both Merge sort and Insertion sort can be used for linked lists. The slow random-access performance of a linked list makes other algorithms (such as quicksort) perform poorly, and others (such as heapsort) completely impossible. Since the worst-case time complexity of Merge Sort is O(nLogn) and Insertion sort is O(n²), merge sort is preferred.

  8. A B-tree of order 4 and of height 3 will have a maximum of _______ keys.

    A) 255 (Ans)

    B) 63

    C) 127

    D) 188

  9. Five node splitting operations occurred when an entry is inserted into a B-tree. Then how many nodes are written?

    A) 14

    B) 7

    C) 11 (Ans)

    D) 5

  10. B-tree and AVL tree have the same worst-case time complexity for insertion and deletion.

    A) True (Ans)

    B) False

  11. 2-3-4 trees are B-trees of order 4. They are an isometric of _____ trees.

    A) AVL

    B) AA

    C) 2-3

    D) Red-Black (Ans)




 


.

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