← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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