← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 497 · 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.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
    function price(age) {
      if (age < 14) {
        return 50;
      }
      return 100;
    }
    Test 1: price(14) → expected 100
    Test 2: price(11) → expected 50
    Test 3: price(17) → expected 100
  2. 2.True or false: one second passes is a timer event. (a) False (b) True
  3. 3.True or false: a result on screen is processing. (a) True (b) False
  4. 4.🗒️ 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
  5. 5.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) in the cloud (b) on the phone
  6. 6.🚀 What should an app ask for only when it really needs it? (a) its name (b) a permission (c) a font (d) its icon
  7. 7.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Caption: 22 px
    Menu: 9 px
    Title: 16 px
    (a) Caption (b) Menu (c) Title
  8. 8.🗂️ What kind of app is a water reminder? (a) a tool app (b) a health app (c) a learning app (d) a game
  9. 9.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(50, 5));
  10. 10.🔀 Which badge does this quiz app show?
    let marks = 26;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Gold (c) Silver
  11. 11.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) people reading the code (c) the app store (d) the battery
  12. 12.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Friend list”
    2. open “Edit photo”
    3. open “Help page”
    How many times must you tap Back to reach the main screen of this tab?
  13. 13.🔍 Which is the odd one out? (a) write the store text (b) talk to possible users (c) spot a problem to solve (d) list what users need
  14. 14.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 31; // start at 31
    line 2: coins = coins - 4; // take away 4
    line 3: coins = coins * 2; // double it
    line 4: coins = coins * 3; // double it
    line 5: show(coins); // show it
    (a) line 1 (b) line 3 (c) line 4 (d) line 2
  15. 15.Which of these requests is fair? (a) quiz app → microphone (b) voice notes → microphone (c) timer → your photos (d) calculator → location
  16. 16.💡 Does an app idea like a medicine reminder solve a real problem? (a) No (b) Yes
  17. 17.🗂️ What kind of app is a sleep tracker? (a) a tool app (b) a health app (c) a learning app (d) a game
  18. 18.👆 The user taps the button 1 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) OFF (b) ON
  19. 19.True or false: the game-over page is a button. (a) False (b) True
  20. 20.🧩 In an app, what is your saved notes? (a) a button (b) a screen (c) an input (d) data
  21. 21.🔢 When you make an app, which comes first: “plan the screens” or “release it”? (a) release it (b) plan the screens
  22. 22.📱 Which one comes from an app store: an app or a website? (a) an app (b) a website
  23. 23.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) water animations (b) custom alert sounds (c) share your streak (d) set a reminder time
  24. 24.🔀 What does this battery rule show?
    let battery = 48;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  25. 25.👥 A clinic app has 170 patients, 215 doctors and 220 nurses as users. How many users does it have in all?
  26. 26.Which of these app ideas solves no real problem? (a) a blank grey screen (b) a free study-room finder (c) a library due-date alert (d) a medicine reminder
  27. 27.True or false: a final design is a quick sketch. (a) False (b) True
  28. 28.💾 Saving data in the cloud lets you ___. (a) shrink the app (b) never need a password (c) skip the internet (d) use it on any device
  29. 29.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age <= 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(7) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(11) → expected 100
  30. 30.🔢 In a food-order flow, which comes LAST? (a) pick a dish (b) track the order (c) pay for the order (d) open the menu
  31. 31.🚀 In version 2.5.1, which number is the major version? (a) 1 (b) 251 (c) 5 (d) 2
  32. 32.🔁 What number does this code show?
    let scores = [15, 1, 10];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  33. 33.True or false: a result on screen is an input. (a) True (b) False
  34. 34.🧩 Which of these is a button on this screen?
    [title] Order Snacks
    [text box] Email
    [slider] Volume
    [button] Help
    [button] Cancel
    [switch] Dark mode
    (a) Help (b) Volume (c) Dark mode (d) Email
  35. 35.Which of these is a feature? (a) “I keep missing the bus” (b) “What should I cook?” (c) “Small text is hard” (d) a share button
  36. 36.💾 What number does this code show?
    let songs = ["Sunrise", "Stars"];
    songs.push("Ocean");
    show(songs.length);
  37. 37.🧩 Which of these is a button on this screen?
    [title] Settings
    [slider] Brightness
    [switch] Dark mode
    [text box] Email
    [button] Save
    (a) Save (b) Brightness (c) Email (d) Dark mode
  38. 38.🧪 What is the ACTUAL result of Test 1?
    🚚 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(650) → expected 40
    Test 2: delivery(850) → expected 0
    Test 3: delivery(800) → expected 0
  39. 39.🔐 Is this permission request fair or too much: calling app → contacts? (a) fair (b) too much
  40. 40.True or false: a pocket-money tracker is the best fit for a pupil juggling five projects. (a) True (b) False

Answer key

  1. 3
  2. True
  3. False
  4. missing a must-have
  5. on the phone
  6. a permission
  7. Menu
  8. a health app
  9. 250
  10. Bronze
  11. people reading the code
  12. 3
  13. write the store text
  14. line 4
  15. voice notes → microphone
  16. Yes
  17. a health app
  18. ON
  19. False
  20. data
  21. plan the screens
  22. an app
  23. set a reminder time
  24. Battery OK
  25. 605
  26. a blank grey screen
  27. False
  28. use it on any device
  29. 2
  30. track the order
  31. 2
  32. 26
  33. False
  34. Help
  35. a share button
  36. 3
  37. Save
  38. 40
  39. fair
  40. False

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