Search Header Logo

แบบทดสอบ C#

Authored by Arkom Rungsawang

Education

9th - 12th Grade

Used 3+ times

แบบทดสอบ C#
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# ต้องใช้เครื่องหมายใดเพื่อเป็นตัวแสดงจุดสิ้นสุดของแต่ละคำสั่ง

ก. ( ; )

ข. ( # )

ค. ( . )

ง. ( : )

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือเครื่องหมายคำอธิบาย (Comment) ในภาษา C#

ก. ( # )

ข. ( // )

ค. ( . )

ง. ( : )

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

จงโค้ด Console.WriteLine(100+100); ข้อใดคือผลลัพธ์ที่ถูกต้อง

ก. "100"

ข. "200"

ค. "100100"

ง. "100+100"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

จากโค้ด Console.Write("Hello"); ข้อใดคือผลลัพธ์ที่ถูกต้อง

ก. "Hello"

ข. " Hello"

ค. "Hello "

ง. " Hello "

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือกฎสำหรับการตั้งชื่อของตัวแปรในการเขียนโปรแกรมภาษา C#

ก. ขึ้นต้นด้วยตัวอักษร A-Z หรือ a-z หรือ _ (underline) หรือ @ เท่านั้น

ข. สามารถใช้ตัวเลข 0-9 ต่อท้ายหรือระหว่างตัวอักษร A-Z หรือ a-zได้

ค. ใช้ _ (underline) ต่อท้ายหรือระหว่างตัวอักษร A-Z หรือ a-z ได้

ง. ถูกทุกข้อ

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือหลักการในการประกาศตัวแปร

ก. <ชนิดข้อมูล> <ชื่อตัวแปร> ;

ข. <ค่าข้อมูล> = <ชนิดข้อมูล>+<ชื่อตัวแปร>;

ค. <ชนิดข้อมูล> <ชื่อตัวแปร> = <ค่าข้อมูล>;

ง. ก และ ค ถูกต้อง

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

หากต้องการให้ผลลัพธ์แสดงผลเป็นข้อมูลเลขทศนิยม ควรเลือกใช้ตัวแปรชนิดใด

ก. string

ข. short

ค. float

ง. int

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?