จากส่วนของโปรแกรมที่กำหนดให้ จงหาค่า Big O
Quiz ADT linked list 20-12-66

Quiz
•
Computers
•
1st Grade
•
Hard
noi pc
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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
Similar Resources on Quizizz
11 questions
html

Quiz
•
1st - 5th Grade
15 questions
HTML

Quiz
•
1st Grade
10 questions
Информатика 11 сынып HTML

Quiz
•
1st - 12th Grade
10 questions
JavaScript: Coerción y Tipos de Datos

Quiz
•
1st - 10th Grade
10 questions
Database Fundamentals

Quiz
•
KG - University
15 questions
Javascript-react-redux

Quiz
•
1st - 5th Grade
15 questions
Praca z rejestrem systemowym Windows

Quiz
•
1st - 5th Grade
5 questions
ทบทวน list doubly stack

Quiz
•
1st Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade