
LinkedListQuiz
Authored by Margaret Sitati
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After the following loop terminates, reference p will be:
be null
refer to last node of the list
refer to second last node of the list
2.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
After the following loop terminates, reference p will be?
p=head;
while(p.next != null){
if(p.next.value == x)
break;
p=p.next;
}
refer to node that contains value x
refer to predecessor of node that contains value x
refer to successor of node that contains value x
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To insert a new node in the beginning of a list, which of these statements have to be written?
temp.link = start; start =null;
temp.link=start;start = temp;
start.link = temp; temp=start;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a reference p refers to the last node, which of these statements should be written to insert a new node at the end of the list.
p.link=temp;
temp.link =p;
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What should be there in place of the question mark to delete a node that is after the node referred to by reference p.
p.link = ?
null
p
p.link.link
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What should be the loop condition in the following code so that list referred by start2 is concatenated at the end of list referred by start1.
p!=null
p.link != null
p.link.link !=null
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
12 questions
JavaScript
Quiz
•
Professional Development
10 questions
Soal SKD
Quiz
•
University - Professi...
10 questions
💯Quiz: Discover AI in Daily Life
Quiz
•
Professional Development
10 questions
2 ANO TEC PROGRAMAÇÃO MOBILE AV1
Quiz
•
Professional Development
10 questions
KUIS CANVA
Quiz
•
Professional Development
11 questions
IPv6
Quiz
•
Professional Development
10 questions
Pretest CCNA
Quiz
•
Professional Development
11 questions
Formação Programação
Quiz
•
Professional Development
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 Computers
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L5_22-23
Lesson
•
KG - Professional Dev...
10 questions
March Quiz
Quiz
•
Professional Development
5 questions
Copy of G5_U6_L8_22-23
Lesson
•
KG - Professional Dev...
10 questions
suffixes FUL OR LESS
Quiz
•
Professional Development