struct node *current = start->next
what will "current" contain if it is a pointer to a variable of type struct node ?
DS-Moodle1-Unit1
Quiz
•
Computers
•
University
•
Hard
Kanishk R
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
struct node *current = start->next
what will "current" contain if it is a pointer to a variable of type struct node ?
Address of 2nd Node
Data Field of 2nd Node
Address of 1st Node
None of these
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the operation of the below statements?
Insert a new node to the front of a linked list
Create a new node for a linked list
Insert a new node to the end of the linked list
Calculate the size of a linked list
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the operation of the below statements?
Create a new node for a linked list
Insert a new node to the front of a linked list
Delete a new node from a linked list
Insert a new node to the end of the linked list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which the following circular linked list
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How many times should
“temp =temp->next” be executed in the image to get the value of "Null" when the initial value of temp is temp=head
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Give syntax to create a node for Single linked list?
newnode=(struct node *)malloc(sizeof(struct node*));
newnode=(struct node )malloc(sizeof(struct node));
newnode=(struct node *)malloc(sizeof(struct node));
newnode=(struct node )malloc(sizeof(struct node*));
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Give routine to insert at the beginning in a linked list whose structure is by struct node, with list head as L and pointer variable as next
newnode->next=next;
L=newnode;
newnode->next=node;
L=newnode;
newnode->next=L;
L=newnode;
newnode->L=next;
L=newnode;
15 questions
Linked List Question Set 1
Quiz
•
University
15 questions
Arrays and Linked Lists
Quiz
•
University
25 questions
DS Quiz2
Quiz
•
University
15 questions
DS Module 3 Linked List
Quiz
•
University
20 questions
9.4.25 Mentoring quiz
Quiz
•
University
15 questions
Linked List (Chapter 2)
Quiz
•
University
18 questions
Linked List
Quiz
•
KG - University
20 questions
data structures1
Quiz
•
University
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade