
DCS2101 - Week 12 (Practical Applications 2)
Presentation
•
Computers
•
University
•
Practice Problem
•
Medium
Yasmin Basiran
Used 2+ times
FREE Resource
30 Slides • 14 Questions
1
2
3
Word Cloud
What do you understand about pointers?
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Multiple Choice
What does a pointer variable store?
21
Multiple Choice
Which symbol is used to access the value stored at the address pointed by a pointer?
22
Multiple Choice
What is the output of the following code?
int x = 10;
int *p = &x;
cout << *p;
23
Multiple Choice
What will happen if you dereference a null pointer?
24
Multiple Choice
What is the main purpose of using pointers in tree data structures?
Store data values in arrays.
Sorting elements in a list.
For memory allocation in stacks.
To connect nodes for efficient traversal and manipulation.
25
Word Cloud
How many nodes does a binary tree usually have?
26
27
28
29
30
31
32
33
34
35
36
37
Multiple Choice
Which traversal visits nodes in the order: Left → Root → Right?
38
Multiple Choice
Which traversal uses a queue instead of recursion or a stack?
39
Multiple Choice
In a tree, the nodes without any child are called:
40
Multiple Choice
What does the pointer root typically point to in a binary tree?
41
Multiple Choice
In C++, when creating a new node dynamically, what statement is used?
Node node;
Node *node = &Node;
Node *node = new Node;
Node = new Node;
42
Multiple Choice
What happens if you forget to delete a dynamically allocated node?
43
Draw
Draw the binary tree represented by the following traversal output:
Preorder: A, B, D, E, C, F
44
Show answer
Auto Play
Slide 1 / 44
SLIDE
Similar Resources on Wayground
36 questions
Final Project by Sofia, Constanza, Marisol, Ignacio
Presentation
•
University
35 questions
Chapter 2-4 Simple Past and Past Continuous
Presentation
•
University
41 questions
Manuka Honey-Business English
Presentation
•
Professional Development
42 questions
The pardoner's Tale
Presentation
•
12th Grade
43 questions
UP-UKMPPG1-PPKn
Presentation
•
Professional Development
37 questions
Lecture 1 - part 3 - CIS430
Presentation
•
University
38 questions
Community acquired pneumonia
Presentation
•
University
39 questions
Countable and Countable Nouns
Presentation
•
University
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade