80-100

80-100

University

20 Qs

quiz-placeholder

Similar activities

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Punteros y Memoria Dinamica

Punteros y Memoria Dinamica

University

15 Qs

Pretest Alpro Dasar

Pretest Alpro Dasar

University

20 Qs

DSA (QUIZ 5) Priority Queue and Sorting Algorithms Quiz

DSA (QUIZ 5) Priority Queue and Sorting Algorithms Quiz

University

20 Qs

DSA (Quiz 4) - Trees

DSA (Quiz 4) - Trees

University

20 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Session 02

Session 02

University

15 Qs

TIK KELAS 9

TIK KELAS 9

9th Grade - University

20 Qs

80-100

80-100

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Ілияс Тілепалды

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

When building a heap using build_heap(list), which of the following is true?

The list is processed from the last parent backward

The resulting tree is a max-heap

The resulting tree is a min-heap

The resulting structure is not a complete binary tree

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following keys would appear in the left subtree after inserting [68, 88, 61, 89, 94, 50, 4, 76, 66, 82] into a BST?

61

50

76

94

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which properties apply to a binary search tree created from randomly generated integers?

The tree will always be complete

The shape of the tree depends on insertion order

Values in the left subtree are always less than root

It is always balanced

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What structure results from inserting [1, 2, 3, ..., 10] into a binary heap (min-heap) one at a time?

The heap has the smallest number at the root

The structure is a max-heap

The tree is not complete

Each parent is less than or equal to its children

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What structure results from inserting [10, 9, 8, ..., 1] into a binary heap (min-heap) one at a time?

The last number becomes the root

The tree is skewed

The structure remains a complete binary tree

Each parent is greater than its children

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Why must we check for None before calling a method like preorder() on a tree node, but not when using a function-based traversal?

Methods require a real object to invoke

Functions can handle None as an argument

Methods create their own stack

Preorder functions are always recursive

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following keywords are used in Python?

else

elif

if

endif

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?