gs gs121 Binary Trees - Binary Trees using Linked Lists - Quiz No.1

gs gs121 Data Structures and Algorithms Quiz

Online Quizzes Preparation

This quiz belongs to book/course code gs gs121 Data Structures and Algorithms of gs organization. We have 169 quizzes available related to the book/course Data Structures and Algorithms. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Binary Trees. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.

NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.

Question 1: Advantages of linked list representation of binary trees over arrays?
Question 2: Disadvantages of linked list representation of binary trees over arrays?
Question 4: Level order traversal of a tree is formed with the help of
Question 5: Identify the reason which doesn’t play a key role to use threaded binary trees?
Question 6: The following lines talks about deleting a node in a binary tree.(the tree property must not be violated after deletion)
i) from root search for the node to be deleted
ii)
iii) delete the node at
what must be statement ii) and fill up statement iii)
Question 7: What may be the psuedo code for finding the size of a tree?
Question 8: What is missing in this logic of finding a path in the tree for a given sum (i.e checking whether there will be a path from roots to leaf nodes with given sum)?

 checkSum(struct bin-treenode *root , int sum) : if(root==null) return sum as 0 else : leftover_sum=sum-root_node-->value //missing 
Question 9: What must be the missing logic below so as to print mirror of a tree as below as an example?
Question 10: What is the code below trying to print?

 void print(tree *root,tree *node) { if(root ==null) return 0 if(root-->left==node || root-->right==node) || print(root->left,node) ||printf(root->right,node) { print(root->data) } } 


Online Quizzes of gs121 Data Structures and Algorithms

Other DS related online quizzes

Other categories of gs Online Quizzes

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background