← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 1 · 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.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(19));
  2. 2.🧭 Why should every screen show where you are? (a) to use more battery (b) to hide the menu (c) so users do not get lost (d) to look busy
  3. 3.True or false: adding up a bill is processing. (a) False (b) True
  4. 4.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(25, 5));
  5. 5.💾 What does this code show? (Positions start at 0.)
    let notes = ["Maths", "Music", "Art"];
    show(notes[1]);
    (a) Art (b) Music (c) Maths
  6. 6.👆 The user taps the button 3 times. What number does the label show now?
    let coins = 6;
    button.onTap = function () {
      coins = coins + 1;
      label.text = coins;
    };
  7. 7.🔢 In a food-order flow, which comes FIRST? (a) pay for the order (b) open the menu (c) check the cart (d) track the order
  8. 8.Which of these is a user need? (a) a search bar (b) “I keep missing the bus” (c) a share button (d) a reminder alarm
  9. 9.👆 The user taps the button 7 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 5) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  10. 10.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Well done, " + nameBox.text + "!";
    };
    (a) Well done, nameBox.text! (b) Well done, Riya! (c) Riya (d) Well done!
  11. 11.True or false: notes to read offline fits saving on the phone. (a) True (b) False
  12. 12.💡 A good app idea starts with ___. (a) a cool logo (b) a problem to solve (c) a long name (d) many colours
  13. 13.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 60;
    }
    show(fee(12) + fee(7));
  14. 14.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) set a reminder time (b) water animations (c) log a glass of water (d) see today’s total
  15. 15.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Edit photo”
    2. tap the Me tab
    3. open “Map”
    How many times must you tap Back to reach the main screen of this tab?
  16. 16.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) on the phone (b) in the cloud
  17. 17.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 32; // start at 31
    line 2: score = score * 2; // double it
    line 3: score = score - 1; // take away 1
    line 4: show(score); // show it
  18. 18.👥 A clinic app has 260 patients, 160 doctors and 130 nurses as users. How many users does it have in all?
  19. 19.⚙️ What number does this app show?
    let km = 4; // typed by the user
    let metres = km * 1000;
    show(metres);
  20. 20.Which of these is true of a tab bar? (a) sits at the bottom (b) goes to the last screen (c) hides extra links (d) undoes one move
  21. 21.🔢 In a photo-post flow, which comes first: “open the camera screen” or “take the photo”? (a) take the photo (b) open the camera screen
  22. 22.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 37; // start at 37
    line 2: lives = lives - 1; // take away 1
    line 3: lives = lives * 2; // double it
    line 4: lives = lives + 4; // add 2
    line 5: show(lives); // show it
  23. 23.👆 The user taps the button 2 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
  24. 24.📱 Which one opens in a web browser: an app or a website? (a) an app (b) a website
  25. 25.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Confirm → Results → Offers → Shop → Address → Menu
    Design B: Home → Results → Pay → Search → Item → Address
    (a) Design A (b) Design B
  26. 26.🔀 What number does this shop app show?
    let total = 200;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  27. 27.Which of these app ideas solves no real problem? (a) a library due-date alert (b) an app that just says hi (c) a medicine reminder (d) a free study-room finder
  28. 28.📅 An app team plans for 2 days, builds for 6 days, tests for 3 days and releases on 1 more day. How many more days does building take than testing?
  29. 29.True or false: a free study-room finder solves no real problem. (a) False (b) True
  30. 30.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 24 px tall
    Done button: 64 px tall
    Save button: 64 px tall
    Cancel button: 68 px tall
    (a) Done (b) Save (c) Back (d) Cancel
  31. 31.🔢 In a photo-post flow, which comes FIRST? (a) take the photo (b) open the camera screen (c) add a filter (d) post the photo
  32. 32.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Order Snacks
    [text box] Name
    [button] Save
  33. 33.🧪 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(18) → expected 100
    Test 3: price(16) → expected 100
  34. 34.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) see if it is right (b) pick an answer (c) see the final score (d) read a question
  35. 35.🔀 What does this battery rule show?
    let battery = 58;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  36. 36.🔁 What number does this code show?
    let scores = [2, 5, 7];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  37. 37.🧪 One test case fails. Which one?
    🎟️ 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(12) → expected 50
    Test 2: price(18) → expected 100
    Test 3: price(14) → expected 100
    (a) Test 1 (b) Test 2 (c) Test 3
  38. 38.Which of these is true of a wireframe? (a) looks like the real app (b) has the real colours (c) shows where things go (d) uses the final pictures
  39. 39.👥 A cricket club app has 25 players, 135 coaches and 35 fans as users. How many users does it have in all?
  40. 40.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Shop → Cart → Item → Results
    Design B: Home → Address → Offers
    (a) Design A (b) Design B

Answer key

  1. 57
  2. so users do not get lost
  3. True
  4. 125
  5. Music
  6. 9
  7. open the menu
  8. “I keep missing the bus”
  9. 5
  10. Well done, Riya!
  11. True
  12. a problem to solve
  13. 120
  14. water animations
  15. 1
  16. in the cloud
  17. 63
  18. 550
  19. 4000
  20. sits at the bottom
  21. open the camera screen
  22. 76
  23. OFF
  24. a website
  25. Design B
  26. 200
  27. an app that just says hi
  28. 3
  29. False
  30. Back
  31. open the camera screen
  32. 1
  33. 3
  34. read a question
  35. Battery OK
  36. 7
  37. Test 3
  38. shows where things go
  39. 195
  40. Design B

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