← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 767 · 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.✏️ Do wireframes usually show the final colours? (a) No (b) Yes
  2. 2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 30; // start at 30
    line 2: coins = coins * 2; // double it
    line 3: coins = coins - 2; // take away 2
    line 4: coins = coins + 4; // take away 4
    line 5: show(coins); // show it
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  3. 3.🔢 When you make an app, which comes first: “test the app” or “plan the screens”? (a) test the app (b) plan the screens
  4. 4.⚙️ What number does this app show?
    let km = 7; // typed by the user
    let metres = km * 1000;
    show(metres);
  5. 5.🔀 What does this PIN rule show?
    let pin = "42033";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  6. 6.Which of these fits saving on the phone? (a) notes to read offline (b) photos on two devices (c) a shared to-do list (d) chat messages to friends
  7. 7.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) export to a file (b) add money received (c) savings stickers (d) pie-chart colours
  8. 8.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(85, 5));
  9. 9.🔍 Which is the odd one out? (a) checking a password (b) adding up a bill (c) speaking a command (d) working out a tip
  10. 10.True or false: a wireframe is a quick sketch. (a) True (b) False
  11. 11.🔀 What number does this shop app show?
    let total = 450;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  12. 12.🧭 Which part of navigation shows 3 to 5 icons? (a) the back button (b) a menu button (c) a tab bar
  13. 13.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2 (b) 1, 2, 3 (c) 0, 1, 2, 3 (d) 3
  14. 14.🔘 Is this good or poor button design: a clear word like Save? (a) poor design (b) good design
  15. 15.True or false: a draft you are typing fits saving in the cloud. (a) True (b) False
  16. 16.💾 What number does this code show?
    let songs = ["Kites", "Stars", "Sunrise"];
    songs.push("Rain");
    songs.push("Ocean");
    show(songs.length);
  17. 17.📊 Survey: which problem bugs you most? How many more votes did “wasting pocket money” get than “forgetting homework”?
    forgetting homework: 7 votes
    wasting pocket money: 21 votes
    forgetting birthdays: 3 votes
  18. 18.🧪 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(12) → expected 100
    Test 2: price(14) → expected 100
    Test 3: price(11) → expected 50
    (a) Test 1 (b) Test 2 (c) Test 3
  19. 19.🧩 In an app, what is tap to Save? (a) an input (b) a screen (c) a button (d) data
  20. 20.💾 Data saved only on the phone is lost when ___. (a) the app is closed (b) you send a message (c) the screen turns off (d) the phone is lost
  21. 21.🔢 When you make an app, which comes LAST? (a) release it (b) plan the screens (c) build the app (d) test the app
  22. 22.🧪 A test case is an input together with its ___. (a) app icon (b) font size (c) expected result (d) screen colour
  23. 23.Which colour pair is easy to read? (a) black on yellow (b) pale pink on white (c) light grey on white (d) red on green
  24. 24.True or false: a website opens from a link. (a) False (b) True
  25. 25.Which of these is true of a website? (a) has a home-screen icon (b) is installed on a phone (c) opens in a web browser (d) comes from an app store
  26. 26.👥 A library app has 255 readers, 140 librarians and 150 volunteers as users. Which user group is the biggest? (a) librarians (b) readers (c) volunteers
  27. 27.True or false: a big, easy tap area is good button design. (a) False (b) True
  28. 28.🔀 What does >= mean? (a) less than (b) not equal (c) greater than or equal (d) smaller or equal
  29. 29.🔀 Which badge does this quiz app show?
    let marks = 20;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Silver (b) Gold (c) Bronze
  30. 30.Which colour pair is hard to read? (a) white on black (b) black on yellow (c) pale pink on white (d) dark blue on white
  31. 31.Which of these is true of the back button? (a) shows 3 to 5 icons (b) goes to the last screen (c) sits at the bottom (d) switches main sections
  32. 32.📅 An app team plans for 4 days, builds for 8 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
  33. 33.🔍 Which is the odd one out? (a) a cricket run chase (b) a sleep tracker (c) a step counter (d) a water reminder
  34. 34.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) on the phone (b) in the cloud
  35. 35.🎯 Is this a user need or a feature: “Small text is hard”? (a) a user need (b) a feature
  36. 36.Which of these is about UX (the experience)? (a) the theme colours (b) the font size (c) the button colours (d) whether users get lost
  37. 37.👆 The user taps the button 6 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 4) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  38. 38.🧪 What is the ACTUAL result of Test 3?
    🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 800) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(1050) → expected 0
    Test 2: delivery(800) → expected 0
    Test 3: delivery(600) → expected 40
  39. 39.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 40;
    }
    show(fee(8) + fee(3));
  40. 40.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 50;
    }
    show(fee(12) + fee(2));

Answer key

  1. No
  2. line 4
  3. plan the screens
  4. 7000
  5. Use 4 digits
  6. notes to read offline
  7. add money received
  8. 425
  9. speaking a command
  10. True
  11. 450
  12. a tab bar
  13. 0, 1, 2
  14. good design
  15. False
  16. 5
  17. 14
  18. Test 1
  19. a button
  20. the phone is lost
  21. release it
  22. expected result
  23. black on yellow
  24. True
  25. opens in a web browser
  26. readers
  27. True
  28. greater than or equal
  29. Bronze
  30. pale pink on white
  31. goes to the last screen
  32. 7
  33. a cricket run chase
  34. in the cloud
  35. a user need
  36. whether users get lost
  37. 4
  38. 40
  39. 40
  40. 50

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