1) Nuna has written the following code to display a menu for a computer game below. She wants to show the menu a number of times throughout the game. What would be the best way for ther to do this? a) Copy and paste the code where it is needed b) Place the code into a loop c) Place the code within a procedure d) Place the code within a selection statement 2) Which of the following code makes use of a function? a) total = price * quantity b) name = "John" c) While Grade != 5 d) name = input("Enter your name") 3) What is the difference between a function and procedure? a) Functions are for maths and Procedures are for strings. b) Functions return values, Procedures may or may not return a value. c) Functions carry out a predefined task, Procedures are tasks you set yourself. d) Functions always return a value, Procedures do not return values. 4) What will this pseudocode output? a) Nothing b) 158 c) 3524 d) 815 5) What will this pseudocode output? a) 68 b) 2435 c) Nothing d) 86 6) Why do functions use parameters? a) To enable the function to utilise variable that are passed to it b) To enable the program to use translators c) To minimise naming errors d) To allow it to return values
0%
GCSE.Unit2.Subroutines
แชร์
แชร์
แชร์
โดย
Mrszhong
KS4
KS5
Y9
Y10
Y11
Computing
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม