← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 746 · 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 app idea solves this problem: friends argue over who pays? (a) a medicine reminder (b) a study-room finder (c) a bill splitter (d) a homework planner
  2. 2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 36; // start at 36
    line 2: score = score * 3; // double it
    line 3: score = score * 2; // double it
    line 4: show(score); // show it
    (a) line 3 (b) line 2 (c) line 1
  3. 3.👆 The user taps the button 4 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) OFF (b) ON
  4. 4.💾 What does this code show? (Positions start at 0.)
    let notes = ["Maths", "Art", "Music", "Sports"];
    show(notes[1]);
    (a) Art (b) Music (c) Maths (d) Sports
  5. 5.🔢 After an app is released, what comes right after “fix and improve”? (a) list what to fix (b) test it again (c) release an update (d) read user reviews
  6. 6.🎨 Is this about UI or UX: the theme colours? (a) UX (b) UI
  7. 7.💡 A good app idea starts with ___. (a) many colours (b) a cool logo (c) a long name (d) a problem to solve
  8. 8.👥 A school app has 270 students, 110 teachers and 95 parents as users. How many users does it have in all?
  9. 9.💡 Which is a problem statement? (a) “Make it fast” (b) “Use blue buttons” (c) “Add a logo” (d) “Kids forget homework”
  10. 10.True or false: the icon shapes is about UI (the look). (a) False (b) True
  11. 11.🧪 What is the ACTUAL result of Test 3?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(400) → expected 0
    Test 2: delivery(450) → expected 0
    Test 3: delivery(300) → expected 40
  12. 12.💡 Which app idea solves this problem: pupils forget due dates? (a) a medicine reminder (b) a homework planner (c) a bill splitter (d) a study-room finder
  13. 13.💾 In most code, the first item of a list is at position ___. (a) 10 (b) 2 (c) 0 (d) 1
  14. 14.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 6 or more right answers.
    function result(right) {
      if (right > 6) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(6) → expected Pass
    Test 3: result(5) → expected Try again
    (a) Test 1 (b) Test 2 (c) Test 3
  15. 15.🖼️ In this wireframe (top to bottom), what is right below the Add button?
    [ Add button ]
    [ Save button ]
    [ big picture ]
    [ title text ]
    (a) big picture (b) Save button (c) title text
  16. 16.🔁 What number does this code show?
    let runs = [25, 45, 94, 27];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  17. 17.True or false: your high score is a screen. (a) False (b) True
  18. 18.👆 The user types Kabir 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) Kabir (c) Well done! (d) Well done, Kabir!
  19. 19.🧩 Which input is best for choosing a volume level? (a) a text box (b) a switch (c) a title (d) a slider
  20. 20.Which of these is data? (a) your saved notes (b) the game-over page (c) the log-in page (d) a date picker
  21. 21.🖼️ In this wireframe (top to bottom), what is right below the list of items?
    [ Add button ]
    [ Save button ]
    [ list of items ]
    [ search box ]
    [ big picture ]
    [ top bar ]
    (a) top bar (b) Save button (c) search box (d) Add button
  22. 22.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 30;
    }
    show(fee(10) + fee(5));
  23. 23.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 53; // start at 50
    line 2: coins = coins + 3; // add 3
    line 3: coins = coins * 2; // double it
    line 4: coins = coins - 2; // take away 2
    line 5: show(coins); // show it
    (a) line 1 (b) line 4 (c) line 3 (d) line 2
  24. 24.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 39; // start at 39
    line 2: lives = lives * 3; // double it
    line 3: lives = lives + 6; // add 6
    line 4: show(lives); // show it
    (a) line 2 (b) line 3 (c) line 1
  25. 25.🧭 Which part of navigation undoes one move? (a) a menu button (b) a tab bar (c) the back button
  26. 26.🔢 In a photo-post flow, what comes right after “add a filter”? (a) open the camera screen (b) take the photo (c) post the photo (d) write a caption
  27. 27.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(35, 2));
  28. 28.🔀 Which badge does this quiz app show?
    let marks = 40;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Silver (b) Bronze (c) Gold
  29. 29.🎯 Is this a user need or a feature: “What should I cook?”? (a) a feature (b) a user need
  30. 30.Which of these is about UX (the experience)? (a) how many taps it takes (b) the button colours (c) the font size (d) the icon shapes
  31. 31.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(300) → expected 0
    Test 2: delivery(450) → expected 0
    Test 3: delivery(250) → expected 40
    (a) Test 3 (b) Test 2 (c) Test 1
  32. 32.🎯 Which app would help this user most: a grandparent with weak eyesight? (a) a water reminder (b) a bus tracker (c) a recipe finder (d) a big-text reader
  33. 33.Which of these is true of a final design? (a) has no real colours (b) uses plain grey boxes (c) shows where things go (d) uses the final pictures
  34. 34.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 33; // start at 32
    line 2: coins = coins - 4; // take away 4
    line 3: coins = coins - 4; // take away 4
    line 4: show(coins); // show it
    (a) line 1 (b) line 2 (c) line 3
  35. 35.🎯 Which app would help this user most: a pupil juggling five projects? (a) a recipe finder (b) a pocket-money tracker (c) a big-text reader (d) a homework planner
  36. 36.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 51; // start at 50
    line 2: lives = lives + 2; // add 2
    line 3: lives = lives + 3; // add 3
    line 4: lives = lives - 1; // take away 1
    line 5: show(lives); // show it
  37. 37.⚙️ What number does this app show?
    let price = 360; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  38. 38.True or false: a water reminder is the best fit for a gamer who forgets to drink. (a) False (b) True
  39. 39.Which of these is true of a final design? (a) uses plain grey boxes (b) is a quick sketch (c) looks like the real app (d) shows where things go
  40. 40.🔐 A torch app asks for your contacts. What should you do? (a) post them online (b) allow it (c) deny it (d) share them all

Answer key

  1. a bill splitter
  2. line 2
  3. OFF
  4. Art
  5. test it again
  6. UI
  7. a problem to solve
  8. 475
  9. “Kids forget homework”
  10. True
  11. 40
  12. a homework planner
  13. 0
  14. Test 2
  15. Save button
  16. 1
  17. False
  18. Well done, Kabir!
  19. a slider
  20. your saved notes
  21. search box
  22. 60
  23. line 1
  24. line 2
  25. the back button
  26. write a caption
  27. 70
  28. Bronze
  29. a user need
  30. how many taps it takes
  31. Test 1
  32. a big-text reader
  33. uses the final pictures
  34. line 1
  35. a homework planner
  36. 54
  37. 350
  38. True
  39. looks like the real app
  40. deny it

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