← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. working out a tip
  3. speaking a command
  4. line 2
  5. line 3
  6. 160
  7. output
  8. 64
  9. 120
  10. line 2
  11. line 3
  12. line 3
  13. checking a password
  14. 5000
  15. speaking a command
  16. a result on screen
  17. checking a password
  18. 130
  19. processing
  20. a result on screen
  21. a beep sound
  22. a buzz (vibration)
  23. input
  24. line 3
  25. line 2
  26. False
  27. adding up a bill
  28. line 2
  29. input
  30. 6000
  31. 270
  32. line 3
  33. line 2
  34. line 2
  35. 110
  36. line 3
  37. False
  38. line 3
  39. a pop-up message
  40. 49

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