← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 527 · 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 an app, what is the home page of an app? (a) an input (b) data (c) a button (d) a screen
  2. 2.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) add money spent (b) export to a file (c) pie-chart colours (d) savings stickers
  3. 3.👆 The user taps the button 5 times. What number does the label show now?
    let coins = 4;
    button.onTap = function () {
      coins = coins + 3;
      label.text = coins;
    };
  4. 4.Which of these happens at the test stage? (a) draw the user flow (b) connect the data (c) try every button (d) sketch the screens
  5. 5.🌗 Is pale pink on white easy or hard to read on a button? (a) hard to read (b) easy to read
  6. 6.True or false: a weather-near-me app needs your contacts. (a) True (b) False
  7. 7.🔁 What number does this code show?
    let marks = [14, 2, 19];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  8. 8.🔘 Our rule: buttons are at least 48 px tall. The Next button is 24 px tall. How many px taller must it be?
  9. 9.🗂️ What kind of app is a puzzle with levels? (a) a health app (b) a learning app (c) a tool app (d) a game
  10. 10.Which colour pair is easy to read? (a) white on black (b) yellow on white (c) pale pink on white (d) dark blue on black
  11. 11.🧩 How many buttons does this app screen have?
    [title] Order Snacks
    [text box] Email
    [text box] Age
    [button] Cancel
    [button] Help
    [text box] Phone
    [slider] Text size
  12. 12.🔁 What number does this code show?
    let scores = [54, 59, 27, 90];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  13. 13.⚙️ What number does this app show?
    let bill = 108; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  14. 14.🔍 Which is the odd one out? (a) how users feel after (b) how easy sign-up is (c) how fast a task is done (d) the screen layout
  15. 15.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
  16. 16.True or false: a recipe finder is the best fit for a teen learning to make snacks. (a) True (b) False
  17. 17.⚙️ What number does this app show?
    let price = 110; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  18. 18.True or false: photos on two devices fits saving on the phone. (a) False (b) True
  19. 19.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 7 or more right answers.
    function result(right) {
      if (right > 7) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(7) → expected Pass
    Test 3: result(5) → expected Try again
    (a) Test 3 (b) Test 2 (c) Test 1
  20. 20.💾 What is a variable? (a) a phone setting (b) a type of screen (c) a named box for a value (d) a picture
  21. 21.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 30; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 1 (c) line 3 (d) line 2
  22. 22.🔍 Which is the odd one out? (a) colour as the only clue (b) labels on every icon (c) icons with no labels (d) tiny tap areas
  23. 23.🔀 When does the else part run? (a) when the test is false (b) never (c) when the test is true (d) always
  24. 24.🔀 What number does this shop app show?
    let total = 350;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  25. 25.🗒️ Why keep version 1 small? (a) to learn from users soon (b) to look bigger (c) to use up storage (d) to confuse users
  26. 26.True or false: a bus tracker needs your location. (a) True (b) False
  27. 27.🔍 Which is the odd one out? (a) speaking a command (b) adding up a bill (c) taking a photo (d) typing your age
  28. 28.Which of these is true of a wireframe? (a) uses plain grey boxes (b) shows the real fonts (c) uses the final pictures (d) has the real colours
  29. 29.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 8 or more right answers.
    function result(right) {
      if (right > 8) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(6) → expected Try again
    Test 3: result(10) → expected Pass
    (a) Test 2 (b) Test 1 (c) Test 3
  30. 30.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 38; // start at 35
    line 2: stars = stars + 5; // add 5
    line 3: stars = stars * 2; // double it
    line 4: show(stars); // show it
    (a) line 2 (b) line 3 (c) line 1
  31. 31.🧪 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(650) → expected 40
    Test 2: delivery(700) → expected 0
    Test 3: delivery(900) → expected 0
    (a) Test 1 (b) Test 2 (c) Test 3
  32. 32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 50; // start at 50
    line 2: lives = lives - 5; // take away 2
    line 3: lives = lives + 5; // add 5
    line 4: show(lives); // show it
  33. 33.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
    Design A: Home → Menu → Size → Item → Shop
    Design B: Home → Search → Confirm → Menu
  34. 34.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Video”
    2. tap Back
    3. open “Map”
    Which screen are you on now?
    (a) Quiz (b) Lessons (c) Video (d) Map
  35. 35.🧰 What is a function? (a) a list of colours (b) a type of phone (c) a screen size (d) a named block of code
  36. 36.⚙️ What number does this app show?
    let km = 5; // typed by the user
    let metres = km * 1000;
    show(metres);
  37. 37.👥 A clinic app has 210 patients, 25 doctors and 275 nurses as users. Which user group is the biggest? (a) patients (b) doctors (c) nurses
  38. 38.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “losing water bottles”?
    no quiet study place: 3 votes
    losing water bottles: 10 votes
    forgetting homework: 20 votes
  39. 39.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(90, 5));
  40. 40.🔀 What does this battery rule show?
    let battery = 35;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery

Answer key

  1. a screen
  2. add money spent
  3. 19
  4. try every button
  5. hard to read
  6. False
  7. 35
  8. 24
  9. a game
  10. white on black
  11. 2
  12. 1
  13. 54
  14. the screen layout
  15. No
  16. True
  17. 80
  18. False
  19. Test 2
  20. a named box for a value
  21. line 3
  22. labels on every icon
  23. when the test is false
  24. 350
  25. to learn from users soon
  26. True
  27. adding up a bill
  28. uses plain grey boxes
  29. Test 1
  30. line 1
  31. Test 2
  32. 53
  33. 3
  34. Map
  35. a named block of code
  36. 5000
  37. nurses
  38. 10
  39. 450
  40. Battery OK

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