
ADS tut 2
Authored by Ms PSGCT
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In simple chaining, what data structure is appropriate?
Singly linked list
Doubly linked list
Circular linked list
Binary trees
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After inserting 6 values into an empty hash table, the table is as shown above.
Which one of the following choices gives a possible order in which the key values could have been inserted in the table?
46, 42, 34, 52, 23, 33
34, 42, 23, 52, 33, 46
46, 34, 42, 23, 52, 33
42, 46, 33, 23, 34, 52
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?
h(i) =i^2 mod 10
h(i) =i^3 mod 10
h(i) = (11 ∗ i^2) mod 10
h(i) = (12 ∗ i) mod 10
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity improvement of skip lists from linked lists in insertion and deletion?
O(n) to O(logn) where n is number of elements
O(n) to O(1) where n is number of elements
no change
O(n) to O(n2) where n is number of elements
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The nodes in a skip list may have many forward references. their number is determined
probabilistically
randomly
sequentially
orthogonally
6.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
7.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
The size of the hash table is 12. Double hashing is used to resolve collisions. The hash function used is H(k) = k mod 12 The second hash function is: H2(k) = 7 – (k mod 7). What value will be in the hash table at location 4 after the following sequence of insertions 33, 10, 9, 13, 12, 45, 26?
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?
Similar Resources on Wayground
15 questions
IT 209
Quiz
•
University
15 questions
Assessment 08
Quiz
•
University
12 questions
ICT450-TOPIC 1
Quiz
•
University
11 questions
Video Watermaking
Quiz
•
University
10 questions
NETIQUETTE AND DIGITAL FOOTPRINT
Quiz
•
University
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University