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コード
削除
自動保存:
を復元しますか?