
Singly and Doubly Linked List Quiz
Authored by Niveditha N
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line correctly defines a Node in a singly linked list?
class Node {
int data;
Node next;
Node(int d) {
_______________; // ← Fill this}}
this.next = d;
data = d; next = null;
this.data = next;
data = next;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should go in the blank?
void insertAtHead(int data) {
Node newNode = new Node(data);
newNode.next = ___________; // ← Fill this
head = newNode;}
null
head
newNode
head.next
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(Double)Which is correct?class DNode {
int data;
DNode next, prev;
DNode(int d) {
data = d;
next = null;
_________; // ← Fill }}
prev = d;
prev = null;
d = prev;
prev = next;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line completes the logic?(Double)
DNode newNode = new DNode(data);
newNode.next = head;
if (head != null)
head.__________ = newNode;
head = newNode;
next
prev
data
pointer
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Complete the code to print the list in reverse:(double)
DNode temp = tail;
while (temp != null) {
System.out.print(temp.data + " ");
temp = ___________;
}
temp.next
temp.prev
head.prev
temp.back
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
PAMT311 Midterm (Practice Activity)
Quiz
•
University
20 questions
Levels of Management
Quiz
•
University
13 questions
NHL
Quiz
•
9th Grade - University
15 questions
Spreadsheet
Quiz
•
University
20 questions
Electoral Literacy Club, GFGC Bhatkal
Quiz
•
University
20 questions
Week 2 Cardiology Quizz
Quiz
•
University
22 questions
FED311 400 Level
Quiz
•
University
15 questions
Święta, święta
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University