Computer Programming Chapter 4 : Selection

Computer Programming Chapter 4 : Selection

University

9 Qs

quiz-placeholder

Similar activities

excel2019

excel2019

University - Professional Development

12 Qs

การใช้เทคโนโลยีเพื่อการศึกษา

การใช้เทคโนโลยีเพื่อการศึกษา

University

14 Qs

แบบทดสอบรูปแบบการเชื่อมต่อเครือข่าย

แบบทดสอบรูปแบบการเชื่อมต่อเครือข่าย

10th Grade - University

10 Qs

วิชา การเขียนโปรแกรมคอมพิวเตอร์เบื้องต้น เรื่อง การวิเคราะห์งาน

วิชา การเขียนโปรแกรมคอมพิวเตอร์เบื้องต้น เรื่อง การวิเคราะห์งาน

University

10 Qs

Post-test lesson.3 -- Google forms

Post-test lesson.3 -- Google forms

7th Grade - Professional Development

12 Qs

Unit2 ระบบชำระเงิน

Unit2 ระบบชำระเงิน

University

10 Qs

ความรู้เบื้องต้นเกี่ยวกับ Flash

ความรู้เบื้องต้นเกี่ยวกับ Flash

12th Grade - University

10 Qs

โปรแกรมสำเร็จรูปทางสถิติบท 1

โปรแกรมสำเร็จรูปทางสถิติบท 1

University

10 Qs

Computer Programming Chapter 4 : Selection

Computer Programming Chapter 4 : Selection

Assessment

Quiz

Computers

University

Hard

Created by

วัชรศักดิ์ ศิริเสรีวรรณ

Used 2+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

ถ้าใส่ค่า age เท่ากับ 15 จะแสดงข้อความอะไร

Elder fare

No fare for kids

Normal fare

ไม่แสดงข้อความใดๆ

7.

MULTIPLE SELECT QUESTION

1 min • 2 pts

Media Image

ชุดคำสั่งนี้ พิมพ์ค่าอะไรออกมาบ้าง

Alpha

Beta

Charlie

Delta

Epsilon

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

ประพจน์ตรรกศาสตร์ต่อไปนี้ จะเขียนเป็นภาษา 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

Media Image

กำหนดเงื่อนไขและการแสดงข้อความเป็นดังตาราง ชุดคำสั่งข้อใด ตรงกับตารางนี้ที่สุด

Media Image
Media Image
Media Image
Media Image