
CTDL & GT
Authored by Hoàng Kiệt
Science
University
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the optimal time complexity to count the number of nodes in a linked list?
O(n)
O(1)
O(log n)
None of the above
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following code snippet for the list 1->2->3->4->5->6?
1 2 3 4 5 6
1 3 5 5 3 1
1 3 5 1 3 5
2 4 6 1 3 5
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following function do for a given Linked List with first node as head?
void fun1(struct node* head)
{
if(head == NULL)
return;
fun1(head->next);
printf("%d ", head->data);
}
Prints all nodes of linked lists
Prints all nodes of linked list in reverse order
Prints alternate nodes of Linked List
Prints alternate nodes in reverse order
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is
log 2 n
n/2
log 2 n – 1
n
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Linked List implementation, a node carries information regarding
Data
Link
Data and Link
None of the mentioned
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which data structure allows deleting data elements from and inserting at rear?
Stacks
Queues
Dequeues
Binary search tree
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Stack is also called as
A First in first out
B First in last out
C Last in last out
D Last in first out
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
20 questions
AP Physics Energy
Quiz
•
11th Grade - University
20 questions
AP Physics Unit 5 Review
Quiz
•
11th Grade - University
22 questions
Chapter 6
Quiz
•
University
20 questions
Work It Out: Physics Fun!
Quiz
•
8th Grade - University
20 questions
Magnitudes en el Sistema Internacional
Quiz
•
3rd Grade - University
20 questions
Science Skills Quiz
Quiz
•
10th Grade - University
20 questions
Introduction to Analog and Digital I/O
Quiz
•
University
20 questions
Exploring Forces and Motion
Quiz
•
7th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Science
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University