Search Header Logo

แบบทดสอบภาษาซี

Authored by คุณัญญา ภิรมย์กล่ำ

Computers

Professional Development

Used 1+ times

แบบทดสอบภาษาซี
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ประโยคคำสั่งต่าง ๆ ในภาษาซี ต้องปิดท้ายแต่ละคำสั่งด้วยเครื่องหมายใด

เครื่องหมาย .

เครื่องหมาย ,

เครื่องหมาย ;


เครื่องหมาย :

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใดต่อไปนี้ คือคำตอบของค่า y จากนิพจน์ที่กำหนดให้

int x, y;

x = 8;

y = ++x;

printf(“%d”,y);

7

8

9

10

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ถ้าหากต้องการให้ฟังก์ชั่น printf() แสดงผลเป็นตัวทศนิยมจะต้องใช้รหัสควบคุมตัวใด

%c

%f

%x

%d

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ถ้าหากต้องการให้ฟังก์ชั่น printf() แสดงผลเป็นตัวเลขจำนวนเต็มจะต้องใช้รหัสควบคุมตัวใด

%d

#include

%f

%x

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ถ้านักเรียนต้องการเพิ่มค่าตัวแปรทีละ 1 ค่าควรใช้คำสั่งในข้อใด


i--


i++


-+i

+-i

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใดต่อไปนี้ คือ จำนวนรอบของการทำงานจากชุดคำสั่งที่กำหนดให้

int x=5;

while(x > 5)

printf(“%d”,x);

5 รอบ

10 รอบ

0 รอบ


ไม่มีข้อใดถูก

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

printf("THAILAND");

printf("12345");

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

printf('COMPUTER');

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?