DSC Question Bank Format WITH PO
DSC Question Bank Format WITH PO
Question Bank
Module I:
Data Structures, Classifications (Primitive & Non Primitive), Data structure operations, Structures,Self
ReferentialStructures,and Unions.PointersandDynamicMemoryAllocationFunctions.RepresentationofLinear
Arrays in Memory, Dynamically allocated arrays.
Array Operations: Traversing, inserting, deleting, Searching: Linear Search, Binary Search, and Sorting:
Bubble Sort. Multidimensional Arrays, Polynomials: PolynomialRepresentation, Polynomial Addition, Sparse
Matrices: Sparse Matrix Representation, Transposing Matrix.
Strings:Basic Terminology,OperationsandPattern Matching algorithm: Naïve String Matching algorithm.
Programming Examples.
Q. Questions CO PO RBT Marks
No.
1 Define Data structures. Explain the types of data CO1 1,2,3 L1 8M
structures.
2 Differentiate between structure and union. CO1 1,2,3 L1 5M
3 Define pointer. Explain pointer initialization and CO1 1,2,3 L1 6M
declaration and justify how pointers can be dangerous.
4 Explain dynamic memory allocation with examples. CO1 1,2,3 L2 4M
5 Explain the operations of array with example. CO1 1,2,3 L2 5M
6 What is sparse matrix? Explain the sparse matrix CO1 1,2,3 L1 8M
representation. How transposing of a sparse matrix
done?
7 What is a polynomial? Apply appropriate data structures CO1 1,2,3 L1 8M
to represent two polynomials and write a function to add
the polynomials.
8 Explain the following: i) String ii) Length of string iii) CO1 1,2,3 L2 5M
Null String iv) Concatenation of string v) Substring .
9 Explain string manipulation function(operations). CO1 1,2,3 L2 5M
10 Show how strings are stored with a block diagrams. CO1 1,2,3 L1 5M
11 Write Navie pattern matching algorithms and explain CO1 1,2,3 L1 5M
with examples
12 Write binary search algorithm/function with an example. CO1 1,2,3 L1 5M
13 Write bubble sort algorithm/function with an example. CO1 1,2,3 L1 5M
14 Explain the operations of data structures. CO1 1,2,3 L2 5M
15 What is array? How array are declared and implemented CO1 1,2,3 L1 5M
in C explain with example.
16 Show how one and two dimensional arrays are allocated CO1 1,2,3 L1 5M
Page 1 of 6
dynamically
17 Write a note on structure with in structure, Self- CO1 1,2,3 L1 5M
referential structures with an example.
Module II:
Definition, Stack Operations, Array Representation of Stacks and Stack Applications: Infix to postfix
conversion, evaluation of postfix expression.Recursion: Factorial, Fibonacci Sequence, Tower of Hanoi.
Queues:Definition,ArrayRepresentation.QueueOperations,CircularQueues, Dequeue, Priority Queues.
Programming Examples.
1 Define stack. Implement the operations of stack using CO2 1,2,3 L1 6M
arrays or explain operations on stack.
2 Assume A=1, B=2, C=3. Evaluate the following postfix CO2 1,2,3 L6 8M
expressions:
a. A B + C – B A + C $ -
b. A B C + * C B A – + *
3 Apply suitable data structure to covert infix to postifix CO2 1,2,3 L6 10M
expression
a. A $ B * C – D + E / F / (G + H)
b. A – B / (C * D $ E)
c. ((A-(B+C))*D)$(E+F)
d. (a * b) +c/d
e. (((a / b)-c) + (d * e)) - (a * c).
Page 2 of 6
Programming Examples.
1 Define linked list. Write the representation of linked lists CO3 1,2,3 L1 5marks
in memory and node represented using C .
2 Develop C functions for the following functions in a CO3 1,2,3 L6 4marks
singly linked list.
(i) Insertion at the beginning(front) (iii)
Insertion at the end
(ii) Deletion at the beginning(front) (iv)
Deletion at the end
3 Apply linked list to represent two polynomials and write CO3 1,2,3 L3 5marks
a function to add the polynomials using linked list.
4 Show the diagrammatic linked list representation for CO3 1,2,3 L1 4marks
following sparse matrices.
0 1 2
3 0 0
0 0 0
Page 3 of 6
4 Define a binary tree. With example show array and CO3 1,2,3 L1 5marks
linked representation of binary tree.
5 Construct an expression tree for an expression i) A / B + CO3 1,2,3 L6 6marks
C * D + E ii) ((6+(3-2)*5)^2+3) iii) A/B+C*D+E
6 Given the following traversal, draw binary tree. CO3 1,2,3 L6 6marks
(i) inorder: 4 2 5 1 6 7 3 8
(ii) postorder: 4 5 2 6 7 8 3 1
7 Define tree traversal. Write the C-routines to traverse the CO3 1,2,3 L1 9marks
given tree using i) In order ii) Pre-order iii) Post-order.
( Solve the problems on traversals).
8 Develop C function to copy binary tree, testing equality CO3 1,2,3 L1 5marks
of binary tree.
9 Discuss threaded binary tree with neat diagrams. CO3 1,2,3 L6 5marks
10 Write c functions to insert, traverse, search and delete an CO3 1,2,3 L1 10marks
element in binary search tree(all kinds of insertion,
deletion).
11 Problem/function on Evaluation of Expression CO3 1,2,3 L6 6marks
Module-V:
Graphs: Definitions, Terminologies, Matrix and Adjacency List Representation Of Graphs,
Elementary Graph operations, Traversal methods: Breadth First Search and Depth First Search.
Sorting Techniques: Insertion Sort, Radix sort, selection sort.
Hashing: Collision concept, Linear Probing, quadratic probing, double hashing examples.
1 What is a graph? Write the terminologies used in graph CO5 1,2,3 L1 5marks
2 Write matrix and adjacency list representation of graphs CO5 1,2,3 L1 6marks
(PROBLEM)
3 Explain different graph traversal methods (DFS &BFS). CO5 1,2,3 L2 8marks
4 problems and algorithm of BFS and DFS. CO5 1,2,3 L6 8marks
5 Explain insertion sort and write C function of insertion CO5 1,2,3 L2 8marks
sort(solve problem)
6 explain radix sort and insertion sort with example (solve CO5 1,2,3 L2 6marks
problem)
7 Write a note selection sort.(solve problem) CO5 1,2,3 L1 6marks
8 Explain the hash table organization. CO5 1,2,3 L2 6marks
9 Explain hash functions with examples. CO5 1,2,3 L2 6marks
REVISEDBloom’sTaxonomyActionVerbs
Definitio I. II. III. Applying IV. Analyzing V. Evaluating VI.
ns Rememberin Understanding Creating
g
Page 4 of 6
n previously of facts and new situations information opinions by together in a
learned ideas by by applying into parts by making different way
material by organizing, acquired identifying judgments by
recalling facts, comparing, knowledge, motives or about combining
terms, basic translating, facts, causes. Make information, elements in a
concepts, and interpreting, techniques and inferences and validity of new pattern
answers. giving rules in a find evidence to ideas, or or proposing
descriptions, different way. support quality of alternative
and stating generalizations. work based on solutions.
main ideas. a set of
criteria.
Page 5 of 6
• Suppose
• Test
• Theory
Page 6 of 6