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

 

HP Placement Paper - Data Structure Questions And Answers


Advertisements
Advertisements




HP Previous Years Solved Sample Placement Papers

  1. A linear list of elements in which deletion can be done from one end (front) and insertion can take place only at the other end (rear) is known as _____________

    a) Queue

    b) Stack

    c) Tree

    d) Linked list

    Answer: a) Queue
  2. The data structure required for Breadth First Traversal on a graph is?

    a) Stack

    b) Array

    c) Queue

    d) Tree

    Answer: c) Queue
  3. A queue follows __________

    a) FIFO (First In First Out) principle

    b) LIFO (Last In First Out) principle

    c) Ordered array

    d) Linear tree

    Answer: a) FIFO (First In First Out) principle
  4. Circular Queue is also known as ________

    a) Ring Buffer

    b) Square Buffer

    c) Rectangle Buffer

    d) Curve Buffer

    Answer: a) Ring Buffer
  5. If the elements “A,” “B,” “C,” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

    a) ABCD

    b) DCBA

    c) DCAB

    d) ABDC

    Answer: a) ABCD
  6. A data structure in which elements can be inserted or deleted at/from both ends but not in the middle is?

    a) Queue

    b) Circular queue

    c) Dequeue

    d) Priority queue

    Answer: c) Dequeue
  7. Consider an implementation of an unsorted singly linked list. Suppose it has its representation with a head pointer only. Given the representation, which of the following operations can be implemented in O(1) time?

    i) Insertion at the front of the linked list

    ii) Insertion at the end of the linked list

    iii) Deletion of the front node of the linked list

    iv) Deletion of the last node of the linked list

    a) I and II

    b) I and III

    c) I, II, and III

    d) I, II, and IV

    Answer: b) I and III
  8. In linked list each node contains a minimum of two fields. One field is the data field to store the data; the second field is?

    a) Pointer to character

    b) Pointer to integer

    c) Pointer to node

    d) Node

    Answer: c) Pointer to node
  9. What would be the asymptotic time complexity to add a node at the end of a singly linked list if the pointer is initially pointing to the head of the list?

    a) O(1)

    b) O(n)

    c) θ(n)

    d) θ(1)

    Answer: c) θ(n)




 


.

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