
Computer Science Quiz
Authored by Quang Nguyễn
English
9th Grade
Used 25+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?