Linked list

Quiz
•
Computers
•
University
•
Hard
noi pc
Used 4+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
การ insert ข้อมูลด้านหน้าสุดของ doubly linked list เงื่อนไขข้อใดถูกต้อง (doubly linked list มีข้อมูลอยู่แล้ว)
if(data > head->value)
if(data < head->value)
if(data < head->prev)
if(data > head->prev)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
การเชื่อมข้อมูลต่อท้าย doubly linked โดยกำหนดว่าข้อมูลใหม่มี node เก็บตำแหน่งของข้อมูลใหม่อยู่ ข้อใดถูก
tail->next->prev=node;
node->prev=tail;
tail->prev=node;
node->next=tail;
tail->next=node;
node->prev=tail;
tail->next=node;
node->next=tail;
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ต้องการนับจำนวน node ใน linked list ข้อใดถูก
count=0;
p=head;
while(p!=NULL)
{ count++;
p=p->next;
}
count=0;
p=head;
while(p->next!=NULL)
{ count++;
p=p->next;
}
count=0;
p=head;
while(p->next->value!=NULL)
{ count++;
p=p->next;
}
count=0;
p=head;
while(p==NULL)
{ count++;
p=p->next;
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ต้องการสร้าง structure เพื่อเก็บ polynomial เช่นเดียวกับการบ้าน ข้อใดถูก
struct record
{ int value;
struct record con;
struct record pow;
};
struct record
{ int value;
struct record *con;
struct record *pow;
};
struct record
{
struct record con;
int value;
struct record pow;
};
มีข้อถูกมากกว่า 1 ข้อ
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้า head ชี้ linked list โหนดแรก หากต้องการให้ head เลื่อนไปชี้โหนดลำดับที่ 3 ข้อใดถูก
head=head->next;
head=head->next->next;
head=head->next;
head=head->next;
มีข้อถูกมากกว่า 1 ข้อ
Similar Resources on Wayground
8 questions
G&N Unit 9

Quiz
•
University
10 questions
Introduction to HTML

Quiz
•
2nd Grade - University
10 questions
Quiz despre B+ Tree

Quiz
•
University
8 questions
Data Structure Quiz-1

Quiz
•
University
10 questions
Quis CSS W3Schools

Quiz
•
University
8 questions
FOS Ch.1 PArt 4 (QUIZ 4)

Quiz
•
University
10 questions
Technical Quiz DSA

Quiz
•
University
8 questions
Linked List MCQ

Quiz
•
University
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
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University