Search Header Logo

FINAL_EXAM_OVERVIEW

Authored by Carter Gezley

Arts

University

Used 3+ times

FINAL_EXAM_OVERVIEW
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a binary search tree (BST)?

A tree where each node has at most two children and values are stored in sorted order.

A tree where nodes are connected in a circular manner.

A tree where all nodes have the same value.

A tree where nodes are arranged randomly.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the advantage of an AVL tree over a general binary search tree (BST)?

AVL trees are always balanced, ensuring better search performance.

AVL trees allow duplicate values.

AVL trees do not require rotations for balancing.

AVL trees are faster to construct than BSTs.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which graph traversal method explores all vertices at the current depth before moving to the next depth?

Depth-first search (DFS)

Breadth-first search (BFS)

Topological sort

Kruskal's algorithm

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three types of inheritance in object-oriented programming?

Public inheritance, protected inheritance, private inheritance

Single inheritance, multiple inheritance, hierarchical inheritance

Static inheritance, dynamic inheritance, hybrid inheritance

Parent inheritance, child inheritance, sibling inheritance

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of Dijkstra's shortest path algorithm?

To find the shortest path from one vertex to all other vertices in a weighted and directed graph

To sort the vertices of a graph in topological order

To locate the spanning tree of a graph

To balance a binary search tree

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of virtual functions in C++?

To implement member functions in a derived class

To enable dynamic binding during runtime

To trace programs involving base and derived classes

To declare static functions in a class

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is best suited for adjacency representation in graphs?

Array

Linked list

Adjacency matrix or adjacency list

Stack

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?