← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 18 · 40 questions
TalentJR

Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.

NameDateTime takenScore ___ / 40
  1. 1.⚙️ What number does this app show?
    let price = 95; // typed by the user
    let qty = 4; // typed by the user
    let total = price * qty;
    show(total);
  2. 2.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 370; // typed by the user
    line 2: let off = 40; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  3. 3.True or false: taking a photo is processing. (a) False (b) True
  4. 4.Which of these is an output? (a) typing your age (b) a pop-up message (c) checking a password (d) tapping a button
  5. 5.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 98; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  6. 6.🔍 Which is the odd one out? (a) speaking a command (b) a beep sound (c) typing your age (d) taking a photo
  7. 7.Which of these is processing? (a) a buzz (vibration) (b) a result on screen (c) a beep sound (d) adding up a bill
  8. 8.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 10; // typed by the user
    line 2: let qty = 4; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 2 (c) line 3 (d) line 1
  9. 9.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 14; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 3 (c) line 1
  10. 10.⚙️ In an app, is a pop-up message an input, processing or an output? (a) processing (b) input (c) output
  11. 11.🔍 Which is the odd one out? (a) speaking a command (b) typing your age (c) sorting the scores (d) tapping a button
  12. 12.⚙️ What number does this app show?
    let bill = 50; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  13. 13.⚙️ What number does this app show?
    let km = 12; // typed by the user
    let metres = km * 1000;
    show(metres);
  14. 14.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 15; // typed by the user
    line 2: let qty = 2; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 2 (b) line 1 (c) line 3 (d) line 4
  15. 15.Which of these is an input? (a) sorting the scores (b) a result on screen (c) a beep sound (d) tapping a button
  16. 16.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 123; // typed by the user
    line 2: let friends = 3; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 2 (c) line 3 (d) line 4
  17. 17.True or false: a beep sound is an output. (a) True (b) False
  18. 18.⚙️ In an app, is typing your age an input, processing or an output? (a) output (b) input (c) processing
  19. 19.🔍 Which is the odd one out? (a) a result on screen (b) speaking a command (c) taking a photo (d) tapping a button
  20. 20.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 213; // typed by the user
    line 2: let friends = 3; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 1 (c) line 3 (d) line 2
  21. 21.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 141; // typed by the user
    line 2: let friends = 3; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 4 (c) line 2 (d) line 3
  22. 22.True or false: tapping a button is an input. (a) True (b) False
  23. 23.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 140; // typed by the user
    line 2: let off = 10; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 2 (b) line 4 (c) line 3 (d) line 1
  24. 24.True or false: a pop-up message is an input. (a) True (b) False
  25. 25.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 160; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 2 (b) line 3 (c) line 4 (d) line 1
  26. 26.🔍 Which is the odd one out? (a) sorting the scores (b) tapping a button (c) checking a password (d) working out a tip
  27. 27.🔍 Which is the odd one out? (a) taking a photo (b) a beep sound (c) a buzz (vibration) (d) a pop-up message
  28. 28.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 270; // typed by the user
    line 2: let friends = 5; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 2 (b) line 1 (c) line 3 (d) line 4
  29. 29.True or false: speaking a command is processing. (a) True (b) False
  30. 30.⚙️ What number does this app show?
    let bill = 122; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  31. 31.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 170; // typed by the user
    line 2: let off = 30; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 1 (b) line 2 (c) line 3 (d) line 4
  32. 32.Which of these is an input? (a) taking a photo (b) checking a password (c) adding up a bill (d) a buzz (vibration)
  33. 33.True or false: adding up a bill is an output. (a) True (b) False
  34. 34.⚙️ What number does this app show?
    let price = 30; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  35. 35.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 220; // typed by the user
    line 2: let off = 30; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 1 (b) line 3 (c) line 2 (d) line 4
  36. 36.⚙️ In an app, is speaking a command an input, processing or an output? (a) output (b) input (c) processing
  37. 37.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 54; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  38. 38.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 25; // typed by the user
    line 2: let qty = 2; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 2 (c) line 3 (d) line 1
  39. 39.True or false: typing your age is an input. (a) True (b) False
  40. 40.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 140; // typed by the user
    line 2: let off = 50; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 2 (b) line 4 (c) line 3 (d) line 1

Answer key

  1. 380
  2. line 3
  3. False
  4. a pop-up message
  5. line 3
  6. a beep sound
  7. adding up a bill
  8. line 3
  9. line 2
  10. output
  11. sorting the scores
  12. 25
  13. 12000
  14. line 3
  15. tapping a button
  16. line 3
  17. True
  18. input
  19. a result on screen
  20. line 3
  21. line 3
  22. True
  23. line 3
  24. False
  25. line 3
  26. tapping a button
  27. taking a photo
  28. line 3
  29. False
  30. 61
  31. line 3
  32. taking a photo
  33. False
  34. 180
  35. line 3
  36. input
  37. line 3
  38. line 3
  39. True
  40. line 3

Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students