akshateducation.in@gmail.com +91 7597862909
Akshat Education
Akshat Education Learning & Assessment

Data Structures & Algorithms

Practice Questions & Answers

29 Questions
1 / 2 Current Page
What is a data structure? (Data structure क्या है?)
Correct Answer
Option B — A method of organizing and storing data (Data को organize और store करने की एक method)
A data structure organizes data so that it can be accessed, processed, and modified efficiently. (Data structure data को इस प्रकार organize करता है कि उसे efficiently access, process और modify किया जा सके।)
Which of the following is a linear data structure? (निम्नलिखित में से कौन-सा linear data structure है?)
Correct Answer
Option C — Array
In a linear data structure, elements are arranged sequentially. Arrays, linked lists, stacks, and queues are examples. (Linear data structure में elements sequentially arranged होते हैं। Array, linked list, stack और queue इसके examples हैं।)
Which data structure stores elements in contiguous memory locations? (कौन-सा data structure elements को contiguous memory locations में store करता है?)
Correct Answer
Option B — Array
Array elements are generally stored in consecutive memory locations, allowing efficient index-based access. (Array elements generally consecutive memory locations में store होते हैं, जिससे index-based access efficient होता है।)
Which data structure follows the LIFO principle? (कौन-सा data structure LIFO principle follow करता है?)
Correct Answer
Option B — Stack
LIFO means Last In, First Out. The element inserted last is removed first. (LIFO का अर्थ Last In, First Out है। जो element सबसे last में insert होता है, वह सबसे पहले remove होता है।)
Which data structure follows the FIFO principle? (कौन-सा data structure FIFO principle follow करता है?)
Correct Answer
Option B — Queue
FIFO means First In, First Out. The element inserted first is removed first. (FIFO का अर्थ First In, First Out है। जो element सबसे पहले insert होता है, वह सबसे पहले remove होता है।)
Which operation adds an element to a stack? (Stack में element add करने के लिए कौन-सी operation का उपयोग किया जाता है?)
Correct Answer
Option B — Push
Push adds an element to the top of a stack. (Push operation stack के top पर एक element add करती है।)
Which operation removes an element from a stack? (Stack से element remove करने के लिए कौन-सी operation का उपयोग किया जाता है?)
Correct Answer
Option C — Pop
Pop removes the topmost element from a stack. (Pop operation stack के topmost element को remove करती है।)
Which operation adds an element to a queue? (Queue में element add करने के लिए कौन-सी operation का उपयोग किया जाता है?)
Correct Answer
Option C — Enqueue
Enqueue adds an element to the rear of a queue. (Enqueue operation queue के rear में एक element add करती है।)
Which operation removes an element from a queue? (Queue से element remove करने के लिए कौन-सी operation का उपयोग किया जाता है?)
Correct Answer
Option D — Dequeue
Dequeue removes the element from the front of a queue. (Dequeue operation queue के front से element remove करती है।)
What is a linked list? (Linked list क्या है?)
Correct Answer
Option A — A collection of nodes connected through links (Links के माध्यम से connected nodes का collection)
A linked list consists of nodes containing data and one or more links pointing to other nodes. (Linked list में ऐसे nodes होते हैं जिनमें data और अन्य nodes की ओर point करने वाले एक या अधिक links होते हैं।)
Which part of a linked-list node stores the reference to the next node? (Linked-list node का कौन-सा part next node का reference store करता है?)
Correct Answer
Option B — Pointer/link field
The link or pointer field stores the reference or address of another node. (Link या pointer field किसी अन्य node का reference या address store करता है।)
Which data structure is commonly used to implement recursion? (Recursion को implement करने के लिए commonly कौन-सा data structure उपयोग किया जाता है?)
Correct Answer
Option A — Stack
Each recursive function call is stored on the call stack until it returns. (हर recursive function call return होने तक call stack में stored रहती है।)
What is an algorithm? (Algorithm क्या है?)
Correct Answer
Option B — A finite sequence of steps to solve a problem (किसी problem को solve करने के लिए steps का finite sequence)
An algorithm provides a defined sequence of operations for solving a particular problem. (Algorithm किसी particular problem को solve करने के लिए operations का defined sequence प्रदान करता है।)
Which characteristic should a proper algorithm have? (एक proper algorithm में कौन-सी characteristic होनी चाहिए?)
Correct Answer
Option C — Well-defined steps
An algorithm should have clear, unambiguous instructions and should eventually terminate. (Algorithm में clear और unambiguous instructions होनी चाहिए तथा उसे eventually terminate होना चाहिए।)
What does time complexity measure? (Time complexity क्या measure करती है?)
Correct Answer
Option B — How execution time grows with input size (Input size के साथ execution time कैसे grow करता है)
Time complexity describes how the computational work of an algorithm changes as the input size increases. (Time complexity बताती है कि input size बढ़ने पर algorithm का computational work कैसे बदलता है।)