← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 262 · 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.⚙️ In an app, is speaking a command an input, processing or an output? (a) processing (b) input (c) output
  2. 2.⚙️ In an app, is a beep sound an input, processing or an output? (a) input (b) processing (c) output
  3. 3.⚙️ In an app, is checking a password an input, processing or an output? (a) output (b) input (c) processing
  4. 4.Which of these is an output? (a) a beep sound (b) adding up a bill (c) speaking a command (d) taking a photo
  5. 5.⚙️ In an app, is a pop-up message an input, processing or an output? (a) output (b) input (c) processing
  6. 6.⚙️ In an app, is typing your age an input, processing or an output? (a) processing (b) output (c) input
  7. 7.Which of these is an output? (a) speaking a command (b) working out a tip (c) typing your age (d) a pop-up message
  8. 8.🔍 Which is the odd one out? (a) taking a photo (b) adding up a bill (c) working out a tip (d) sorting the scores
  9. 9.⚙️ In an app, is adding up a bill an input, processing or an output? (a) input (b) output (c) processing
  10. 10.⚙️ In an app, is sorting the scores an input, processing or an output? (a) input (b) processing (c) output
  11. 11.True or false: a buzz (vibration) is processing. (a) False (b) True
  12. 12.True or false: working out a tip is an output. (a) True (b) False
  13. 13.⚙️ What number does this app show?
    let km = 10; // 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 = 10; // typed by the user
    line 2: let qty = 5; // 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
  15. 15.⚙️ What number does this app show?
    let bill = 195; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);
  16. 16.True or false: taking a photo is processing. (a) False (b) True
  17. 17.True or false: a pop-up message is an input. (a) True (b) False
  18. 18.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) output (b) input (c) processing
  19. 19.Which of these is an input? (a) a beep sound (b) a result on screen (c) tapping a button (d) sorting the scores
  20. 20.⚙️ What number does this app show?
    let price = 560; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  21. 21.⚙️ What number does this app show?
    let price = 150; // typed by the user
    let off = 50; // typed by the user
    let pay = price - off;
    show(pay);
  22. 22.True or false: a buzz (vibration) is an output. (a) False (b) True
  23. 23.Which of these is an input? (a) adding up a bill (b) checking a password (c) a buzz (vibration) (d) typing your age
  24. 24.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 104; // 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 1 (c) line 4 (d) line 3
  25. 25.🔍 Which is the odd one out? (a) a beep sound (b) tapping a button (c) speaking a command (d) taking a photo
  26. 26.⚙️ What number does this app show?
    let price = 60; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  27. 27.Which of these is processing? (a) typing your age (b) a result on screen (c) checking a password (d) a beep sound
  28. 28.🔍 Which is the odd one out? (a) adding up a bill (b) working out a tip (c) sorting the scores (d) a buzz (vibration)
  29. 29.⚙️ What number does this app show?
    let bill = 155; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  30. 30.🔍 Which is the odd one out? (a) typing your age (b) tapping a button (c) taking a photo (d) working out a tip
  31. 31.True or false: speaking a command is an input. (a) False (b) True
  32. 32.🔍 Which is the odd one out? (a) tapping a button (b) speaking a command (c) taking a photo (d) a result on screen
  33. 33.⚙️ What number does this app show?
    let price = 40; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  34. 34.⚙️ What number does this app show?
    let price = 65; // 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 = 65; // typed by the user
    line 2: let qty = 3; // 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
  36. 36.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) processing (c) input
  37. 37.⚙️ What number does this app show?
    let price = 95; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  38. 38.⚙️ What number does this app show?
    let bill = 174; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);
  39. 39.True or false: taking a photo is an input. (a) True (b) False
  40. 40.🔍 Which is the odd one out? (a) speaking a command (b) a beep sound (c) a buzz (vibration) (d) a result on screen

Answer key

  1. input
  2. output
  3. processing
  4. a beep sound
  5. output
  6. input
  7. a pop-up message
  8. taking a photo
  9. processing
  10. processing
  11. False
  12. False
  13. 10000
  14. line 3
  15. 65
  16. False
  17. False
  18. output
  19. tapping a button
  20. 530
  21. 100
  22. True
  23. typing your age
  24. line 3
  25. a beep sound
  26. 180
  27. checking a password
  28. a buzz (vibration)
  29. 31
  30. working out a tip
  31. True
  32. a result on screen
  33. 240
  34. 390
  35. line 3
  36. input
  37. 570
  38. 58
  39. True
  40. speaking a command

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