80-100

80-100

University

20 Qs

quiz-placeholder

Similar activities

Python: operadores y tipos de datos

Python: operadores y tipos de datos

University

18 Qs

P3 IAS 2 Quiz

P3 IAS 2 Quiz

University

15 Qs

11-р анги

11-р анги

11th Grade - University

20 Qs

Getting Familiar with GIT and GITHUB

Getting Familiar with GIT and GITHUB

University

15 Qs

Python_MCQ_2

Python_MCQ_2

University

15 Qs

ML Use-Cases Quiz

ML Use-Cases Quiz

University

20 Qs

Pretest 5 - PBW 2B - PHP

Pretest 5 - PBW 2B - PHP

University

20 Qs

Advance Database Concepts (BSIT 3)

Advance Database Concepts (BSIT 3)

University

20 Qs

80-100

80-100

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Easy

Created by

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

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?