← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. line 3
  3. line 3
  4. 470
  5. working out a tip
  6. a result on screen
  7. taking a photo
  8. input
  9. 12
  10. tapping a button
  11. output
  12. processing
  13. 80
  14. False
  15. line 3
  16. 15
  17. line 3
  18. sorting the scores
  19. processing
  20. input
  21. 170
  22. a result on screen
  23. line 3
  24. a beep sound
  25. 68
  26. False
  27. False
  28. typing your age
  29. a beep sound
  30. line 3
  31. line 3
  32. a pop-up message
  33. line 3
  34. speaking a command
  35. False
  36. 15000
  37. a buzz (vibration)
  38. line 3
  39. True
  40. line 2

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