

เรื่องที่ 6 คำสั่งการเขียนโปรแกรมแบบมีทางเลือก
Presentation
•
Computers
•
9th - 12th Grade
•
Hard
ธีรภัทร พาทอง
Used 9+ times
FREE Resource
22 Slides • 10 Questions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Multiple Choice
1. ข้อใดคือความหมายที่ถูกต้องของตัวดำเนินการเชิงสัมพันธ์ `!=` ?
เท่ากัน หรือไม่
ไม่เท่ากัน หรือไม่
มากกว่าหรือไม่
น้อยกว่าหรือเท่ากับ หรือไม่
24
Multiple Choice
2. จากตารางค่าความจริง (Truth Table) ถ้า A เป็น `False` และ B เป็น `True` ผลลัพธ์ของ `A and B` คืออะไร?
False
อาจจะเป็น True หรือ False ก็ได้
True
ข้อมูลไม่เพียงพอ
25
Multiple Choice
3. จากโค้ดต่อไปนี้ ผลลัพธ์คืออะไร?
A
B
C
ไม่มีผลลัพธ์แสดง
26
Multiple Choice
4. คำสั่งใดที่เหมาะสมที่สุดในการสร้างโปรแกรมตรวจสอบคะแนนเพื่อตัดเกรด ซึ่งมีหลายเงื่อนไข (เกรด 4, 3, 2, 1, 0)?
IF-ELIF-ELSE
IF-ELSE
IF
ใช้ได้ทุกข้อ
27
Multiple Choice
5. ถ้าหากผลการเปรียบเทียบเงื่อนไขใน `if` เป็น `False` โปรแกรมจะทำอะไรต่อไปในโครงสร้าง `IF-ELSE`?
ทำงานตามคำสั่งในบล็อก if
จบการทำงานของโปรแกรมทันที
ทำงานตามคำสั่งในบล็อก else
กลับไปตรวจสอบเงื่อนไข if อีกครั้ง
28
Multiple Choice
ข้อใดคือผลลัพธ์ของ `True or False`?
False
True
0
1
29
Multiple Choice
7. จากโค้ดต่อไปนี้ จะเกิดอะไรขึ้น?
แสดงผล 'Grade 3'
แสดงผล 'Grade 4'
ไม่แสดงผลอะไรเลย
แสดงผลทั้ง 'Grade 4' และ 'Grade 3'
30
Multiple Choice
8. ประโยคเงื่อนไข `A >= 1 and A <= 10` จะเป็นจริงเมื่อใด?
เมื่อ A มีค่าเป็น 11
เมื่อ A มีค่าเป็น 1 หรือ 10 เท่านั้น
เมื่อ A มีค่าเป็น 0
เมื่อ A มีค่าอยู่ระหว่าง 1 ถึง 10 (รวม 1 และ 10)
31
Multiple Choice
9. สัญลักษณ์ Flowchart รูปสี่เหลี่ยมข้าวหลามตัด (Decision) ใช้แทนส่วนใดของโปรแกรม?
การประมวลผล (Process)
การแสดงผล (Output)
การตัดสินใจตามเงื่อนไข (Decision)
การรับข้อมูลเข้า (Input)
32
Multiple Choice
10. ตามเนื้อหาในสไลด์ ค่าใดบ้างที่เทียบเท่ากับ `True`?
1, HIGH, TRUE
0, HIGH, TRUE
1, LOW, FALSE
0, LOW, FALSE
Show answer
Auto Play
Slide 1 / 32
SLIDE
Similar Resources on Wayground
25 questions
วัสดุเชื้อเพลิง
Presentation
•
KG - University
23 questions
ปลดล็อคบัญชีการเงิน
Presentation
•
10th - 12th Grade
27 questions
ระบบระบายความร้อนรถยนต์
Presentation
•
KG - University
19 questions
หลักการออกแบบโปสเตอร์
Presentation
•
KG
28 questions
โครงงานกับการแก้ปัญหา
Presentation
•
11th Grade
30 questions
ตัวอย่างของการสร้างสรรค์ภูมิปัญญาไทยในประวัติศาสตร์ Ep.2
Presentation
•
10th - 11th Grade
24 questions
การวิเคราะห์ข้อมูลทางสถิติ
Presentation
•
KG - University
22 questions
What's the matter? Giving advices
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade