← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 585 · 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 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(14) → expected 100
    Test 3: price(13) → expected 100
  2. 2.Which of these app ideas solves a real problem? (a) a library due-date alert (b) a button with no action (c) a page of random dots (d) an app that just says hi
  3. 3.True or false: the screen first opens is a tap event. (a) False (b) True
  4. 4.🧪 What is the ACTUAL result of Test 3?
    🎟️ 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(18) → expected 100
    Test 2: price(11) → expected 50
    Test 3: price(16) → expected 100
  5. 5.💾 Where should the app save notes to read offline: on the phone or in the cloud? (a) on the phone (b) in the cloud
  6. 6.🚀 Which version is newer: 1.2.0 or 1.18.2? (a) 1.18.2 (b) 1.2.0
  7. 7.🚀 Your app is at version 3.10.3. The next release fixes a small bug. What is its version number? (a) 3.11.0 (b) 3.10.4 (c) 4.0.0 (d) 3.11.3
  8. 8.💾 pop() takes off the last item. What does this code show?
    let songs = ["Sunrise", "Stars", "Rain"];
    songs.pop();
    show(songs[songs.length - 1]);
    (a) Sunrise (b) Stars (c) Rain
  9. 9.👥 A school app has 140 students, 225 teachers and 295 parents as users. How many users does it have in all?
  10. 10.True or false: a medicine reminder solves no real problem. (a) True (b) False
  11. 11.Which of these is true of a final design? (a) uses plain grey boxes (b) shows where things go (c) has no real colours (d) has the real colours
  12. 12.🧭 About how many tabs suit a tab bar best? (a) 10 to 12 (b) 20 (c) 1 (d) 3 to 5
  13. 13.🔁 What does a loop do? (a) repeats code (b) deletes code (c) saves photos (d) draws icons
  14. 14.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 47; // start at 47
    line 2: points = points - 5; // take away 5
    line 3: points = points + 9; // add 6
    line 4: points = points * 2; // double it
    line 5: show(points); // show it
    (a) line 4 (b) line 2 (c) line 1 (d) line 3
  15. 15.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Zoya", "Riya", "Kabir", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Zoya (c) Hi, Riya (d) Hi, Arjun
  16. 16.🔢 In a food-order flow, which comes LAST? (a) open the menu (b) track the order (c) check the cart (d) pick a dish
  17. 17.👥 A clinic app has 135 patients, 85 doctors and 295 nurses as users. Which user group is the biggest? (a) nurses (b) doctors (c) patients
  18. 18.🧩 What do we call one full page of an app? (a) a battery (b) a cable (c) a variable (d) a screen
  19. 19.Which of these app ideas solves a real problem? (a) a page of random dots (b) a bill splitter (c) a button with no action (d) a blank grey screen
  20. 20.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
  21. 21.🔁 What number does this code show?
    let scores = [17, 11, 6, 3];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  22. 22.🔢 When you make an app, which comes LAST? (a) build the app (b) plan the screens (c) test the app (d) release it
  23. 23.🗒️ Version 1 of a water reminder must be ready in 17 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: 4 days
  24. 24.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Done button: 52 px tall
    Next button: 36 px tall
    Start button: 52 px tall
    Save button: 56 px tall
    (a) Save (b) Next (c) Start (d) Done
  25. 25.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Help button: 64 px tall
    Cancel button: 36 px tall
    Back button: 48 px tall
  26. 26.🧩 How many buttons does this app screen have?
    [title] Sign Up
    [text box] Email
    [text box] Subject
    [button] Next
    [button] Done
    [button] Cancel
  27. 27.💡 An app that tries to do everything at once is usually ___. (a) easy to build (b) very small (c) hard to use (d) finished fast
  28. 28.🔀 What does this PIN rule show?
    let pin = "994";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  29. 29.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 46; // start at 45
    line 2: lives = lives - 3; // take away 3
    line 3: lives = lives - 1; // take away 1
    line 4: show(lives); // show it
  30. 30.🧰 What is a function? (a) a list of colours (b) a screen size (c) a type of phone (d) a named block of code
  31. 31.🧪 What is the ACTUAL result of Test 3?
    🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 700) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(800) → expected 0
    Test 2: delivery(700) → expected 0
    Test 3: delivery(600) → expected 40
  32. 32.🧭 Where is a tab bar usually placed in a phone app? (a) nowhere (b) at the bottom (c) inside a button (d) in the middle
  33. 33.🚀 Your app is at version 1.1.1. The next release is a big redesign that changes how the app works. What is its version number? (a) 1.1.2 (b) 1.2.0 (c) 1.2.1 (d) 2.0.0
  34. 34.Which of these fits saving on the phone? (a) a class leaderboard (b) chat messages to friends (c) a shared to-do list (d) your last game level
  35. 35.💾 Which works with no internet at all? (a) data saved on the phone (b) a cloud backup (c) a cloud leaderboard (d) a shared chat
  36. 36.🧰 How do you run (call) a function called greet? (a) greet() (b) #greet (c) run greet (d) greet[]
  37. 37.👆 The user taps the button 4 times. What number does the label show now?
    let stars = 1;
    button.onTap = function () {
      stars = stars + 3;
      label.text = stars;
    };
  38. 38.🎨 UI stands for user ___. (a) internet (b) interface (c) idea (d) input
  39. 39.🧭 Which part of navigation shows 3 to 5 icons? (a) a menu button (b) the back button (c) a tab bar
  40. 40.🔢 In a food-order flow, what comes right after “pay for the order”? (a) pick a dish (b) add it to the cart (c) track the order (d) check the cart

Answer key

  1. 3
  2. a library due-date alert
  3. False
  4. 100
  5. on the phone
  6. 1.18.2
  7. 3.10.4
  8. Stars
  9. 660
  10. False
  11. has the real colours
  12. 3 to 5
  13. repeats code
  14. line 3
  15. Hi, Arjun
  16. track the order
  17. nurses
  18. a screen
  19. a bill splitter
  20. poor design
  21. 17
  22. release it
  23. 6
  24. Next
  25. 2
  26. 3
  27. hard to use
  28. Use 4 digits
  29. 41
  30. a named block of code
  31. 40
  32. at the bottom
  33. 2.0.0
  34. your last game level
  35. data saved on the phone
  36. greet()
  37. 13
  38. interface
  39. a tab bar
  40. track the order

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