← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 14000
  2. line 3
  3. False
  4. a result on screen
  5. 490
  6. line 3
  7. True
  8. True
  9. sorting the scores
  10. 29
  11. 270
  12. tapping a button
  13. line 3
  14. 6000
  15. 375
  16. line 3
  17. False
  18. False
  19. 13
  20. adding up a bill
  21. 63
  22. True
  23. 200
  24. line 3
  25. 11000
  26. input
  27. checking a password
  28. line 3
  29. line 3
  30. a pop-up message
  31. tapping a button
  32. a result on screen
  33. line 2
  34. typing your age
  35. True
  36. input
  37. line 2
  38. a pop-up message
  39. output
  40. taking a photo

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