
การเขียนโปรแกรมแบบมีทางเลือก (if else if)
Authored by kruauy Chaisriha
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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))
Access all questions and much more by creating a free account
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
10 questions
การออกแบบและเทคโนโลยี ปลายภาค
Quiz
•
9th Grade
10 questions
หน่วยที่ 2 หลักการทำงานของคอมพิวเตอร์
Quiz
•
8th - 9th Grade
10 questions
Portfolio
Quiz
•
11th - 12th Grade
10 questions
รูปแบบการตัดสินใจของ AI
Quiz
•
7th - 9th Grade
10 questions
ตัวดำเนินการ
Quiz
•
11th Grade
10 questions
ระบบทางเทคโนโลยีที่ซับซ้อน ม.4
Quiz
•
10th Grade
10 questions
While
Quiz
•
9th - 12th Grade
10 questions
ข้อสอบวิทยาการคำนวณม.2
Quiz
•
11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade