
ภาษา C เรื่องการเลือกทำตามเงื่อนไข

Quiz
•
Computers
•
3rd Grade
•
Hard
นายอธิเจตน์ ทิวะสิงห์
Used 23+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ตัวดำเนินการใดไม่ใช่ตัวดำเนินการทางตรรกะ
>
=
>=
!=
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การเลือกทำแบบทางเดียวควรใช้คำสั่งใด
if ไม่มี else
if แบบมี else
if…else และ switch
switch
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การเขียนประโยคต่อไปนี้ไม่สามารถใช้กำหนดเงื่อนไขให้กับ if ได้
m=4.5
x == 8
‘A’ > ‘B’
C > D
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ประโยคในข้อใด เป็นการตรวจสอบว่าตัวแปร x อยู่ในช่วงตั้งแต่ 20 ถึง 30
if((x >= 20) && (x <= 30))
if((x >= 20) | | (x <= 30))
if(20 < x < 30)
if((x <= 10) && (x >= 20))
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ค่าในข้อใดไม่สามารถใช้เป็นค่าหลัง case ในคำสั่ง switch…case ได้
7
4.5
‘7’
‘A’
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าหากในคำสั่ง switch…case ไม่มี break; เมื่อโปรแกรมทำงานจะเกิดอะไรขึ้น
โปรแกรมตรวจสอบ case ถัดไป
โปรแกรมแจ้งข้อผิดพลาด
กระโดดไปทำคำสั่งหลัง default
กระโดดออกนอก switch…case
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าหากใช้เครื่องหมาย ; หลังตัวตรวจสอบเงื่อนไขของ if จะเกิดอะไรขึ้น
โปรแกรมจะแจ้งข้อผิดพลาด
โปรแกรมมองว่าเป็นสเตตเมนต์ว่าง
ไม่สามารถคอมไพล์ได้
ไม่มีข้อถูก
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Pre-test M.3

Quiz
•
3rd Grade
10 questions
สัญลักษณ์ผังงาน Flowchart

Quiz
•
1st - 5th Grade
10 questions
วิทยาการคำนวณ - ป.5-ครั้งที่ 1

Quiz
•
1st - 5th Grade
10 questions
รู้จักโปรแกรม Scratch เบื้องต้น

Quiz
•
1st - 5th Grade
10 questions
หน่วยการเรียนรู้ที่ 1 การแก้ปัญหาโดยใช้เหตุผลเชิงตรรกะ ป6

Quiz
•
1st - 12th Grade
10 questions
บทที่ 5 การใช้งานซอฟต์แวร์ ก่อน/หลัง

Quiz
•
3rd Grade
12 questions
chidchanoK

Quiz
•
1st - 5th Grade
10 questions
อัลกอริทึม (Algorithm)

Quiz
•
3rd Grade
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
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade
20 questions
4 Types of Sentences

Quiz
•
3rd - 5th Grade
10 questions
Place Value

Quiz
•
3rd Grade
17 questions
Multiplication facts

Quiz
•
3rd Grade
12 questions
Damon and Pythias

Quiz
•
3rd Grade
20 questions
Subject and Predicate Review

Quiz
•
3rd Grade
20 questions
Division Facts

Quiz
•
3rd Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade