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

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

2nd Grade

15 Qs

quiz-placeholder

Similar activities

บทที่ 1 เทคโนโลยีเปลี่ยนแปลงโลก

บทที่ 1 เทคโนโลยีเปลี่ยนแปลงโลก

2nd Grade

10 Qs

ฐานข้อมูลเบื้องต้น

ฐานข้อมูลเบื้องต้น

2nd Grade

10 Qs

บทที่ 3 ฮาร์ดแวร์คอมพิวเตอร์

บทที่ 3 ฮาร์ดแวร์คอมพิวเตอร์

KG - 2nd Grade

15 Qs

การจัดสเปคคอมพิวเตอร์

การจัดสเปคคอมพิวเตอร์

1st - 3rd Grade

20 Qs

สอบ ป.2

สอบ ป.2

1st - 2nd Grade

10 Qs

การหางานอาชีพ ชุดที่1

การหางานอาชีพ ชุดที่1

KG - 11th Grade

10 Qs

วิทยาการคำนวน ม.2

วิทยาการคำนวน ม.2

1st - 5th Grade

10 Qs

Excel

Excel

1st - 3rd Grade

10 Qs

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

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

Assessment

Quiz

Computers

2nd Grade

Practice Problem

Hard

Created by

erawan dampupha

Used 62+ times

FREE Resource

AI

Enhance your content in a minute

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

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++ ต้องไม่มี

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?