

Data Structures_Unit 4(BinTrees, Stack, Q using Linked List)
Presentation
•
Computers
•
University
•
Hard
Dr.Mydhili Nair
Used 4+ times
FREE Resource
20 Slides • 0 Questions
1
Data Structures_Unit 4(BinTrees, Stack, Q using Linked List)
Conducted By: Dr.Mydhili K Nair, Professor, ISE Dept, RIT

2
The array representation for this Binary Tree is:
1) _ D H E C F B A C
2) _ H D E F C B C A
3) A B D _ H C E F
4) A B C D _ E F _ H
3
For the Array Representation of the Binary Tree given, which is the left & right child of Index #4
1) Left: _ Right: _
2) Left: _ Right: E
3) Left: E Right: _
4) Left: _ Right: 7
4
A * B + C * D is an infix expression. Its post-fix equivalent is:
1) * A B * C D +
2) A B + C D * +
3) A B * C D + *
4) A B * C D * +
5
((A+(B-C) * D)^D)^E+F is an infix expression. Its equivalent Postfix expression is:
1) ABC-D*+D^E^F+
2) AB-CD*+D^E^F+
3) ABC-D+*D^E^F+
4) ABC-D*+D^EF^+
6
Pre-Order Traversal for this Binary Tree is:
1) A B D C E G F H I
2) D B G E H I F C A
3) B D A G E C H F I
4) A B C D E F G H I
7
Post-Order Traversal for this Binary Tree is:
1) A B C D E F G H I
2) D B G E H I F C A
3) A B D C E G F H I
4) B D A G E C H F I
8
In-Order Traversal for this Binary Tree is:
1) A B C D E F G H I
2) D B G E H I F C A
3) B D A G E C H F I
4) A B D C E G F H I
9
Pre-Order traversal for this Binary Tree is:
1) 25, 15, 10, 4, 12, 22, 18, 24, 50, 35, 31, 44,70,66, 90
2) 4, 12, 10, 18, 24, 22,15, 31, 44, 35,66, 90, 70, 50,25
3) 4,10,12, 15,18,22, 24,25,31, 35,44,50,66,70,90
4) 25,15,50,10,22,35,70,4,12,18,24,31,44,66,90
10
Post-Order traversal for this Binary Tree is:
1) 25, 15, 10, 4, 12, 22, 18, 24, 50, 35, 31, 44,70,66, 90
2) 4, 12, 10, 18, 24, 22,15, 31, 44, 35,66, 90, 70, 50,25
3) 4,10,12, 15,18,22, 24,25,31, 35,44,50,66,70,90
4) 25,15,50,10,22,35,70,4,12,18,24,31,
44,66,90
11
In-Order traversal for this Binary Tree is:
1) 25, 15, 10, 4, 12, 22, 18, 24, 50, 35, 31, 44,70,66, 90
2) 4, 12, 10, 18, 24, 22,15, 31, 44, 35,66, 90, 70, 50,25
3) 4,10,12, 15,18,22, 24,25,31, 35,44,50,66,70,90
4) 25,15,50,10,22,35,70,4,12,18,24,31,
44,66,90
12
Which function is the following code:
void function(node * root)
{ if (root == NULL) return;
printf("%c", root->data);
function(root-<left);
function(root-<right); }
1) In-Order Traversal
2) Pre-Order Traversal
3) Post-Order Traversal
4) Level-Order Traversal
13
Which function is the following code:
void function(node * root)
{ if (root == NULL) return;
function(root-<left);
printf("%c", root->data);
function(root-<right); }
1) In-Order Traversal
2) Pre-Order Traversal
3) Post-Order Traversal
4) Level-Order Traversal
14
Which function is the following code:
void function(node * root)
{ if (root == NULL) return;
function(root-<left);
function(root-<right);
printf("%c", root->data); }
1) In-Order Traversal
2) Pre-Order Traversal
3) Post-Order Traversal
4) Level-Order Traversal
15
Which of these is the correct deletion operation of a node in a BST, represented by this code?
1) Child node to be deleted has a left child
2) Child node to be deleted has a right child
3) Child node to be deleted has no children
16
Which of these is the correct deletion operation of a node in a BST, represented by this code?
1) Child node to be deleted has a left child
2) Child node to be deleted has a right child
3) Child node to be deleted has no children
17
Which of these is the correct deletion operation of a node in a BST, represented by this code?
1) Child node to be deleted has a left child
2) Child node to be deleted has a right child
3) Child node to be deleted has no children
18
You are a buffet manager. 5 elderly people come late. You will request 5 younger people near the front of the queue to give up their position so the elders can get their lunch first. Which data structure mimics this real-life?
1) Circular Q 2) Linear Q
3) Priority Q 4) Double Ended Q
19
Read the following statement and state which data structure you would use to implement it: “Suppose we are finding a path for solving maze problem. We choose a path and after following it we realize that it is wrong. Now we need to go back to the beginning of the path to start with new path.”
1) B+ Tree 2) Queue 3) Structure 4) Stack
20
The start date to conduct first internal test, last date to enter into SIS, last date to send proctor reports, start and end date of teaching after the first test, followed by the cycle of events for the second test. Which data structure can mimic this real life scenario?
1)Double Ended Q 2) Linear Q
3) Priority Q 4) Circular Q
Data Structures_Unit 4(BinTrees, Stack, Q using Linked List)
Conducted By: Dr.Mydhili K Nair, Professor, ISE Dept, RIT

Show answer
Auto Play
Slide 1 / 20
SLIDE
Similar Resources on Wayground
17 questions
AULA 23: MODELO ATÔMICO DE BOHR
Presentation
•
University
14 questions
Teoria de control
Presentation
•
University
17 questions
Some Any A An
Presentation
•
University
17 questions
Modelo Relacional
Presentation
•
University
17 questions
SAT Reading Practice Test 1
Presentation
•
12th Grade - University
16 questions
Algebra 1 FSA EOC Practice Test ~ Non-Calculator
Presentation
•
10th - 11th Grade
16 questions
On Being Brought From Africa to America
Presentation
•
KG - University
15 questions
2ND CONDITIONAL
Presentation
•
University
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
15 questions
LGBTQ Trivia
Quiz
•
University
36 questions
8th Grade US History STAAR Review
Quiz
•
KG - University
25 questions
5th Grade Science STAAR Review
Quiz
•
KG - University
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
20 questions
5_Review_TEACHER
Quiz
•
University
10 questions
Applications of Quadratic Functions
Quiz
•
10th Grade - University
10 questions
Add & Subtract Mixed Numbers with Like Denominators
Quiz
•
KG - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...