← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 184 · 40 questions
TalentJR

Developer's tip (Plan, design, build, check): Find the topic: what apps are, designing apps, or logic and building. Read every screen, list or code line carefully, top to bottom. For code, write each value down step by step and check it again.

NameDateTime takenScore ___ / 40
  1. 1.💾 What number does this code show?
    let notes = ["Sports", "Music", "Maths", "Art"];
    notes.push("Hindi");
    notes.push("Science");
    show(notes.length);
  2. 2.True or false: a draft you are typing fits saving on the phone. (a) False (b) True
  3. 3.🗒️ Version 1 of a pocket-money tracker must be ready in 9 days. How many days are left for extras after the must-haves?
    add money received: 1 days
    add money spent: 2 days
    show the balance: 5 days
  4. 4.💾 What number does this code show?
    let lives = 8;
    lives = lives - 4;
    lives = lives + 3;
    show(lives);
  5. 5.True or false: a box to type a name is an input. (a) False (b) True
  6. 6.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 7 or more right answers.
    function result(right) {
      if (right > 7) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(9) → expected Pass
    Test 2: result(6) → expected Try again
    Test 3: result(7) → expected Pass
    (a) Test 1 (b) Test 2 (c) Test 3
  7. 7.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 33; // start at 32
    line 2: lives = lives + 6; // add 6
    line 3: lives = lives - 4; // take away 4
    line 4: show(lives); // show it
  8. 8.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) custom alert sounds (b) water animations (c) log a glass of water (d) share your streak
  9. 9.🔁 What number does this code show?
    let marks = [95, 18, 17, 11, 64];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  10. 10.Which of these is true of a final design? (a) uses plain grey boxes (b) shows the real fonts (c) shows where things go (d) has no real colours
  11. 11.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Next button: 64 px tall
    Done button: 52 px tall
    Back button: 40 px tall
    (a) Back (b) Next (c) Done
  12. 12.🔀 What does this battery rule show?
    let battery = 65;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  13. 13.🔘 Our rule: buttons are at least 48 px tall. The Save button is 32 px tall. How many px taller must it be?
  14. 14.🔁 What number does this code show?
    let steps = [83, 70, 45, 19, 15];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  15. 15.Which of these happens at the release stage? (a) draw the user flow (b) spot a problem to solve (c) let friends try it (d) put it on an app store
  16. 16.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Sign Up
    [text box] Age
    [text box] Notes
    [text box] Subject
    [switch] Dark mode
    [button] Next
  17. 17.Which of these is true of an app? (a) needs no installing (b) opens from a link (c) is installed on a phone (d) opens in a web browser
  18. 18.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Edit photo”
    2. open “Score card”
    3. open “Friend list”
    4. open “Edit photo”
    5. tap the Chat tab
    Which screen are you on now?
    (a) Friend list (b) Score card (c) Chat (d) Edit photo
  19. 19.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a wireframe (b) a final design
  20. 20.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Settings
    [button] Save
    [text box] Email
    [text box] Name
    [text box] Notes
  21. 21.🌗 Is pale pink on white easy or hard to read on a button? (a) easy to read (b) hard to read
  22. 22.🔘 Our rule: buttons are at least 48 px tall. The Done button is 28 px tall. How many px taller must it be?
  23. 23.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 50;
    }
    show(fee(12) + fee(12));
  24. 24.🔀 Why plan the user flow before building? (a) to hide the buttons (b) so each step is clear (c) to add more taps (d) to skip testing
  25. 25.True or false: a final design uses the final pictures. (a) False (b) True
  26. 26.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) pick a theme colour (b) earn stickers (c) see tasks by day (d) share tasks to friends
  27. 27.Which of these is data? (a) tap to go Next (b) a box to type a name (c) a slider for volume (d) your high score
  28. 28.✏️ Is this true of a wireframe or of a final design: shows where things go? (a) a final design (b) a wireframe
  29. 29.🧪 What is the ACTUAL result of Test 3?
    🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 800) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(1000) → expected 0
    Test 2: delivery(700) → expected 40
    Test 3: delivery(800) → expected 0
  30. 30.🗒️ The first small, working version of an app is often called an ___. (a) FAQ (b) CPU (c) MVP (d) URL
  31. 31.🧩 Which part lets the user give the app information? (a) a title (b) an icon (c) an input (d) a logo
  32. 32.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Cancel button: 48 px tall
    Next button: 36 px tall
    Help button: 64 px tall
    Start button: 36 px tall
  33. 33.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) savings stickers (b) add money spent (c) add money received (d) show the balance
  34. 34.📊 Survey: which problem bugs you most? How many students voted in all?
    no quiet study place: 5 votes
    missing the bus: 16 votes
    losing water bottles: 17 votes
  35. 35.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Help button: 72 px tall
    Start button: 48 px tall
    Save button: 24 px tall
    (a) Save (b) Start (c) Help
  36. 36.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(15, 6));
  37. 37.True or false: a tiny 20 px button is good button design. (a) False (b) True
  38. 38.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
    function price(age) {
      if (age <= 8) {
        return 50;
      }
      return 100;
    }
    Test 1: price(8) → expected 100
    Test 2: price(12) → expected 100
    Test 3: price(4) → expected 50
    (a) Test 3 (b) Test 2 (c) Test 1
  39. 39.🗒️ Version 1 of a homework planner must be ready in 12 days. How many days are left for extras after the must-haves?
    add a homework task: 1 days
    set a due date: 4 days
    see tasks by day: 3 days
  40. 40.🐞 A comment in code (after //) is for ___. (a) the app store (b) the phone screen (c) the battery (d) people reading the code

Answer key

  1. 6
  2. True
  3. 1
  4. 7
  5. True
  6. Test 3
  7. 35
  8. log a glass of water
  9. 2
  10. shows the real fonts
  11. Back
  12. Battery OK
  13. 16
  14. 3
  15. put it on an app store
  16. 4
  17. is installed on a phone
  18. Chat
  19. a wireframe
  20. 3
  21. hard to read
  22. 20
  23. 100
  24. so each step is clear
  25. True
  26. see tasks by day
  27. your high score
  28. a wireframe
  29. 40
  30. MVP
  31. an input
  32. 2
  33. savings stickers
  34. 38
  35. Save
  36. 90
  37. False
  38. Test 1
  39. 4
  40. people reading the code

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