Search Header Logo

การรับและพิมพ์ข้อมูลเบื้องต้น

Authored by saksit loetlathong

Computers

4th Grade

Used 2+ times

การรับและพิมพ์ข้อมูลเบื้องต้น
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

int

float

char

long int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

จากคำสั่ง   printf("Hello Program C");  ได้ผลลัพธ์ข้อใด

Hello  C

Hello Program C

print Hello Program C

Program C

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

รหัสควบคุมการแสดงผล  ที่มีความหมาย   “ขึ้นบรรทัดใหม่ “ คือข้อใด

\n

\t

\r

\f

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int speed;
printf("Enter wind speed : ");

scanf("%d",&speed);

ตัวแปรมีชื่อว่าอะไร?

int

speed;

speed

wind

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int speed;
printf("Enter wind speed : ");

scanf("%d",&speed);

รหัสควบคุมรูปแบบการแสดงผลค่าตัวแปรออกทางจอภาพ เป็นชนิดใด

ทศนิยม

อักขระ 1 ตัว

ข้อความ

จำนวนเต็ม

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่ง scanf("%c",&answer); หมายถึงข้อใด

รับอักขระเข้ามาเก็บไว้ในตัวแปร answer

รับข้อความเข้ามาเก็บไว้ในตัวแปร answer

รับจำนวนเต็มเข้ามาเก็บไว้ในตัวแปร answer

รับจำนวนทศนิยมเข้ามาเก็บไว้ในตัวแปร answer

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดใช้ฟังก์ชั่น scanf()   ได้ถูกต้อง

scanf(“%d\n”, x)

scanf(“%d”, &x);

scanf(“%d”, x);

scanf(“%d, 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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?