← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 673 · 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.True or false: a water reminder is the best fit for a gamer who forgets to drink. (a) False (b) True
  2. 2.🧩 In an app, what is a date picker? (a) a screen (b) data (c) a button (d) an input
  3. 3.👥 A cricket club app has 45 players, 160 coaches and 125 fans as users. How many users does it have in all?
  4. 4.🔀 What does if / else let an app do? (a) pick one of two actions (b) repeat forever (c) draw a screen (d) save a photo
  5. 5.🗂️ What kind of app is a calculator? (a) a tool app (b) a game (c) a health app (d) a learning app
  6. 6.♿ Showing right or wrong only in red and green is a problem for ___. (a) colour-blind users (b) fast typists (c) the battery (d) the server
  7. 7.👆 The user taps the button 6 times. What number does the label show now?
    let stars = 3;
    button.onTap = function () {
      stars = stars + 3;
      label.text = stars;
    };
  8. 8.🧩 In an app, what is the log-in page? (a) data (b) an input (c) a button (d) a screen
  9. 9.🧪 One test case fails. Which one?
    🎟️ 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(9) → expected 50
    Test 2: price(18) → expected 100
    Test 3: price(12) → expected 100
    (a) Test 1 (b) Test 3 (c) Test 2
  10. 10.Which of these is true of a menu button? (a) hides extra links (b) shows 3 to 5 icons (c) goes to the last screen (d) switches main sections
  11. 11.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) water animations (b) custom alert sounds (c) set a reminder time (d) share your streak
  12. 12.🔍 Which is the odd one out? (a) labels on every icon (b) tiny tap areas (c) strong colour contrast (d) captions on videos
  13. 13.🗒️ What is a must-have feature? (a) a sound effect (b) one the app cannot skip (c) a colour theme (d) a nice extra
  14. 14.🧰 How do you run (call) a function called greet? (a) #greet (b) run greet (c) greet() (d) greet[]
  15. 15.🧪 What is the ACTUAL result of Test 1?
    🎟️ 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(18) → expected 100
    Test 2: price(15) → expected 100
    Test 3: price(8) → expected 50
  16. 16.👥 A clinic app has 155 patients, 125 doctors and 30 nurses as users. How many more doctors than nurses are there?
  17. 17.🐞 What is a good first step when an app gives a wrong result? (a) delete the app (b) add more colours (c) buy a new phone (d) find where it goes wrong
  18. 18.⚙️ In an app, is a result on screen an input, processing or an output? (a) output (b) processing (c) input
  19. 19.Which of these happens at the plan stage? (a) talk to possible users (b) write down the bugs (c) sketch the screens (d) let friends try it
  20. 20.🔢 In a sign-up flow, which comes LAST? (a) type name and email (b) enter the code sent (c) see the home screen (d) open the app
  21. 21.Which colour pair is hard to read? (a) white on black (b) black on pale grey (c) white on dark green (d) light grey on white
  22. 22.🔐 Which permission does a weather-near-me app really need? (a) location (b) contacts (c) the camera (d) the microphone
  23. 23.🗒️ Version 1 of a water reminder must be ready in 14 days. How many days are left for extras after the must-haves?
    set a reminder time: 3 days
    log a glass of water: 4 days
    see today’s total: 3 days
  24. 24.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 52 px tall
    Done button: 52 px tall
    Help button: 48 px tall
    Send button: 28 px tall
    (a) Help (b) Done (c) Back (d) Send
  25. 25.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 32; // start at 31
    line 2: stars = stars * 2; // double it
    line 3: stars = stars * 2; // double it
    line 4: show(stars); // show it
    (a) line 1 (b) line 2 (c) line 3
  26. 26.True or false: a finger hits Like is a load event. (a) False (b) True
  27. 27.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 10; // typed by the user
    line 2: let qty = 2; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 2 (b) line 1 (c) line 3 (d) line 4
  28. 28.🔐 Which permission does a voice recorder really need? (a) the microphone (b) location (c) the camera (d) contacts
  29. 29.True or false: a class leaderboard fits saving on the phone. (a) True (b) False
  30. 30.Which of these is true of a website? (a) updates from the store (b) has a home-screen icon (c) comes from an app store (d) has a web address
  31. 31.🔁 What number does this code show?
    let marks = [2, 4, 12, 8, 18];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  32. 32.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 43; // start at 42
    line 2: lives = lives - 5; // take away 5
    line 3: lives = lives - 4; // take away 4
    line 4: show(lives); // show it
    (a) line 3 (b) line 2 (c) line 1
  33. 33.True or false: the screen layout is about UI (the look). (a) True (b) False
  34. 34.🔁 What number does this code show?
    let steps = [3, 13, 8, 1, 14];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  35. 35.🧩 Which of these is a button on this screen?
    [title] Order Snacks
    [button] Save
    [slider] Volume
    [text box] Phone
    [button] Cancel
    (a) Phone (b) Save (c) Volume
  36. 36.🧪 What is the ACTUAL result of Test 3?
    🎟️ 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(9) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(11) → expected 100
  37. 37.🧩 Which input is best for choosing a volume level? (a) a switch (b) a text box (c) a slider (d) a title
  38. 38.🔀 What does this PIN rule show?
    let pin = "759";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  39. 39.👥 A school app has 220 students, 35 teachers and 175 parents as users. How many more students than teachers are there?
  40. 40.True or false: the log-in page is data. (a) True (b) False

Answer key

  1. True
  2. an input
  3. 330
  4. pick one of two actions
  5. a tool app
  6. colour-blind users
  7. 21
  8. a screen
  9. Test 3
  10. hides extra links
  11. set a reminder time
  12. tiny tap areas
  13. one the app cannot skip
  14. greet()
  15. 100
  16. 95
  17. find where it goes wrong
  18. output
  19. sketch the screens
  20. see the home screen
  21. light grey on white
  22. location
  23. 4
  24. Send
  25. line 1
  26. False
  27. line 3
  28. the microphone
  29. False
  30. has a web address
  31. 44
  32. line 1
  33. True
  34. 14
  35. Save
  36. 50
  37. a slider
  38. Use 4 digits
  39. 185
  40. False

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