← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 24
  2. False
  3. input
  4. line 3
  5. processing
  6. True
  7. adding up a bill
  8. input
  9. 370
  10. line 3
  11. line 2
  12. line 3
  13. 28
  14. output
  15. 59
  16. line 3
  17. sorting the scores
  18. line 3
  19. True
  20. a pop-up message
  21. 50
  22. a result on screen
  23. False
  24. 40
  25. a result on screen
  26. a pop-up message
  27. a buzz (vibration)
  28. checking a password
  29. line 3
  30. 160
  31. processing
  32. False
  33. a beep sound
  34. output
  35. line 3
  36. tapping a button
  37. line 3
  38. line 3
  39. adding up a bill
  40. 6000

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