Quiz ADT linked list 20-12-66
Quiz
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
noi pc
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
จากส่วนของโปรแกรมที่กำหนดให้ จงหาค่า Big O
O(1)
O(n)
O(n2)
O(logn)
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
จาก loop ที่กำหนดให้ มี Big O เท่าใด
O(1)
O(n)
O(n2)
O(n3)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้า head เป็น pointer ชี้ที่ linked list และ data เป็นข้อมูลที่จะทำการ insert
ข้อใดเป็นเงื่อนไขเป็นเงื่อนไขที่จะ insert data ด้านหน้า linked list
if(data < head->value)
if(data > head->value)
if(data < head)
if(data > head->next)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
กำหนด p=head;
while(p->next !=NULL)
p=p->next;
เมื่อ loop while ทำงานสิ้นสุดลง ค่า p จะมีค่าเท่าใด
19
NULL
2000
1080
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
main โปรแกรมต้องการเรียกใช้ function insert ดังนี้
struct record *head=NULL;
cin >> data;
head=insert(data, head);
ในส่วนของ function insert ตรงหัวฟังก์ชันควรเขียนโปรแกรมอย่างไร
struct record *insert(head, data)
struct record *insert(struct record *head, int data)
struct record *insert(int data, struct record *head)
struct record insert(int data, struct record *head)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
กำหนด loop ดังนี้
temp=head;
while(temp!=NULL)
{ cout << temp->value;
temp=temp->next->next;
}
ผลลัพธ์ที่แสดงบนจอภาพคืออะไร
4 5 10 15 20
4 10 20
5 15
4 10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
เมนโปรแกรม เรียกใช้งาน function print()
int main()
{
struct record *head=NULL;
.......
print(head);
บริเวณหัวฟังก์ชัน print ควรเขียนอย่างไร
void print(struct record head)
void print(struct record *head)
struct record *print(head)
struct record print(struct record *head)
Create a free account and access millions of resources
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
15 questions
Ms Word
Quiz
•
1st - 3rd Grade
10 questions
How well do you know ZOOM?
Quiz
•
KG - University
10 questions
البرمجة بلغة الفيجول بيسك
Quiz
•
1st - 3rd Grade
15 questions
10-сынып (HTML-1)
Quiz
•
1st Grade
10 questions
印前製程丙檢第四題
Quiz
•
1st Grade
9 questions
python基础知识练习
Quiz
•
1st Grade
14 questions
Основы HTML
Quiz
•
1st - 11th Grade
15 questions
Adobe Photoshop
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
1st - 3rd Grade
10 questions
Christmas Characters
Quiz
•
KG - 3rd Grade
10 questions
Exploring Christmas Math Word Problems
Interactive video
•
1st - 5th Grade
16 questions
Christmas 1st grade
Quiz
•
1st Grade
