← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 869 · 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.🐞 A comment in code (after //) is for ___. (a) the app store (b) the battery (c) people reading the code (d) the phone screen
  2. 2.💾 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
  3. 3.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 48 px tall
    Next button: 36 px tall
    Cancel button: 64 px tall
    (a) Cancel (b) Back (c) Next
  4. 4.🔀 What does this sign-up rule show?
    let age = 8;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  5. 5.🎯 Is this a user need or a feature: “I forget my homework”? (a) a user need (b) a feature
  6. 6.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(10) + fee(12));
  7. 7.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Match report”
    2. tap the Quiz tab
    3. open “Match report”
    4. tap the Quiz tab
    5. tap the Quiz tab
    Which screen are you on now?
    (a) Match report (b) Lessons (c) Me (d) Quiz
  8. 8.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Help page”
    2. open “Video”
    3. tap the Chat tab
    4. open “Help page”
    Which screen are you on now?
    (a) Feed (b) Help page (c) Video (d) Chat
  9. 9.True or false: a bill splitter solves a real problem. (a) True (b) False
  10. 10.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Pay → Confirm → Search → Cart
    Design B: Home → Item → Cart → Confirm → Pay → Shop → Search
    (a) Design A (b) Design B
  11. 11.🔐 Which permission does a speak-to-type notes app really need? (a) the microphone (b) location (c) the camera (d) contacts
  12. 12.🔁 What number does this code show?
    let steps = [12, 15, 15, 12];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  13. 13.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(85, 6));
  14. 14.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Zoya", "Aman"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Riya (b) Hi, Aman (c) Hi, Zoya
  15. 15.♿ Showing right or wrong only in red and green is a problem for ___. (a) fast typists (b) the server (c) the battery (d) colour-blind users
  16. 16.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Badges”
    2. tap the Search tab
    3. open “Score card”
    4. open “Match report”
    5. open “Video”
    How many times must you tap Back to reach the main screen of this tab?
  17. 17.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Done button: 40 px tall
    Send button: 60 px tall
    Cancel button: 32 px tall
  18. 18.💡 Which app idea solves this problem: projects pile up at once? (a) a homework planner (b) a medicine reminder (c) a bill splitter (d) a study-room finder
  19. 19.🖼️ How many parts (boxes) does this wireframe have?
    [ menu icon ]
    [ top bar ]
    [ big picture ]
    [ filter buttons ]
    [ search box ]
  20. 20.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 31; // start at 31
    line 2: stars = stars + 4; // add 4
    line 3: stars = stars - 4; // add 4
    line 4: stars = stars * 2; // double it
    line 5: show(stars); // show it
    (a) line 1 (b) line 4 (c) line 3 (d) line 2
  21. 21.True or false: tapping a button is processing. (a) True (b) False
  22. 22.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Score card”
    2. tap Back
    3. open “Map”
    How many times must you tap Back to reach the main screen of this tab?
  23. 23.🧰 In function tip(bill), what is bill? (a) a parameter (b) a loop (c) an event (d) a screen
  24. 24.👥 A clinic app has 130 patients, 135 doctors and 160 nurses as users. How many more nurses than doctors are there?
  25. 25.True or false: a wireframe shows where things go. (a) False (b) True
  26. 26.🎯 Which app would help this user most: a runner who forgets to sip water? (a) a bus tracker (b) a big-text reader (c) a water reminder (d) a homework planner
  27. 27.True or false: a speak-to-type notes app needs your contacts. (a) True (b) False
  28. 28.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    missing the bus: 20 votes
    no quiet study place: 10 votes
    losing water bottles: 13 votes
    (a) losing water bottles (b) no quiet study place (c) missing the bus
  29. 29.🔁 A loop over a list of 5 items runs its body how many times? (a) 5 (b) 6 (c) 4 (d) 1
  30. 30.Which of these requests is fair? (a) quiz app → microphone (b) map app → location (c) timer → your photos (d) torch → contacts
  31. 31.🔁 What number does this code show?
    let scores = [93, 53, 91, 16, 43];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  32. 32.Which of these is true of a final design? (a) uses plain grey boxes (b) is a quick sketch (c) has no real colours (d) uses the final pictures
  33. 33.True or false: “icons with no labels” helps everyone use the app. (a) False (b) True
  34. 34.🧭 Tapping a tab usually takes you to ___. (a) a random page (b) that tab’s main screen (c) the phone settings (d) the last app used
  35. 35.📴 Which of these can often still work with no internet? (a) a new website (b) an online search (c) a video call (d) an installed app
  36. 36.🔀 What does >= mean? (a) less than (b) smaller or equal (c) not equal (d) greater than or equal
  37. 37.Which colour pair is easy to read? (a) black on pale grey (b) pale pink on white (c) dark blue on black (d) yellow on white
  38. 38.True or false: the home page of an app is a screen. (a) False (b) True
  39. 39.🧪 One test case fails. Which one?
    🚚 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(700) → expected 0
    Test 2: delivery(750) → expected 0
    Test 3: delivery(550) → expected 40
    (a) Test 2 (b) Test 3 (c) Test 1
  40. 40.🧪 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

Answer key

  1. people reading the code
  2. on the phone
  3. Next
  4. Ask a parent
  5. a user need
  6. 40
  7. Quiz
  8. Help page
  9. True
  10. Design A
  11. the microphone
  12. 54
  13. 510
  14. Hi, Aman
  15. colour-blind users
  16. 3
  17. 1
  18. a homework planner
  19. 5
  20. line 3
  21. False
  22. 1
  23. a parameter
  24. 25
  25. True
  26. a water reminder
  27. False
  28. missing the bus
  29. 5
  30. map app → location
  31. 4
  32. uses the final pictures
  33. False
  34. that tab’s main screen
  35. an installed app
  36. greater than or equal
  37. black on pale grey
  38. True
  39. Test 1
  40. 40

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