Search Header Logo

แบบทดสอบ

Authored by ศกุนตลา เลิศประพันธ์

Computers

University

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

ข้อใดเป็นคำสั่งที่ใช้ในการแสดงผลข้อความในภาษา C

print()
console.log()
printf()
echo()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งใดใช้รับค่าจากผู้ใช้ทางคีย์บอร์ด

scanf()
gets()
input()
cin >>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ตัวดำเนินการใดใช้เปรียบเทียบค่าของตัวแปรสองตัวใน C

=
==
===
!=

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งเงื่อนไขที่ถูกต้องในภาษา C คือข้อใด

if x > 10 then
if (x > 10) {}
if x > 10 {}
if (x > 10) then {}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดเป็นโครงสร้างของ Loop แบบ for ในภาษา C

for (i = 0; i < 10; i++) {}
for i = 0 to 10 {}
loop (i = 0; i < 10; i++) {}
repeat (i = 0; i < 10; i++) {}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งใดใช้ประกาศฟังก์ชันในภาษา C ได้ถูกต้อง

void function() {}
function void() {}
def function() {}
function = void() {}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ฟังก์ชัน main() ใน C ต้องมีค่าการคืนกลับ (return type) เป็นอะไร

void
int
char
float

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?