Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations

WB JECA MCA Previous Year Questions (PYQs)

WB JECA MCA Data Structures PYQ


WB JECA MCA PYQ
Find out the wrong statement based on the characteristics of AVL tree data structure.






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

 AVL trees guarantee O(log n) search time, not O(n).


WB JECA MCA PYQ
Example of non-linear data structure is __________.






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Graphs and trees are non-linear data structures, while linked-list, queue, and stack are linear.


WB JECA MCA PYQ
Bubble sort algorithm has a worst-case time complexity of __________.





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Graphs and trees are non-linear data structures, while linked-list, queue, and stack are linear.


WB JECA MCA PYQ
Insertion sort algorithm has a best-case time complexity of __________.






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Insertion sort runs in O(n) time when the array is already sorted (best case).


WB JECA MCA PYQ
__________ algorithm is used to find out the shortest path between two points in a connected weighted graph.  






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Kruskal’s algorithm (and Prim’s) are used in shortest path/minimum spanning tree problems.


WB JECA MCA PYQ
Which of the given statement is the correct recurrence for the worst case of Binary Search?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Binary search recurrence is T(n) = T(n/2) + O(1). Base case T(1)=O(1).
Answer: (C) T(n) = T(n/2) + O(1)

WB JECA MCA PYQ
Which of the following data structure is required to convert an arithmetic expression in infix form to its equivalent postfix form ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Infix→postfix conversion (e.g., Shunting-yard) uses a stack to manage operators and parentheses.
Answer: (D) Stack

WB JECA MCA PYQ
Numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The tree uses usual ordering. What is the in-order traversal sequence?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: In-order traversal of a BST gives the sorted order of keys ⇒ 0 to 9 ascending.
Answer: (C) 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

WB JECA MCA PYQ
Worst case time complexity of inserting into an empty linear linked list, if list must remain sorted?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: To keep list sorted, insertion needs traversal O(n).
Answer: (A) Θ(n)

WB JECA MCA PYQ
What is the worst case complexity of inserting a node in doubly linked list ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Insertion in DLL is O(1) (given pointer to location).
Answer: (D)

WB JECA MCA PYQ
Which sorting algorithm is most efficient if elements are already in sorted order ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Insertion sort runs in O(n) when input is already sorted.
Answer: (C)

WB JECA MCA PYQ
What is the prefix of expression A-B/(C*D^E) ?





Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2024 PYQ

Solution

Solution: Infix: A - B/(C*D^E). Precedence: ^ > * > /. Prefix = - A / B * C ^ D E.
Answer: (A)

WB JECA MCA PYQ
41.In singly linked list, the time complexity for insertion at a particular node is:






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

  • Insertion after a given node in a linked list takes constant time O(1) (if pointer to that node is already available).



WB JECA MCA PYQ
42.In stack data structure, __________ operation is not permitted.






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Enqueue is a queue operation, not allowed in stack.

WB JECA MCA PYQ
43.In tree data structure, the in-degree of root node is always __________.






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

The root node has no incoming edges, so its in-degree is always 0.

WB JECA MCA PYQ
44.In binary tree data structure, using depth-first approach, preorder traversal means _______.






Go to Discussion

WB JECA MCA Previous Year PYQ WB JECA MCA JECA MCA 2023 PYQ

Solution

Preorder traversal visits root first, then left subtree, then right subtree.



WB JECA MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

WB JECA MCA


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...