การเขียนโปรแกรมแบบมีทางเลือก (if else if)

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
kruauy Chaisriha
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
การทำงานแบบทางเลือก (Selection) มีชื่อเรียกอีกอย่างหนึ่งว่าอย่างไร
การทำงานแบบสองทิศทาง
การทำงานแบบวนซ้ำ
การทำงานแบบตัดสินใจ
การทำงานตามลำดับ
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
การเขียนฟังก์ชันในลักษณะ if-else-if ใช้กับเงื่อนไขแบบใด
เงื่อนไขแบบทางเดียว
เงื่อนไขแบบสองทาง
เงื่อนไขแบบหลายทาง
ไม่มีข้อถูก
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
ถ้าหากต้องการตรวจสอบคะแนนที่อยู่ในตัวแปร mark ว่า ถ้าหากคะแนนเกิน 80 ให้แจ้ง ว่าได้ กรด A จะต้องเขียนอย่างไร
if((mark >= 80) && (mark <= 100) printf("A");
if(mark > 80); prinf("A");
if(80 < mark <= 100) printf("A");
if(mark > 80) printf('A');
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
คำสั่ง if (x >= 50) printf(“Pass”); else printf(“Fail”); เมื่อ x = 0 จะแสดงผลอย่างไร
แสดงข้อความ Pass แล้วขึ้นบรรทัดใหม่
แสดงข้อความ Fail แล้วขึ้นบรรทัดใหม่
แสดงข้อความ Pass
แสดงข้อความ Fail
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
ประโยคในข้อใดเป็นการตรวจสอบว่าตัวแปร x อยู่ในช่วงตั้ง แต่ 20 ถึง 30คำสั่ง ifลอย่างไร
if((x >= 20)||(x <= 30))
if((x >= 20) && (x <= 30))
if(20 < x <30)
if((x <= 10)&&(x >= 20))
Similar Resources on Wayground
10 questions
PROGRAMACION

Quiz
•
9th Grade - University
10 questions
Computational Thinking

Quiz
•
9th - 12th Grade
10 questions
หน่วยการเรียนรู้ที่ 1 การแก้ปัญหาโดยใช้เหตุผลเชิงตรรกะ ป6

Quiz
•
1st - 12th Grade
10 questions
แบบทดสอบหน่วยที่ 4 วิทยาการข้อมูล

Quiz
•
11th Grade
10 questions
รูปแบบการเชื่อมต่ออินเทอร์เน็ต

Quiz
•
9th - 12th Grade
10 questions
แบบทดสอบการดูแลรักษาเครื่องคอมพิวเตอร์

Quiz
•
12th Grade
10 questions
เทคโนโลยี

Quiz
•
12th Grade
10 questions
วิทยาการคำนวณ Pre-test

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade