Search Header Logo

Computer Programming Chapter 4 : Selection

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

Computers

University

Used 2+ times

Computer Programming Chapter 4 : Selection
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers