← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. a pop-up message
  3. 44
  4. a buzz (vibration)
  5. 8000
  6. tapping a button
  7. line 3
  8. True
  9. processing
  10. line 3
  11. 58
  12. line 2
  13. sorting the scores
  14. False
  15. 150
  16. False
  17. a result on screen
  18. tapping a button
  19. line 3
  20. line 3
  21. output
  22. 53
  23. 12000
  24. 58
  25. False
  26. 580
  27. input
  28. input
  29. sorting the scores
  30. 60
  31. line 2
  32. 36
  33. processing
  34. line 3
  35. taking a photo
  36. 590
  37. 380
  38. 45
  39. line 3
  40. 67

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