
เลขฐานและอาเรย์
Authored by ลักขณา พรมพัตร
Computers
8th Grade
Used 2+ times

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
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
ข้อใดเป็นการประกาศตัวแปรอาร์เรย์ 1 มิติที่ถูกต้อง
int a{5};
int a[5];
int a{5}
int a[5]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การประกาศตัวแปร Array คือ
ตัวแปร
ตัวแปรชุด
Array
คำสั่ง
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int score[ ] = { 70 , 82 ,63 , 89 , 98 ,100 }; จากโค้ด int หมายถึงตัวแปลชนิดใด
จำนวนเต็ม
ทศนิยมหลายตัวแหน่ง
ทศนิยม
ตัวอักษร
5.
MULTIPLE CHOICE QUESTION
30 sec • 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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จากตัวแปล Array ถ้าจะแสดงค่าคะแนนของนักเรียนคนที่ 5 ซึ่งก็จะมี index ลำดับที่เท่าไหร่
3
4
5
6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ประกาศตัวแปร A : array[1…20] of integer : ตัวแปรอาร์เรย์ชุดที่ประกาศนี้สามารถเก็บค่าได้ทั้งหมดกี่ค่า
10 ค่า
20 ค่า
19 ค่า
21 ค่า
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?