← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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