← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 588 · 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.🗒️ In MVP, the M stands for ___. (a) music (b) mobile (c) minimum (d) maximum
  2. 2.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 500) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(500) → expected 0
    Test 2: delivery(350) → expected 40
    Test 3: delivery(650) → expected 0
    (a) Test 3 (b) Test 1 (c) Test 2
  3. 3.🔢 In a sign-up flow, which comes first: “open the app” or “make a password”? (a) make a password (b) open the app
  4. 4.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) output (c) input
  5. 5.🗒️ Version 1 of a water reminder must be ready in 12 days. How many days are left for extras after the must-haves?
    set a reminder time: 4 days
    log a glass of water: 1 days
    see today’s total: 2 days
  6. 6.Which colour pair is hard to read? (a) yellow on white (b) white on dark green (c) black on yellow (d) white on black
  7. 7.🔁 What number does this code show?
    let marks = [11, 13, 5, 19];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  8. 8.🔢 In a food-order flow, which comes first: “add it to the cart” or “track the order”? (a) add it to the cart (b) track the order
  9. 9.True or false: a homework planner is the best fit for a cook with no idea for dinner. (a) True (b) False
  10. 10.💾 What does this code show? (Positions start at 0.)
    let friends = ["Aman", "Kabir", "Meera", "Zoya", "Riya"];
    show(friends[1]);
    (a) Zoya (b) Aman (c) Kabir (d) Meera
  11. 11.🐞 After fixing a bug you should ___. (a) release at once (b) never test (c) test it again (d) delete the test
  12. 12.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
  13. 13.🔁 What number does this code show?
    let runs = [97, 83, 26, 84, 34];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  14. 14.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 80; // typed by the user
    line 2: let qty = 3; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 2 (c) line 4 (d) line 1
  15. 15.🔢 In a food-order flow, which comes FIRST? (a) pay for the order (b) pick a dish (c) open the menu (d) add it to the cart
  16. 16.👆 The user types Meera 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! (b) Meera (c) Well done, nameBox.text! (d) Well done, Meera!
  17. 17.🔐 Is this permission request fair or too much: timer → your photos? (a) too much (b) fair
  18. 18.📱 Which one is installed on a phone: an app or a website? (a) a website (b) an app
  19. 19.🔍 Which is the odd one out? (a) put it on an app store (b) write the store text (c) share the download link (d) sketch the screens
  20. 20.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Cancel button: 24 px tall
    Next button: 52 px tall
    Help button: 48 px tall
    Start button: 72 px tall
    (a) Help (b) Start (c) Next (d) Cancel
  21. 21.🐞 What is a good first step when an app gives a wrong result? (a) find where it goes wrong (b) buy a new phone (c) add more colours (d) delete the app
  22. 22.👆 An event in an app is ___. (a) something that happens (b) a colour theme (c) an app store (d) a kind of list
  23. 23.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 0, 1, 2 (c) 1, 2, 3 (d) 3
  24. 24.🧪 What is the ACTUAL result of Test 2?
    🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
    function price(age) {
      if (age < 13) {
        return 50;
      }
      return 100;
    }
    Test 1: price(10) → expected 50
    Test 2: price(13) → expected 100
    Test 3: price(18) → expected 100
  25. 25.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Body text: 25 px
    Footer: 13 px
    Title: 22 px
    (a) Footer (b) Body text (c) Title
  26. 26.Which of these happens at the build stage? (a) list what users need (b) write down the bugs (c) write the code (d) sketch the screens
  27. 27.🔀 What does this battery rule show?
    let battery = 37;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  28. 28.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Video”
    2. tap the Feed tab
    3. open “Video”
    4. tap Back
    Which screen are you on now?
    (a) Feed (b) Video (c) Settings (d) Chat
  29. 29.Which of these is an input? (a) a beep sound (b) checking a password (c) working out a tip (d) typing your age
  30. 30.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) pick a theme colour (b) earn stickers (c) share tasks to friends (d) add a homework task
  31. 31.Which of these happens at the test stage? (a) connect the data (b) try every button (c) sketch the screens (d) pick the features
  32. 32.True or false: a word battle is a game. (a) True (b) False
  33. 33.🌗 Is black on pale grey easy or hard to read on a button? (a) hard to read (b) easy to read
  34. 34.🔁 What is the LAST line this code shows?
    let names = ["Kabir", "Aman", "Riya", "Meera", "Zoya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Aman (c) Hi, Kabir (d) Hi, Riya
  35. 35.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 35; // start at 35
    line 2: stars = stars - 5; // add 5
    line 3: stars = stars + 6; // add 6
    line 4: show(stars); // show it
    (a) line 2 (b) line 3 (c) line 1
  36. 36.🎨 Is this about UI or UX: the button colours? (a) UI (b) UX
  37. 37.🧰 In function tip(bill), what is bill? (a) a parameter (b) an event (c) a loop (d) a screen
  38. 38.🔢 In a sign-up flow, what comes right after “tap “Sign up””? (a) see the home screen (b) type name and email (c) enter the code sent (d) make a password
  39. 39.📅 An app team plans for 5 days, builds for 5 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
  40. 40.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 116; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 4 (c) line 3 (d) line 2

Answer key

  1. minimum
  2. Test 1
  3. open the app
  4. input
  5. 5
  6. yellow on white
  7. 48
  8. add it to the cart
  9. False
  10. Kabir
  11. test it again
  12. poor design
  13. 3
  14. line 3
  15. open the menu
  16. Well done, Meera!
  17. too much
  18. an app
  19. sketch the screens
  20. Cancel
  21. find where it goes wrong
  22. something that happens
  23. 0, 1, 2
  24. 100
  25. Footer
  26. write the code
  27. Battery OK
  28. Feed
  29. typing your age
  30. add a homework task
  31. try every button
  32. True
  33. easy to read
  34. Hi, Zoya
  35. line 2
  36. UI
  37. a parameter
  38. type name and email
  39. 4
  40. line 3

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