
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
10 questions
Blockchain
Quiz
•
5th Grade - Professio...
10 questions
Structure Data Review
Quiz
•
University - Professi...
11 questions
Evaluación Aplicaciones Web
Quiz
•
University - Professi...
10 questions
Weekly Quiz 1
Quiz
•
4th Grade - Professio...
12 questions
como crear un QR
Quiz
•
Professional Development
10 questions
Ciberdelitos
Quiz
•
Professional Development
12 questions
Te Rito - Cyber Security
Quiz
•
Professional Development
11 questions
Computer Network Test
Quiz
•
University - Professi...
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
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development