Search Header Logo

cp06-01-1D-Array

Authored by Panupong Sornkhom

Computers

University

Used 30+ times

cp06-01-1D-Array
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 SELECT QUESTION

45 sec • 1 pt

ข้อใดจำเป็นต้องใช้ตัวแปรอะเรย์ 1 มิติ

หาค่าเฉลี่ยของข้อมูล N ตัว

หาค่าสูงสุด,ต่ำสุดของข้อมูล N ตัว

เรียงลำดับข้อมูล N ตัว

ค้นหาข้อมูลว่าอยู่ในกลุ่มของข้อมูล N ตัวหรือไม่

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

การประกาศตัวแปร array ในข้อใดถูกต้อง

float a[8] = { 5.0, 2.5, 3.88, 7.52};

int b[6];

int c[ ] = {1, 2, 3, 4, 5};

float d[ ];

3.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

กำหนด a[] = {7, 3, 2, 5, 6}; ค่าของ a[2] คือ

(a)  

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

กำหนด a[ ] = {2, 5, 3, 9}; ข้อใดบ้างถูกต้อง

a[0] เป็นสมาชิกของอะเรย์ตัวแรกสุด

a[1] มีค่าเท่ากับ 2

a[2] มีค่าเท่ากับ 3

สมาชิกตัวสุดท้ายของอะเรย์ คือ a[4]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

กำหนด int a[5] = {2, 5, 3, 7 ,1}; ถ้า int มีขนาด 4 byte แล้ว a จะมีขนาดกี่ byte

0

4

5

20

หาค่าไม่ได้

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

กำหนด int a[10] = {2, 5, 3, 7 ,1}; ถ้า int มีขนาด 4 byte แล้ว a จะมีขนาดกี่ byte

0

4

10

20

40

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

กำหนด double d[5]; ถ้า double มีขนาด 8 byte แล้ว d จะมีขนาดกี่ byte

0

4

10

20

40

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?