
LinkedListQuiz

Quiz
•
Computers
•
Professional Development
•
Hard
Margaret Sitati
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
HEAPS

Quiz
•
Professional Development
12 questions
Estructura de datos II

Quiz
•
Professional Development
10 questions
AWS Lambda and Apache Web Server

Quiz
•
Professional Development
11 questions
DP 300 Practice

Quiz
•
Professional Development
10 questions
Popular Video Games (2019)

Quiz
•
KG - Professional Dev...
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
10 questions
Codingnest C++ : Introduction to flowcharts quiz

Quiz
•
Professional Development
5 questions
day3 quiz 2

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade