Search Header Logo

แบบทดสอบเรื่องโครงสร้างภาษาซีเบื้องต้น

Authored by Terdphong Pikulthong

Other

12th Grade

Used 14+ 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

1 min • 1 pt

ถ้าหากตัวแปร a เป็นตัวแปรประเภท int การกำหนดค่าให้กับตัวแปร a ข้อใดไม่ถูกต้อง

a = 20;

a = 2+8;

a = 3-1;

a := 5;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

scanf("%d,x");

scanf("%d",y);

scanf("%d",&z);

scanf("%d\n",a)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

ข้อใดที่ไม่จำเป็นต้องมีในการเขียนโปรแกรม

main( )

{ }

#include

#define

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

การใช้ฟังก์ชั่น printf() ข้อใดไม่ถูกต้อง

printf("22900");

printf("%d",2);

printf(1 + 1 = %d,2);

printf("KRUTERDsoCute");

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

คำว่าอะไรที่ทุกโปรแกรมในภาษาซีจะต้องมี

printf

var

main

int

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

ถ้าหาก x มีค่าเท่ากับ 12.3456 และมีการทำคำสั่งต่อไปนี้ printf("%.4f",x); ผลลัพธ์ที่ได้จะเท่ากับข้อใด

12.345600

12.3456

12.34

1.234

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

ข้อใดใช้ฟังก์ชั่น printf() ในการแสดงผลบวกของตัวแปร x กับตัวแปร y ได้ถูกต้อง

printf("x + y = ", x+y);

printf("x + y = x+y\n", x, y, x+y);

printf("x + y = %d", %d);

printf("%d + %d = %d", x, y, x+y);

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?