
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
CETA'S Quizzard
Quiz
•
University
15 questions
Kuis Pra-UTS
Quiz
•
University
20 questions
Programming2
Quiz
•
University
20 questions
Programming Concepts in C - Quiz-II
Quiz
•
University
15 questions
Firewall and Network Security
Quiz
•
University
15 questions
bootstrap let's play
Quiz
•
University
17 questions
VISUAL BASIC
Quiz
•
University
20 questions
FRAMING,Bit Stuffing, PPP,HDLC,
Quiz
•
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