Search Header Logo

แบบทดสอบเรื่องโครงสร้างภาษาซี ม.6/2

Authored by Terdphong Pikulthong

others

Used 2+ times

แบบทดสอบเรื่องโครงสร้างภาษาซี ม.6/2
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
include
var
printf

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งต่าง ๆ ของโปรแกรมภาษาซีจะต้องอยู่ภายในเครื่องหมายใด

( )
[ ]
{ }
/* */

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

printf("THAILND");
printf("12345");
printf("5 + 2 = %d",5+2);
printf('Kruterd So cute');

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

scanf("%s",&x)
scanf("%d",&x);
scanf("%d",x);
scanf("%d,x");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

2.31234
23.1234
23.12
2.31

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

x := 8;
x = 8+2;
x = 2-8;
x = 31;

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?