YOUR SUBJECT CS301 Data StructuresChange subject ↗
PRACTICE AT YOUR OWN PACE

CS301 practice questions

Think through the options before revealing the answer. Use the term filter to focus your revision.

6 questions
CS301 · Midterm#6

What is the maximum depth of recursive calls a function may make?

  1. A
    1
  2. B
    2
  3. C
    n
  4. D
    There is no fixed
Show correct answer

Correct answer: D. There is no fixed

Check community answers against your course notes.Question permalink ↗
CS301 · Midterm#5

A solution is said to be efficient if it solves the problem within its resource constraints i.e. hardware and tim

  1. A
    true
  2. B
    true
Show correct answer

Correct answer: A. true

Check community answers against your course notes.Question permalink ↗
CS301 · Midterm#4 · Lecture 9

The expression AB+C* is called?

  1. A
    Prefix expression
  2. B
    Postfix expression
  3. C
    Infix expression
  4. D
    None of the Above
Show correct answer

Correct answer: B. Postfix expression

Check community answers against your course notes.Question permalink ↗
CS301 · Midterm#3 · Lecture 8

What is the maximum depth of recursive calls a function may make?

  1. A
    1
  2. B
    2
  3. C
    n(where n is the argument)
  4. D
    There is no fixed maximum
Show correct answer

Correct answer: D. There is no fixed maximum

Check community answers against your course notes.Question permalink ↗
CS301 · Midterm#2 · Lecture 6

The tree data structure is a ....

  1. A
    Linear data structure.
  2. B
    Non-linear data structure
  3. C
    Graphical data structure
  4. D
    Data structure like queue
Show correct answer

Correct answer: B. Non-linear data structure

Check community answers against your course notes.Question permalink ↗
CS301 · Midterm#1

I have implemented the queue with a linked list, keeping track of a front pointer and a rear
pointer. Which of these pointers will change during an insertion into an EMPTY queue?

  1. A
    Neither changes
  2. B
    Only front pointer changes
  3. C
    Only rear pointer changes.
  4. D
    Both change.
Show correct answer

Correct answer: D. Both change.

Check community answers against your course notes.Question permalink ↗