← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. input
  3. line 3
  4. 14000
  5. output
  6. False
  7. line 3
  8. 190
  9. line 3
  10. line 2
  11. a beep sound
  12. tapping a button
  13. a result on screen
  14. 11000
  15. working out a tip
  16. adding up a bill
  17. typing your age
  18. 11
  19. 175
  20. line 3
  21. output
  22. line 3
  23. line 3
  24. line 3
  25. line 3
  26. 26
  27. line 3
  28. 105
  29. line 3
  30. line 3
  31. line 2
  32. 375
  33. False
  34. a pop-up message
  35. input
  36. adding up a bill
  37. True
  38. a result on screen
  39. line 3
  40. a buzz (vibration)

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