← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 262 · 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 scores = [3, 5, 5];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  2. 2.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 1, 2, 3 (b) 0, 1, 2 (c) 3 (d) 0, 1, 2, 3
  3. 3.Which of these is a user need? (a) a search bar (b) a share button (c) “I forget my homework” (d) a dark mode switch
  4. 4.👥 A clinic app has 90 patients, 35 doctors and 120 nurses as users. How many users does it have in all?
  5. 5.🧩 Which of these is a button on this screen?
    [title] New Note
    [switch] Remind me
    [text box] Age
    [text box] Name
    [button] Save
    [slider] Text size
    [text box] Notes
    (a) Age (b) Save (c) Name (d) Notes
  6. 6.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 35; // 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 3 (c) line 2 (d) line 1
  7. 7.✏️ What is a wireframe? (a) a charging cable (b) a type of password (c) the finished app (d) a simple screen sketch
  8. 8.Which of these helps everyone use the app? (a) icons with no labels (b) labels on every icon (c) colour as the only clue (d) tiny tap areas
  9. 9.True or false: an app is installed on a phone. (a) True (b) False
  10. 10.🔍 Which is the odd one out? (a) taking a photo (b) a pop-up message (c) a result on screen (d) a buzz (vibration)
  11. 11.True or false: you add the buttons at the idea stage. (a) True (b) False
  12. 12.⚙️ What number does this app show?
    let price = 160; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  13. 13.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    forgetting homework: 7 votes
    no quiet study place: 13 votes
    losing water bottles: 9 votes
    (a) losing water bottles (b) forgetting homework (c) no quiet study place
  14. 14.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(20, 2));
  15. 15.👆 The user taps the button 6 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 5) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  16. 16.📊 Survey: which problem bugs you most? How many more votes did “no quiet study place” get than “losing water bottles”?
    losing water bottles: 5 votes
    forgetting homework: 18 votes
    no quiet study place: 13 votes
  17. 17.🧩 How many buttons does this app screen have?
    [title] Add Homework
    [switch] Dark mode
    [text box] Subject
    [button] Send
    [text box] City
    [button] Save
  18. 18.🗒️ Version 1 of a water reminder must be ready in 9 days. How many days are left for extras after the must-haves?
    set a reminder time: 3 days
    log a glass of water: 1 days
    see today’s total: 3 days
  19. 19.True or false: a lost-and-found board solves a real problem. (a) False (b) True
  20. 20.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 28 px tall
    Start button: 48 px tall
    Save button: 52 px tall
    (a) Start (b) Back (c) Save
  21. 21.Which of these fits saving on the phone? (a) your last game level (b) chat messages to friends (c) a shared to-do list (d) photos on two devices
  22. 22.🔢 When you make an app, which comes first: “release it” or “test the app”? (a) test the app (b) release it
  23. 23.🗒️ When should nice-to-have features be built? (a) after the must-haves (b) on day one (c) before anything (d) never
  24. 24.🧪 What is the ACTUAL result of Test 2?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(350) → expected 40
    Test 2: delivery(600) → expected 0
    Test 3: delivery(550) → expected 0
  25. 25.🔢 When you make an app, what comes right after “plan the screens”? (a) get an idea (b) build the app (c) release it (d) test the app
  26. 26.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(70, 5));
  27. 27.🔀 With if / else if / else, how many parts run? (a) none (b) two (c) all of them (d) only one
  28. 28.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(350) → expected 0
    Test 2: delivery(300) → expected 0
    Test 3: delivery(250) → expected 40
  29. 29.🗒️ A to-do app with no “add a task” feature is ___. (a) ready to release (b) a nice extra (c) missing a must-have (d) well planned
  30. 30.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Riya", "Aman", "Zoya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Zoya (c) Hi, Aman (d) Hi, Riya
  31. 31.♿ A screen has 12 icon buttons. Only 10 of them have a text label for screen readers. How many still need a label?
  32. 32.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 35; // start at 35
    line 2: coins = coins + 5; // take away 5
    line 3: coins = coins + 6; // add 6
    line 4: show(coins); // show it
  33. 33.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(39));
  34. 34.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) show the balance (b) add money spent (c) pie-chart colours (d) add money received
  35. 35.🔢 In a food-order flow, what comes right after “pay for the order”? (a) add it to the cart (b) track the order (c) pick a dish (d) open the menu
  36. 36.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    losing water bottles: 22 votes
    forgetting homework: 3 votes
    forgetting birthdays: 6 votes
    (a) losing water bottles (b) forgetting homework (c) forgetting birthdays
  37. 37.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
    function price(age) {
      if (age <= 12) {
        return 50;
      }
      return 100;
    }
    Test 1: price(14) → expected 100
    Test 2: price(8) → expected 50
    Test 3: price(12) → expected 100
  38. 38.Which of these requests is fair? (a) calculator → location (b) camera app → camera (c) torch → contacts (d) timer → your photos
  39. 39.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a beep sound (c) a pop-up message (d) speaking a command
  40. 40.True or false: a 5-minute alarm ends is a tap event. (a) True (b) False

Answer key

  1. 13
  2. 0, 1, 2
  3. “I forget my homework”
  4. 245
  5. Save
  6. line 3
  7. a simple screen sketch
  8. labels on every icon
  9. True
  10. taking a photo
  11. False
  12. 150
  13. no quiet study place
  14. 40
  15. 5
  16. 8
  17. 2
  18. 2
  19. True
  20. Back
  21. your last game level
  22. test the app
  23. after the must-haves
  24. 0
  25. build the app
  26. 350
  27. only one
  28. 3
  29. missing a must-have
  30. Hi, Zoya
  31. 2
  32. 46
  33. 117
  34. pie-chart colours
  35. track the order
  36. losing water bottles
  37. 2
  38. camera app → camera
  39. speaking a command
  40. False

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