Search Header Logo

สอบปลายภาค สอวน.2/1

Authored by ลักขณา พรมพัตร

Computers

8th Grade

Used 5+ times

สอบปลายภาค สอวน.2/1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

กำหนด int a[5] = {15.5, 65.2, 45.8, 25.8, 10.4}; a[1] มีค่าเท่าไร

15.5

65.2

45.8

25.8

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

การประกาศตัวแปร Array คือ

ตัวแปร

ตัวแปรชุด

Array

คำสั่ง

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int score[ ] = { 70 , 82 ,63 , 89 , 98 ,100 }; จากโค้ด int หมายถึงตัวแปลชนิดใด

จำนวนเต็ม

ทศนิยมหลายตัวแหน่ง

ทศนิยม

ตัวอักษร

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1 #include

2 <stdio.h>

3 main(){

4 int score[ ] = { 70 , 82 ,63 , 89 , 98 ,100 };

5 printf("\n %d",score[0]);

6 printf("\n %d",score[1]);

7 printf("\n %d",score[2]);

8 printf("\n %d",score[3]);

9 printf("\n %d",score[4]);

10 printf("\n %d",score[5]);

11 }

จากโค้ด บรรทัดที่ 8 จะแสดงค่าใด

100

89

98

70

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ประกาศตัวแปร A : array[1…20] of integer : ตัวแปรอาร์เรย์ชุดที่ประกาศนี้สามารถเก็บค่าได้ทั้งหมดกี่ค่า

10 ค่า

20 ค่า

19 ค่า

21 ค่า

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

กำหนดให้ char s2[4] = {‘G’, ‘O’, ‘O’, ‘D’}; ดังนั้น s2 เป็นตัวแปรประเภทใด

ตัวอักขระ

ข้อความ

ตัวอักขระ และ ข้อความ ถูก

ไม่มีคำตอบที่ถูก

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดกล่าวถึงตัวแปรอาร์เรย์ได้ถูกต้อง

ตัวแปรเดียวเก็บข้อมูลได้หลายประเภท

ตัวแปรเดียวเก็บข้อมูลประเภทเดียวได้หลายชุด

ตัวแปรเดียวเก็บข้อมูลได้ชุดเดียว

ไม่มีคำตอบที่ถูกต้อง

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?