📞 0339-0387701 (WhatsApp)
Contact
☰
🔍
Home
Important MCQs
Computer
Current Affairs
English
Everyday Science
General Knowledge
General Science
Islamic Studies MCQs
Maths MCQs
Pak Study
Pedagogy
Urdu MCQs
Past Papers
ASF Past Papers
FIA Past Papers
FPSC Past Papers
NCCIA Past Papers
NTS Past Papers
PPSC Past Papers
Latest Jobs
Army Jobs
Education Department
Federal Govt Jobs
Health Department
Police Jobs
Resources
About Us
Contact
🔍
Home
» When in-order traversing a tree resulted in E A C K F H D B G; the preorder traversal would return?
« Back to Maths MCQs
When in-order traversing a tree resulted in E A C K F H D B G; the preorder traversal would return?
A. FAEKCDHGB ✅
B. FAEKCDBHG
C. EAFKHDCBG
D. FEAKDCHBG
Correct Answer:
A. FAEKCDHGB
Explanation
E: This is the leftmost node in the in-order sequence. It becomes the root in the preorder traversal.
A: The next node after E is its left child. So, A is the left child of E.
C: Moving further, C is the right child of A.
K: K is the right child of C.
F: F is the right child of K.
H: H is the right child of F.
D: D is the left child of F.
B: B is the left child of A.
G: Finally, G is the right child of B.
Putting it all together, we get the preorder traversal: FAEKCDHGB.
« X and Y are children of Z. Z is the…
The day after the day after tomorrow is four days… »
Related MCQs
Digital number 9 can be represented in binary number as?
30 + 39.98 = ____?
The sum of 3+0.3+0.03+0.003 is
If 25% proposals are rejected for a project, what is the ratio of number of proposals accepted to the number of proposals rejected ?
1/10 × 3/5 × 6/5 = _____?
Find the average of 2x, 6x 8x 10x, 12×7
If YCVGT means WATER, when what, does HKTG means
1 yard is equal to _____?