1) Which of the following is an efficient way of holding more than one item of data of the same data type in a program? a) A variable b) A constant c) An array d) A subroutine 2) Erin wishes to store her last four 100 metre sprint times in an array. What data type should the array sotre? a) String b) Boolean c) Float d) Integer 3) What is an input ( select al correct answers.) a) gives an output b) gives back the statement given c) opposite to output d) accepts data from the user 4) What will be the result of running the code in the picture? a) 1 b) 3 c) 6 d) 8 5) Which of the following special characters are used when creating an array? a) : : b) { } c) [ ] d) ( ) 6) What is the length of the array [2, -5, 8, -15, 10] a) 5 b) 4 c) 13 d) 9 7) What is an Array a) a data structure that allows you to hold a value, all the same type, with one name b) a data structure that allows you to hold several values, all have different types, with one name c) a data structure that allows you to hold several values, all the same type, with one name d) a data structure that allows you to hold several values, all the same type, with multiple names 8) What would the following array calls would return "x" from the following array: letters = [["y", "w"], ["x", "z"], ["a", "b"]] a) letters[1][0] b) letters[2][1] c) lettersy[2][0] d) letters[1][1]
0%
GCSE.Unit2.Arrays
แชร์
แชร์
แชร์
โดย
Mrszhong
KS4
Y9
Y10
Y11
Computing
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม