← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 84 · 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.📊 Survey: which problem bugs you most? How many students voted in all?
    forgetting homework: 9 votes
    missing the bus: 25 votes
    wasting pocket money: 23 votes
  2. 2.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 240; // 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 3 (c) line 2 (d) line 1
  3. 3.🔀 What does this battery rule show?
    let battery = 34;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  4. 4.🔍 Which is the odd one out? (a) try every button (b) spot a problem to solve (c) let friends try it (d) write down the bugs
  5. 5.Which of these is about UX (the experience)? (a) the button colours (b) how users feel after (c) the screen layout (d) the theme colours
  6. 6.🔀 What does this battery rule show?
    let battery = 87;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  7. 7.🧰 In function tip(bill), what is bill? (a) a loop (b) an event (c) a screen (d) a parameter
  8. 8.🔘 Is this good or poor button design: space between buttons? (a) good design (b) poor design
  9. 9.🔁 What number does this code show?
    let steps = [1, 20, 9, 20, 8];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  10. 10.🔀 What does this battery rule show?
    let battery = 9;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  11. 11.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 32; // start at 32
    line 2: lives = lives + 2; // add 2
    line 3: lives = lives - 4; // add 4
    line 4: show(lives); // show it
    (a) line 3 (b) line 1 (c) line 2
  12. 12.🛠️ At which stage do you talk to possible users? (a) the idea stage (b) the test stage (c) the build stage (d) the plan stage
  13. 13.💡 Which app idea solves this problem: Grandpa forgets his tablets? (a) a medicine reminder (b) a study-room finder (c) a bill splitter (d) a lost-and-found board
  14. 14.🧪 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(8) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(18) → expected 100
  15. 15.True or false: a class leaderboard fits saving on the phone. (a) True (b) False
  16. 16.True or false: you list what users need at the idea stage. (a) False (b) True
  17. 17.Which of these is true of a tab bar? (a) goes to the last screen (b) hides extra links (c) switches main sections (d) undoes one move
  18. 18.🔁 What number does this code show?
    let steps = [45, 68, 73, 74, 18];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  19. 19.🔢 In a quiz-app flow, which comes first: “tap “Start quiz”” or “read a question”? (a) read a question (b) tap “Start quiz”
  20. 20.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Help button: 32 px tall
    Start button: 56 px tall
    Next button: 64 px tall
  21. 21.Which of these is processing? (a) sorting the scores (b) tapping a button (c) a pop-up message (d) taking a photo
  22. 22.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 8 (c) 0 (d) 4
  23. 23.💾 What number does this code show?
    let points = 8;
    points = points - 2;
    points = points + 3;
    show(points);
  24. 24.🔢 After an app is released, what comes right after “test it again”? (a) release an update (b) list what to fix (c) fix and improve (d) read user reviews
  25. 25.👆 The user taps the button 6 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) ON (b) OFF
  26. 26.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) see tasks by day (b) set a due date (c) add a homework task (d) share tasks to friends
  27. 27.👆 The user taps the button 2 times. What number does the label show now?
    let lives = 6;
    button.onTap = function () {
      lives = lives + 2;
      label.text = lives;
    };
  28. 28.Which of these is true of a tab bar? (a) opens a list of pages (b) shows 3 to 5 icons (c) goes to the last screen (d) hides extra links
  29. 29.🧪 One test case fails. Which one?
    🚚 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(850) → expected 0
    Test 2: delivery(800) → expected 0
    Test 3: delivery(600) → expected 40
    (a) Test 3 (b) Test 1 (c) Test 2
  30. 30.🔘 Our rule: buttons are at least 48 px tall. The Send button is 36 px tall. How many px taller must it be?
  31. 31.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 48 px tall
    Done button: 36 px tall
    Cancel button: 60 px tall
    (a) Cancel (b) Done (c) Back
  32. 32.🔁 What is the LAST line this code shows?
    let names = ["Zoya", "Riya", "Kabir", "Aman"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Riya (b) Hi, Kabir (c) Hi, Aman (d) Hi, Zoya
  33. 33.True or false: a medicine reminder solves a real problem. (a) False (b) True
  34. 34.True or false: how users feel after is about UX (the experience). (a) True (b) False
  35. 35.🗒️ 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: 1 days
    show the balance: 2 days
  36. 36.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 43; // start at 43
    line 2: coins = coins + 4; // add 4
    line 3: coins = coins + 2; // double it
    line 4: show(coins); // show it
  37. 37.⚙️ What number does this app show?
    let price = 430; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  38. 38.True or false: how easy sign-up is is about UX (the experience). (a) False (b) True
  39. 39.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) add money received (b) savings stickers (c) export to a file (d) pie-chart colours
  40. 40.Which of these makes the app harder to use? (a) icons with no labels (b) strong colour contrast (c) labels on every icon (d) text that can grow

Answer key

  1. 57
  2. line 3
  3. Battery OK
  4. spot a problem to solve
  5. how users feel after
  6. Battery OK
  7. a parameter
  8. good design
  9. 58
  10. Low battery
  11. line 3
  12. the idea stage
  13. a medicine reminder
  14. 3
  15. False
  16. True
  17. switches main sections
  18. 3
  19. tap “Start quiz”
  20. 2
  21. sorting the scores
  22. 4
  23. 9
  24. release an update
  25. OFF
  26. share tasks to friends
  27. 10
  28. shows 3 to 5 icons
  29. Test 2
  30. 12
  31. Done
  32. Hi, Aman
  33. True
  34. True
  35. 5
  36. 49
  37. 410
  38. True
  39. add money received
  40. icons with no labels

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