Data Structures and Algorithms-I MCQs

Page No. 16

In a two-dimensional search tree, the root is arbitrarily chosen to be?


aeven

✖


bodd

✓


cdepends on subtrees

✖


d1

✖


View Answer odd

Insertion into a 2-d tree is a trivial extension of insertion into a binary search tree.


atrue

✓


bfalse

✖


ceither true either false

✖


dNone of the mentioned

✖


View Answer true

In what time can a 2-d tree be constructed?


aO(N)

✖


bO(N log N)

✓


cO(2N)

✖


dO(M log N)

✖


View Answer O(N log N)

In an expression tree algorithm, what happens when an operand is encountered?


acreate one node pointing to a stack

✓


bpop the nodes from the stack

✖


cclear stack

✖


dmerge all the nodes

✖



An expression tree’s nodes can be deleted by calling?


amalloc

✖


bcalloc

✖


cdelete

✖


dfree

✓


View Answer free

++a*bc*+defg is an?


apostfix expression

✖


binfix expression

✖


cprefix expression

✓


dinvalid expression

✖


View Answer prefix expression

An expression tree is created using?


apostfix expression

✓


bprefix expression

✖


cinfix expression

✖


dparenthesized expression

✖


View Answer postfix expression

Only infix expression can be made into an expression tree.


atrue

✖


bfalse

✓


ceither true either false

✖


dNone of the mentioned

✖


View Answer false

The average depth of a binary tree is given as?


aO(N)

✖


bO(log N)

✖


cO(M log N)

✖


dO(√N)

✓


View Answer O(√N)

The expression obtained by recursively producing a left expression, followed by an operator, followed by recursively producing a right expression is called?


aprefix expression

✖


binfix expression

✓


cpostfix expression

✖


dparenthesized expression

✖


View Answer infix expression

Goto Page No.

Page 16 of 53

Alphabetical MCQs Categories
—

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"
—

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan