Computer Science Quiz

Computer Science Quiz

9th Grade

62 Qs

quiz-placeholder

Similar activities

Daily Routine Actions 2

Daily Routine Actions 2

8th - 10th Grade

60 Qs

Verbs in Sentence

Verbs in Sentence

9th Grade

65 Qs

verbs

verbs

8th - 10th Grade

65 Qs

EXTREME SITUATIONS : SPEAKING, VOCABULARY & GRAMMAR

EXTREME SITUATIONS : SPEAKING, VOCABULARY & GRAMMAR

9th Grade

67 Qs

Language Arts 8 Final Practice

Language Arts 8 Final Practice

8th Grade - University

60 Qs

wild animals

wild animals

6th - 10th Grade

61 Qs

Grade 11

Grade 11

9th - 12th Grade

60 Qs

Day of Weeks

Day of Weeks

KG - Professional Development

63 Qs

Computer Science Quiz

Computer Science Quiz

Assessment

Quiz

English

9th Grade

Practice Problem

Easy

Created by

Quang Nguyễn

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

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

62 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the following algorithm with respect to the input size N?

O(1)

O(N)

O(N^2)

O(2N)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is wrong about graphs?

Weight of an edge must be positive.

Weight of an edge can be negative.

Adjacency matrix is an appropriate representation of a graph.

Adjacency list is an appropriate representation of a graph.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a hash table of size N using linear probing, what is the probing hash function hi(k)?

hi(k) = h(k) mod N.

hi(k) = (h(k) + i) mod N.

hi(k) = i + k.

hi(k) = i mod N.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is correct about array-based lists?

Array-based is faster than linked-list in accessing items.

Array-based is faster than linked-list in inserting new items.

Elements of array-based lists can be dynamically located.

They can be implemented by Java only.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the ADT of the list data structure, isEmpty() method returns a/an _______ value.

Real number.

String.

Integer.

Boolean.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following describes the number of paths of length K from vertex Vi to vertex Vj?

The weight of the path from vertex Vi to vertex Vj going exactly through K vertices.

The number of paths of length K from vertex Vi to vertex Vj.

The length of the Hamiltonian cycle that has K vertices including Vi and Vj.

The weight of the shortest path from Vi to Vj using intermediate vertices in {V1..Vk}.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following tree, what is the result of pre-order traversal?

A,B,C,D,E,F,G,H,I,J

A,D,B,C,J,G,E,F,I,H

A,B,D,C,E,G,J,F,H,I

A,B,D,C,E,F,G,J,H,I

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?