Search Header Logo

แบบทดสอบก่อนเรียน การเขียนโปรแกรม

Authored by ครูกนกวรรณ สุวรรณกูฏ

Education

12th Grade

Used 16+ times

แบบทดสอบก่อนเรียน การเขียนโปรแกรม
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือเครื่องหมายลงท้ายคำสั่งต่างๆ ในภาษาซี

; (semi-colon)

: (colon)

# (directive)

, (comma)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

การใช้คำสั่ง printf() ข้อใดไม่ถูกต้อง

printf("THAILND");

printf("5 + 2 = %d",5+2);

printf('%f',x);

printf("12345");

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใดใช้คำสั่ง scanf() ได้ถูกต้อง

scanf(%d,&x);

scanf("%d",&x);

scanf(‘%d’,&x);

scanf("%d,&x");

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

23.1234

2.3123

23.12

2.31

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใดคือคำตอบที่ถูกต้องที่สุด จาก Code ที่ว่างไว้ printf(“Price =........ , num =........”,18, 3.48);

%d %c

%.2f %d

%d %2.f

%.2f %c

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใดคือคำตอบที่ถูกต้องที่สุด จาก Code ที่ว่างไว้ printf(“Point =........ , Grade =........”,50.4, ‘F’);

%d %c

%.2f %d

%d %2.f

%f %c

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใดประกาศตัวแปรถูกต้อง

float a = 5.144;

float b = 3;

int i = ‘6’;

int j = 100:

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?