
Linked List and Stack Quiz
Authored by mukilan selvaraj
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a node in a singly linked list contain?
Data and pointer to previous node
Data and pointer to next node
Only data
Only pointer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the head in a singly linked list?
Last node
First node
Random node
Middle node
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you detect if a singly linked list is empty?
If head is not None
If head is equal to 0
If head is None
If head is a string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation is used to add a node at the beginning?
append
prepend
insert_front
push_back
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you try to delete from an empty list?
Deletes head
Crashes
Error or Exception
Does nothing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to delete the first node?
pop
remove_first
delete_first
shift
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed if you try to print a node object without __str__ or __repr__?
Node content
Nothing
Error
Object memory location
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
Microprocessor
Quiz
•
University
15 questions
Spreadsheet
Quiz
•
4th Grade - University
15 questions
Grade 8 End of Unit Revision
Quiz
•
8th Grade - University
20 questions
Mobile Apps PayKu
Quiz
•
1st Grade - Professio...
15 questions
Computer Science Quiz
Quiz
•
University
20 questions
Linux 3-4
Quiz
•
University
20 questions
UTS Komputer dan Teknologi Informasi
Quiz
•
University
15 questions
HTML Quiz
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade