
แบบทดสอบ Fliped Classroom - if-else if
Authored by ลัทธพล สะและวงษ์
Computers
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดคือความหมายที่ถูกต้องที่สุด ของคำสั่ง if-else if
จะใช้ในกรณีที่มีหลายทางเลือก แต่ใช้ค่าของตัวแปรเพียงตัวเดียวมาตรวจสอบกับค่าคงที่ ถ้าตรวจสอบแล้วมีค่าตรงกับค่าคงที่ใดก็จะไปทำงานส่วนการทำงานของค่าคงที่นั้น
เป็นคำสั่งที่กำหนดการเลือกกระทำตามเงื่อนไข เมื่อเงื่อนไขเป็นจริง (True) ก็จะทำตามคำสั่งหลังเงื่อนไข หากเป็นเท็จก็จะทำตามคำสั่งหลัง else ตามคำสั่งที่กำหนดไว้
เป็นคำสั่งที่กำหนดการเลือกกระทำตามเงื่อนไขที่ 1 เมื่อเงื่อนไขเป็นจริง (True) ก็จะทำตามคำสั่งหลังเงื่อนไข หากเป็นเท็จก็จะทำตามคำสั่งหลัง else และจะมีการตรวจสอบเงื่อนไขที่ 2 และเงื่อนไขต่อ ๆ ไปอีก ถ้าเงื่อนไขเป็นจริงก็จะทำงานตามเงื่อนไขที่ได้กำหนดไว้
เป็นคำสั่งที่กำหนดการเลือกกระทำตามเงื่อนไข เมื่อเงื่อนไขเป็นจริง (True) ก็จะทำตามคำสั่ง หรือชุดคำสั่ง(Statements) แต่หากเงื่อนไขเป็นเท็จ (False) ก็จะไม่มีการทำงานใด ๆ
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดคือโครงสร้างของคำสั่ง if-else if
if(เงื่อนไข){
statement 1
statement 2
statement 3
}
if (Condition-1)
Statement ;
else if (Condition-2)
Statement;
else if (condition-N)
Statement;
if(Condition){
statement 1
else{
statement 1
}
if(Condition){
Statement 1
else-if{
Statement 2
}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่ง if-else กับ คำสั่ง if-else if แตกต่างกันอย่างไร
มีโครงสร้างแตกต่างกันอย่างมาก
โปรแกรมที่มีหลายๆเงื่อนไข สามารถใช้ได้ทั้ง 2 คำสั่ง
สามารถใช้ได้แค่เงื่อนไขเดียว
มีคำสั่งหนึ่ง ที่สามารถใช้ได้หลายเงื่อนไข
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค๊ดโปรแกรม หากใส่ score = 50 โปรแกรมจะแสดงผลอย่างไร
You r Pass!
You r Not!!!
Error!
ไม่สามารถแสดงผลได้
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากโค๊ดโปรแกรม ในไฮไลท์สีแดงเป็นคำสั่งที่ไว้ทำงานอะไร
แสดงเลขจำนวนเต็ม
แสดงตัวเลข 2 หลัก
แสดงตัวเลขทศนิยม 2 ตำแหน่ง
เป็นการรับค่าเลขทศนิยม 2 ตำแหน่ง
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากคลิปวีดีโอแรก ครูสอนเรื่องของการทำงานคำสั่งอะไร
if
if,if-elses
if-else if
Switch case
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
11 questions
แบบทดสอบ 10 ข้อ ใช้อันนี้
Quiz
•
9th - 12th Grade
10 questions
การดูแลรักษาและแก้ปัญหาคอมพิวเตอร์เบื้องต้น
Quiz
•
1st - 12th Grade
10 questions
Kidbright
Quiz
•
1st - 12th Grade
10 questions
Pretest CANVA
Quiz
•
10th - 12th Grade
10 questions
อินเทอร์เน็ต (INTERNET)
Quiz
•
KG - Professional Dev...
10 questions
Tinkercad ม.6
Quiz
•
9th - 12th Grade
10 questions
หน่วยที่ 3 การใช้อินเทอร์เน็ตค้นหาข้อมูล ป 6
Quiz
•
1st - 12th Grade
10 questions
Internet
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade