← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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