← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 28 · 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.Which of these is true of a website? (a) updates from the store (b) is installed on a phone (c) has a home-screen icon (d) has a web address
  2. 2.🎨 UX stands for user ___. (a) extra (b) example (c) experience (d) express
  3. 3.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(30, 4));
  4. 4.True or false: a website has a home-screen icon. (a) True (b) False
  5. 5.🔢 In a sign-up flow, which comes first: “type name and email” or “enter the code sent”? (a) enter the code sent (b) type name and email
  6. 6.💡 Does an app idea like a medicine reminder solve a real problem? (a) No (b) Yes
  7. 7.🔢 In a photo-post flow, which comes FIRST? (a) add a filter (b) write a caption (c) post the photo (d) open the camera screen
  8. 8.🔢 In a food-order flow, what comes right after “open the menu”? (a) check the cart (b) track the order (c) pick a dish (d) pay for the order
  9. 9.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 40; // start at 38
    line 2: points = points - 1; // take away 1
    line 3: points = points * 2; // double it
    line 4: points = points + 4; // add 4
    line 5: show(points); // show it
  10. 10.Which of these is true of the back button? (a) undoes one move (b) shows 3 to 5 icons (c) sits at the bottom (d) opens a list of pages
  11. 11.🧪 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(7) → expected 50
    Test 2: price(13) → expected 100
    Test 3: price(8) → expected 100
    (a) Test 3 (b) Test 2 (c) Test 1
  12. 12.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Arjun", "Zoya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Meera (c) Hi, Arjun
  13. 13.🔢 When you make an app, which comes FIRST? (a) build the app (b) plan the screens (c) get an idea (d) release it
  14. 14.🗒️ Version 1 of a pocket-money tracker must be ready in 10 days. How many days are left for extras after the must-haves?
    add money received: 3 days
    add money spent: 4 days
    show the balance: 2 days
  15. 15.💡 Does an app idea like a button with no action solve a real problem? (a) Yes (b) No
  16. 16.🧩 In an app, what is tap to Save? (a) an input (b) a screen (c) a button (d) data
  17. 17.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(11) → expected 100
    Test 2: price(13) → expected 100
    Test 3: price(9) → expected 50
  18. 18.🧭 Why should every screen show where you are? (a) so users do not get lost (b) to look busy (c) to hide the menu (d) to use more battery
  19. 19.👥 A clinic app has 25 patients, 215 doctors and 170 nurses as users. How many more doctors than patients are there?
  20. 20.🧩 How many buttons does this app screen have?
    [title] Settings
    [text box] Name
    [slider] Text size
    [switch] Remind me
    [button] Next
  21. 21.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. tap the Settings tab
    2. open “Map”
    3. tap the Settings tab
    4. open “Score card”
    Which screen are you on now?
    (a) Map (b) Feed (c) Chat (d) Score card
  22. 22.🔀 What does this battery rule show?
    let battery = 27;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  23. 23.🗒️ What is a must-have feature? (a) a sound effect (b) one the app cannot skip (c) a nice extra (d) a colour theme
  24. 24.🧩 What does a button do when you tap it? (a) shows the time (b) saves the battery (c) changes the phone (d) starts an action
  25. 25.🧪 One test case fails. Which one?
    🎟️ 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(17) → expected 100
    Test 3: price(11) → expected 100
    (a) Test 2 (b) Test 1 (c) Test 3
  26. 26.⚙️ What number does this app show?
    let km = 5; // typed by the user
    let metres = km * 1000;
    show(metres);
  27. 27.👥 A clinic app has 90 patients, 130 doctors and 135 nurses as users. Which user group is the biggest? (a) patients (b) nurses (c) doctors
  28. 28.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] New Note
    [text box] Phone
    [slider] Brightness
    [button] Cancel
    [button] Save
    [button] Next
  29. 29.👆 Code that runs when an event happens is called a ___. (a) handler (b) header (c) headline (d) hashtag
  30. 30.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. tap the Me tab
    2. open “Badges”
    3. open “Video”
    Which screen are you on now?
    (a) Video (b) Quiz (c) Lessons (d) Badges
  31. 31.🗂️ What kind of app is a times-table quiz? (a) a health app (b) a learning app (c) a game (d) a tool app
  32. 32.🧪 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(17) → expected 100
    Test 2: price(8) → expected 50
    Test 3: price(12) → expected 100
    (a) Test 1 (b) Test 3 (c) Test 2
  33. 33.Which of these is about UI (the look)? (a) the screen layout (b) how fast a task is done (c) how many taps it takes (d) whether users get lost
  34. 34.🔀 What does this PIN rule show?
    let pin = "5570";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  35. 35.👥 A library app has 150 readers, 280 librarians and 210 volunteers as users. Which user group is the biggest? (a) readers (b) volunteers (c) librarians
  36. 36.🧰 Why write a function? (a) to slow the app (b) to hide errors (c) to reuse code (d) to make code longer
  37. 37.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 35; // start at 33
    line 2: stars = stars + 3; // add 3
    line 3: stars = stars - 1; // take away 1
    line 4: show(stars); // show it
    (a) line 1 (b) line 2 (c) line 3
  38. 38.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(1) + points(2));
  39. 39.Which colour pair is easy to read? (a) dark blue on black (b) red on green (c) pale pink on white (d) dark blue on white
  40. 40.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a lost-and-found board (c) a button with no action (d) a bill splitter

Answer key

  1. has a web address
  2. experience
  3. 120
  4. False
  5. type name and email
  6. Yes
  7. open the camera screen
  8. pick a dish
  9. 82
  10. undoes one move
  11. Test 3
  12. Hi, Zoya
  13. get an idea
  14. 1
  15. No
  16. a button
  17. 3
  18. so users do not get lost
  19. 190
  20. 1
  21. Score card
  22. Battery OK
  23. one the app cannot skip
  24. starts an action
  25. Test 3
  26. 5000
  27. nurses
  28. 2
  29. handler
  30. Video
  31. a learning app
  32. Test 3
  33. the screen layout
  34. PIN saved
  35. librarians
  36. to reuse code
  37. line 1
  38. 40
  39. dark blue on white
  40. a button with no action

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