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
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
חידון
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?