Dsa_3

10 Questions | Attempts: 136
Share
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. Define a recursive function F( n ) as following: If n > 0 then F( n ) = n x F(n-1) If n = 0 then F( n ) = 1. As such, what is the value of F(5)?
Submit
Please wait...
About This Quiz
Dsa_3 - Quiz

Tell us your name to personalize your report, certificate & get on the leaderboard!
2. Which of the following stack operations could result in stack underflow?
Submit
3. Which of the following is the appropriate statement concerning data sorting methods?
Submit
4. Which formula is the best approximation for the depth of a heap with n nodes?
Submit
5. Given a tree T in the box. What is the order of nodes visited using a pre-order traversal?
Submit
6. Suppose cursor points to a node in a linked list (using the node definition with member functions called data and link). What Boolean expression will be true when cursor points to the tail node of the list?
Submit
7. Among Breadth-first search and Depth-first search, which graph traversal algorithm uses a queue to keep track of vertices that need to be processed?
Submit
8. Figure 2 is the array representation of a binary tree shown in Figure 1. What should be put into the space "a"?
Submit
9. Consider the following pseudo code: declare a stack of characters while ( there are more characters in the word to read ) { read a character push the character on the stack } while ( the stack is not empty ) { write the stack's top character to the screen pop a character off the stack } What is written to the screen for the input "cartets"?
Submit
10. Which of the following is an appropriate description concerning the list and/or array structures?
Submit
View My Results

Quiz Review Timeline (Updated): Mar 20, 2022 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 20, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • May 02, 2012
    Quiz Created by
    Lethao.2c08
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Define a recursive function F( n ) as following:...
Which of the following stack operations could result in stack...
Which of the following is the appropriate statement concerning data...
Which formula is the best approximation for the depth of a heap with n...
Given a tree T in the box. What is the order of nodes visited using a...
Suppose cursor points to a node in a linked list (using the node...
Among Breadth-first search and Depth-first search, which graph...
Figure 2 is the array representation of a binary tree shown in Figure...
Consider the following pseudo code:...
Which of the following is an appropriate description concerning the...
Alert!

Advertisement