← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 178 · 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.🧪 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(13) → expected 100
    Test 2: price(8) → expected 100
    Test 3: price(5) → expected 50
    (a) Test 1 (b) Test 3 (c) Test 2
  2. 2.🔢 In a quiz-app flow, what comes right after “see if it is right”? (a) see the final score (b) read a question (c) tap “Start quiz” (d) pick an answer
  3. 3.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 3 (b) 0, 1, 2, 3 (c) 0, 1, 2 (d) 1, 2, 3
  4. 4.🔁 What number does this code show?
    let marks = [58, 67, 47];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  5. 5.Which of these fits saving on the phone? (a) a shared to-do list (b) notes to read offline (c) photos on two devices (d) chat messages to friends
  6. 6.True or false: a clear word like Save is poor button design. (a) False (b) True
  7. 7.🔁 What number does this code show?
    let runs = [4, 19, 6];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  8. 8.📱 Which one comes from an app store: an app or a website? (a) a website (b) an app
  9. 9.Which of these is true of a menu button? (a) shows 3 to 5 icons (b) goes to the last screen (c) undoes one move (d) hides extra links
  10. 10.🧪 What is the ACTUAL result of Test 1?
    🎟️ 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(13) → expected 100
    Test 2: price(10) → expected 100
    Test 3: price(4) → expected 50
  11. 11.📊 Survey: which problem bugs you most? How many students voted in all?
    no quiet study place: 11 votes
    forgetting homework: 22 votes
    forgetting birthdays: 8 votes
  12. 12.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) log a glass of water (b) set a reminder time (c) custom alert sounds (d) see today’s total
  13. 13.🌗 Is black on yellow easy or hard to read on a button? (a) easy to read (b) hard to read
  14. 14.Which of these is true of a tab bar? (a) hides extra links (b) sits at the bottom (c) opens a list of pages (d) undoes one move
  15. 15.👥 A school app has 45 students, 265 teachers and 55 parents as users. How many more teachers than students are there?
  16. 16.Which of these helps everyone use the app? (a) icons with no labels (b) text that can grow (c) sudden loud sounds (d) tiny tap areas
  17. 17.🌗 Is red on green easy or hard to read on a button? (a) hard to read (b) easy to read
  18. 18.💡 Does an app idea like a button with no action solve a real problem? (a) Yes (b) No
  19. 19.💾 Where should the app save the sound on/off setting: on the phone or in the cloud? (a) in the cloud (b) on the phone
  20. 20.📱 Which one needs no installing: an app or a website? (a) a website (b) an app
  21. 21.🚀 Which version is newer: 4.19.2 or 4.2.2? (a) 4.2.2 (b) 4.19.2
  22. 22.🔢 In a food-order flow, what comes right after “add it to the cart”? (a) pay for the order (b) open the menu (c) pick a dish (d) check the cart
  23. 23.🚀 Which version is newer: 3.0.11 or 3.0.6? (a) 3.0.6 (b) 3.0.11
  24. 24.🧰 What does this code show?
    function greet(name) {
      return "Hi, " + name + "!";
    }
    show(greet("Zoya"));
    (a) Zoya (b) Hi, name! (c) greet (d) Hi, Zoya!
  25. 25.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 31; // start at 31
    line 2: points = points - 3; // take away 3
    line 3: points = points * 2; // double it
    line 4: points = points - 2; // add 2
    line 5: show(points); // show it
    (a) line 2 (b) line 1 (c) line 4 (d) line 3
  26. 26.🎯 Which app would help this user most: a runner who forgets to sip water? (a) a recipe finder (b) a water reminder (c) a pocket-money tracker (d) a homework planner
  27. 27.🔍 Which is the odd one out? (a) how fast a task is done (b) how many taps it takes (c) how users feel after (d) the button colours
  28. 28.🔁 What number does this code show?
    let runs = [22, 87, 28];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  29. 29.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) pie-chart colours (c) add money received (d) savings stickers
  30. 30.Which of these makes the app harder to use? (a) big touch targets (b) text that can grow (c) icons with no labels (d) strong colour contrast
  31. 31.💡 An app that tries to do everything at once is usually ___. (a) easy to build (b) finished fast (c) hard to use (d) very small
  32. 32.🧪 What is the ACTUAL result of Test 1?
    🚚 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(400) → expected 0
    Test 2: delivery(150) → expected 40
    Test 3: delivery(450) → expected 0
  33. 33.True or false: “fast-flashing lights” helps everyone use the app. (a) True (b) False
  34. 34.👆 The user taps the button 5 times. What number does the label show now?
    let lives = 5;
    button.onTap = function () {
      lives = lives + 4;
      label.text = lives;
    };
  35. 35.True or false: a class leaderboard fits saving in the cloud. (a) True (b) False
  36. 36.🚀 Which of these versions is the NEWEST?
    1.10.9, 1.14.4, 0.23.0, 1.3.8
    (a) 1.3.8 (b) 0.23.0 (c) 1.14.4 (d) 1.10.9
  37. 37.👥 A clinic app has 245 patients, 55 doctors and 125 nurses as users. How many users does it have in all?
  38. 38.🧩 How many buttons does this app screen have?
    [title] Settings
    [text box] City
    [button] Cancel
  39. 39.⚙️ In an app, is a beep sound an input, processing or an output? (a) processing (b) input (c) output
  40. 40.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) custom alert sounds (b) water animations (c) share your streak (d) set a reminder time

Answer key

  1. Test 2
  2. see the final score
  3. 0, 1, 2
  4. 1
  5. notes to read offline
  6. False
  7. 29
  8. an app
  9. hides extra links
  10. 100
  11. 41
  12. custom alert sounds
  13. easy to read
  14. sits at the bottom
  15. 220
  16. text that can grow
  17. hard to read
  18. No
  19. on the phone
  20. a website
  21. 4.19.2
  22. check the cart
  23. 3.0.11
  24. Hi, Zoya!
  25. line 4
  26. a water reminder
  27. the button colours
  28. 1
  29. add money received
  30. icons with no labels
  31. hard to use
  32. 0
  33. False
  34. 25
  35. True
  36. 1.14.4
  37. 425
  38. 1
  39. output
  40. set a reminder time

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