Algorithms in C s Exam
Questions with Answers
Data Structure - Correct Answers: Organizes and stores data for efficient use.
Linear Data Structure - Correct Answers: Elements accessed sequentially; examples include arrays.
Non-linear Data Structure - Correct Answers: Elements accessed in non-linear order; includes trees.
Algorithm - Correct Answers: Step-by-step procedure for solving a problem.
Characteristics of Algorithm - Correct Answers: Includes clarity, well-defined inputs, and outputs.
Array - Correct Answers: Finite ordered collection of homogeneous data.
Element - Correct Answers: Individual item stored in an array.
Index - Correct Answers: Numerical identifier for an element's location.
Advantages of Array - Correct Answers: Represents multiple items using a single name.
Disadvantages of Array - Correct Answers: Fixed size; memory allocation cannot change.
Basic Operations on Array - Correct Answers: Includes insertion, deletion, searching, and updating.
Insertion Operation - Correct Answers: Adds an element at a specified index.
, Deletion Operation - Correct Answers: Removes an element at a specified index.
Searching in Array - Correct Answers: Finding the position of a value in an array.
Sequential Search - Correct Answers: Searches elements one by one in order.
Binary Search - Correct Answers: Efficient search method for sorted arrays.
Two Dimensional Array - Correct Answers: Array with rows and columns for data representation.
Tree Traversal - Correct Answers: Visiting all nodes in a tree structure.
Binary Search Tree - Correct Answers: Tree structure where left nodes are smaller.
Memory Optimization - Correct Answers: Efficient use of memory through data structures.
Reusability - Correct Answers: Ability to use implemented data structures elsewhere.
Sorting Techniques - Correct Answers: Methods like Bubble sort and Insertion sort.
CPU Scheduling - Correct Answers: Managing processes for efficient CPU usage.
Graph - Correct Answers: Non-linear data structure representing relationships.
Linked List - Correct Answers: Linear data structure with nodes linked together.
Stack - Correct Answers: Linear structure following Last In First Out principle.
Queue - Correct Answers: Linear structure following First In First Out principle.