
การเขียนโปรแกรมแบบมีทางเลือก (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
ทบทวน Dreamweaver CS6
Quiz
•
6th Grade - University
10 questions
กลโกงมิจฉาชีพ
Quiz
•
10th Grade
10 questions
Pre-การออกแบบและเทคโนโลยี
Quiz
•
10th Grade
10 questions
Python If Statements - and or not
Quiz
•
11th Grade
10 questions
แบบทดสอบหลังเรียนหน่วยที่ 2 กระบวนการออกแบบเชิงวิศวกรรม
Quiz
•
9th - 12th Grade
10 questions
แป้นพิมพ์/แผงแป้นอักขระ/Keyboard
Quiz
•
9th Grade
10 questions
อัลกอริทึมเบื้องต้น
Quiz
•
9th Grade
10 questions
ม.3 ออกแบบ ก่อนเรียน หน่วยที่ 2 เทคโนโลยีกับการพัฒนางานอาชีพ
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade