Linked list
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
noi pc
Used 4+ times
FREE Resource
Enhance your content in a minute
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
10 questions
Riset Operasi
Quiz
•
University
10 questions
Database
Quiz
•
University
10 questions
Pengantar Coding
Quiz
•
University
10 questions
OS Essentials - Chapter 14 (The IT Professional)
Quiz
•
KG - University
10 questions
VR and AR in multimedia applications
Quiz
•
University
10 questions
Pengenalan ERP & Odoo
Quiz
•
University
10 questions
Google Sites
Quiz
•
University
10 questions
FST Class 2023- Quiz 2
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
