พื้นฐานการเขียนโปรแกรมภาษา C

Quiz
•
Computers
•
2nd Grade
•
Hard

erawan dampupha
Used 62+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดประกาศตัวแปรได้ถูกต้อง
int x=y;
char x="A";
long x=500000;
float x=4;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
char name[20]; "จากข้อความดังกล่าว จะเขียนการรับค่าทางแป้นพิมพ์อย่างไร"
scanf("%s",name);
scanf("%s",&name);
scanf("%c",name);
scanf("%c",&name);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การประกาศชนิดตัวแปร int กับ long ต่างกันอย่างไร
int เป็นจำนวนเต็มที่มีค่าน้อยกว่า long
int เป็นจำนวนเต็ม long เป็นทศนิยม
int ใช้กับตัวอักษร long ใช้กับตัวเลข
เหมือนกันใช้เลือกใช้อะไรก็ได้
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int i=2;
while(i<=10)
{
printf("%d",i);
i=i+3;
}
จากโจทย์แสดงตัวเลขใด
2 5 8
2 5 8 11
2 5 7 9
2 5 7 9 12
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดกล่าวถึง else ไม่ถูกต้อง
เงื่อนไขสุดท้าย
เงื่อนไขที่เหลือที่ไม่จริงทั้งหมด
เงื่อนไขที่เป็นจริงเท่านั้น
เงื่อนไขปฏิเสธ
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดจับคู่ชนิดของตัวแปรและการเก็บข้อมูล ไม่ถูกต้อง
float กับ %f
int กับ %s
long กับ %ld
char กับ %c
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x=5;
do
{
printf("%d",&x);
x++;
}
while(x<=50);
จากโจทย์ผิดจุดใด
เปลี่ยน int เป็น float
บรรทัด while ต้องไม่มี ;
ตัด & บรรทัด printf
x++ ต้องไม่มี
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
บทบทพีทาโกรัส

Quiz
•
2nd Grade
20 questions
โปรแกรมMICRO SOFT POWERPOINT

Quiz
•
1st - 12th Grade
12 questions
ออกแบบเทคโนโลยี หน่วยที่ 1

Quiz
•
1st - 3rd Grade
15 questions
ตัวต้านทาน ตัวเก็บประจุ และไดโอด

Quiz
•
1st - 4th Grade
20 questions
การแก้ปัญหาด้วยภาษาไพทอน

Quiz
•
KG - Professional Dev...
10 questions
อุปกรณ์คอมพิวเตอร์ 2

Quiz
•
2nd Grade
20 questions
Graphic-Photoshop

Quiz
•
1st - 2nd Grade
10 questions
บทที่ 2 การเปลี่ยนแปลงของเทคโนโลยี

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
10 questions
Human-Environment Interactions Vocab Unit 1 Grade 2 Quiz

Quiz
•
2nd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
17 questions
Place value

Quiz
•
2nd Grade
20 questions
Liquid Measurement

Quiz
•
2nd - 5th Grade