
Computer Programming Chapter 4 : Selection

Quiz
•
Computers
•
University
•
Hard
วัชรศักดิ์ ศิริเสรีวรรณ
Used 2+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
ข้อใดเป็นชนิดของ Control Structure ในการเขียนโปรแกรม
Automated Control Structure
Repetitive Control Structure
Sequential Control Structure
Selection Control Structure
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
ข้อใดจริงเกี่ยวกับ ประพจน์ทางตรรกศาสตร์ ในภาษา Python
ให้ผลลัพธ์เป็นค่าความจริง True หรือ False
ใช้คำว่า true หรือ false หรือ TRUE หรือ FALSE แทนได้
ส่วนใหญ่ได้จากผลลัพธ์การเปรียบเทียบผ่านตัวดำเนินการเปรียบเทียบ
ไม่สามารถใช้ค่าที่ได้จากฟังก์ชันต่างๆแทนได้
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
ประโยคเขียนด้วยภาษา Python ข้อใด ให้ค่าความจริงเป็น False เมื่อกำหนดให้ x = 0
x = 3
x >= 1
x% 3 != 0
x * 3 < 3
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
ถ้าต้องการตรวจสอบว่า ตัวแปร radius เก็บข้อมูลชนิด integer หรือไม่ ต้องใช้คำสั่งในข้อใด
type(radius)=='int'
isinteger(radius)
isnumeric(radius)
isinstance(radius, int)
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
keyword ใดบ้างที่ต้องตามด้วย Boolean expression
if
elif
else
is
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าใส่ค่า age เท่ากับ 15 จะแสดงข้อความอะไร
Elder fare
No fare for kids
Normal fare
ไม่แสดงข้อความใดๆ
7.
MULTIPLE SELECT QUESTION
1 min • 2 pts
ชุดคำสั่งนี้ พิมพ์ค่าอะไรออกมาบ้าง
Alpha
Beta
Charlie
Delta
Epsilon
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ประพจน์ตรรกศาสตร์ต่อไปนี้ จะเขียนเป็นภาษา Python ได้อย่างไร
math.mod(32,3) == 3 and not(12/5 > 3)
(32%3 == 3) ⋀ ∼(12/5 > 3)
(32 mod 3 = 3) and not (12/5 >3)
(32%3 == 3) and not(12/5 > 3)
9.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
กำหนดเงื่อนไขและการแสดงข้อความเป็นดังตาราง ชุดคำสั่งข้อใด ตรงกับตารางนี้ที่สุด
Similar Resources on Wayground
10 questions
ดิจิทัลคอมเมิร์ซ (Digital Commerce)

Quiz
•
University
10 questions
องค์ประกอบศิลป์

Quiz
•
University
13 questions
หน่วยที่4 ธุรกรรมการเงินดิจิทัล

Quiz
•
University
10 questions
Pre-Test IoT

Quiz
•
University
12 questions
แบบทดสอบวิทยาการคอมพิวเตอร์

Quiz
•
12th Grade - University
10 questions
ข้อสอบ Pretest: การวิเคราะห์ข้อมูล

Quiz
•
University
10 questions
แบบทดสอบก่อนเรียน

Quiz
•
6th Grade - University
10 questions
หน่วยที่ 3 IOT

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University