Prep Hub

Data Structures and Algorithms MCQs – Set 21

Data Structures and Algorithms MCQs – Set 21

UGC NET Paper 2 Computer Science JUNE 2012 – Data Structures and Algorithms


401. Circuit output f(x,y,z) is:?

Data Structures and Algorithms • Combinational Logic • UGC NET Paper 2 Computer Science JUNE 2012


402. Pseudocode with m nested loops counts combinations K; K =:?

Data Structures and Algorithms • Combinatorics • UGC NET Paper 2 Computer Science JUNE 2012


403. Number of binary trees with 5 nodes =:?

Data Structures and Algorithms • Combinatorics • UGC NET Paper 2 Computer Science JUNE 2012


404. Which data structure is linear type?

Data Structures and Algorithms • Data structures • UGC NET Paper 2 Computer Science JUNE 2012


405. Given equal search probabilities, optimal BST is which diagram?

Data Structures and Algorithms • Search Trees • UGC NET Paper 2 Computer Science JUNE 2012


406. Inorder traversal yields sorted listing in

Data Structures and Algorithms • Tree traversals • UGC NET Paper 2 Computer Science JUNE 2012


407. To represent hierarchical relationships, which structure is suitable?

Data Structures and Algorithms • Trees • UGC NET Paper 2 Computer Science JUNE 2012


408. Match: a.Bucket sort; b.Matrix chain; c.Huffman; d.All-pairs → i.O(n); ii.O(n³); iii.O(n log n); iv.O(n³ log n).

Data Structures and Algorithms • Algorithms • UGC NET Paper 2 Computer Science JUNE 2012


409. Match: a.Bucket sort; b.Matrix chain; c.Huffman; d.All-pairs – i.O(n);ii.O(n³);iii.O(n log n);iv.O(n³ log n)

Data Structures and Algorithms • Algorithms • UGC NET Paper 2 Computer Science JUNE 2012


410. 5 men P,Q,R,S,T to jobs I–V, times as table. Min total time?

Data Structures and Algorithms • Assignment problem • UGC NET Paper 2 Computer Science JUNE 2012


411. Big-O for f(x)=(x+1)·log(x²+1)+3x² =

Data Structures and Algorithms • Asymptotic Analysis • UGC NET Paper 2 Computer Science JUNE 2012


412. For any B-tree of minimum degree t≥2, every node other than root must have at least ______ keys and at most ______ keys.

Data Structures and Algorithms • B-trees: Properties • UGC NET Paper 2 Computer Science JUNE 2012


413. We show CLIQUE is NP-hard by which reduction?

Data Structures and Algorithms • Complexity Theory • UGC NET Paper 2 Computer Science JUNE 2012


414. Matrix dims 10×100,100×5,5×50: ((A1A2)A3) is how many times faster than (A1(A2A3))?

Data Structures and Algorithms • Dynamic Programming • UGC NET Paper 2 Computer Science JUNE 2012


415. Dijkstra is a _______, Floyd-Warshall is a _______.

Data Structures and Algorithms • Graph Algorithms • UGC NET Paper 2 Computer Science JUNE 2012


416. Given two sorted lists of sizes m and n, comparisons needed in merge in worst case =

Data Structures and Algorithms • Merge Algorithm Analysis • UGC NET Paper 2 Computer Science JUNE 2012


417. If a queue is implemented with head and tail pointers, which change on insertion into a non-empty queue?

Data Structures and Algorithms • Queues: Pointer Implementation • UGC NET Paper 2 Computer Science JUNE 2012


418. For a B-tree of height h and degree t, CPU time to insert a node is

Data Structures and Algorithms • B-trees • UGC NET Paper 2 Computer Science JUNE 2012


419. In an open-address hash table with load factor α<1, expected probes in a successful search is

Data Structures and Algorithms • Hashing • UGC NET Paper 2 Computer Science JUNE 2012


420. Time complexity to build heap from n numbers is

Data Structures and Algorithms • Heaps • UGC NET Paper 2 Computer Science JUNE 2012



Disclaimer for MCQ Quiz
This quiz is for educational purposes only…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Scroll to Top