
แบบทดสอบ 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
10 questions
แบบทดสอบ เรื่อง พอร์ตอินพุตเอาท์พุต
Quiz
•
9th - 12th Grade
10 questions
แบบทดสอบ หนังสือราชการ
Quiz
•
12th Grade
10 questions
1.แนวคิดเชิงคำนวณ
Quiz
•
12th Grade
10 questions
ความรู้เบื้องต้นเกี่ยวกับกราฟิกดีไซน์
Quiz
•
10th - 12th Grade
10 questions
แบบทดสอบก่อนเรียน วิทยาการคำนวณ ม.5
Quiz
•
10th - 12th Grade
10 questions
โครงงานคอมพิวเตอร์
Quiz
•
7th - 12th Grade
10 questions
แบบทดสอบก่อนเรียน การสร้างภาพเคลื่อนไหว ครั้งที่5
Quiz
•
10th - 12th Grade
10 questions
คำถามเกี่ยวกับสื่อการเรียนการสอนด้วยเทคโนโลยี AR
Quiz
•
12th Grade - University
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
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade