← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 526 · 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.🧪 What is the ACTUAL result of Test 1?
    🚚 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(850) → expected 0
    Test 2: delivery(650) → expected 40
    Test 3: delivery(800) → expected 0
  2. 2.🔢 In a photo-post flow, what comes right after “open the camera screen”? (a) write a caption (b) post the photo (c) take the photo (d) add a filter
  3. 3.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 5 or more right answers.
    function result(right) {
      if (right >= 5) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(3) → expected Try again
    Test 2: result(5) → expected Pass
    Test 3: result(6) → expected Pass
  4. 4.🧪 A test case is an input together with its ___. (a) font size (b) app icon (c) screen colour (d) expected result
  5. 5.👆 The user taps the button 3 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
  6. 6.🧰 In function tip(bill), what is bill? (a) a loop (b) a screen (c) a parameter (d) an event
  7. 7.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Start button: 40 px tall
    Save button: 72 px tall
    Next button: 52 px tall
    Back button: 64 px tall
    (a) Save (b) Back (c) Next (d) Start
  8. 8.🔀 In this course’s code, which sign tests “is equal to”? (a) === (b) = (c) => (d) !==
  9. 9.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Start button: 36 px tall
    Help button: 48 px tall
    Send button: 48 px tall
  10. 10.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a lost-and-found board (c) a page of random dots (d) a bill splitter
  11. 11.🔢 In a photo-post flow, which comes first: “post the photo” or “take the photo”? (a) post the photo (b) take the photo
  12. 12.📴 Which of these can often still work with no internet? (a) a new website (b) a video call (c) an installed app (d) an online search
  13. 13.🔀 When does the else part run? (a) never (b) when the test is false (c) when the test is true (d) always
  14. 14.👆 What kind of event is this: one second passes? (a) a load event (b) a tap event (c) a text event (d) a timer event
  15. 15.⚙️ What number does this app show?
    let bill = 57; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);
  16. 16.🎯 Which app would help this user most: a student who keeps forgetting due dates? (a) a homework planner (b) a pocket-money tracker (c) a water reminder (d) a bus tracker
  17. 17.🔘 Is this good or poor button design: a big, easy tap area? (a) good design (b) poor design
  18. 18.Which of these is true of an app? (a) has a web address (b) needs no installing (c) opens in a web browser (d) is installed on a phone
  19. 19.True or false: a step counter is a game. (a) False (b) True
  20. 20.🔁 What number does this code show?
    let scores = [20, 3, 17, 20, 2];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  21. 21.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    losing water bottles: 4 votes
    forgetting homework: 5 votes
    forgetting birthdays: 6 votes
    (a) forgetting birthdays (b) forgetting homework (c) losing water bottles
  22. 22.True or false: a water reminder is the best fit for a runner who forgets to sip water. (a) True (b) False
  23. 23.🗒️ A to-do app with no “add a task” feature is ___. (a) well planned (b) a nice extra (c) ready to release (d) missing a must-have
  24. 24.Which of these is true of a website? (a) opens from a link (b) is installed on a phone (c) updates from the store (d) has a home-screen icon
  25. 25.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 170; // typed by the user
    line 2: let off = 40; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 1 (b) line 2 (c) line 3 (d) line 4
  26. 26.🔀 What number does this shop app show?
    let total = 470;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  27. 27.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 42; // start at 40
    line 2: score = score * 2; // double it
    line 3: score = score * 2; // double it
    line 4: show(score); // show it
    (a) line 1 (b) line 3 (c) line 2
  28. 28.True or false: tap to Save is data. (a) False (b) True
  29. 29.Which of these fits saving on the phone? (a) a class leaderboard (b) the sound on/off setting (c) chat messages to friends (d) a shared to-do list
  30. 30.⚙️ What number does this app show?
    let bill = 90; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  31. 31.True or false: space between buttons is good button design. (a) True (b) False
  32. 32.🧪 What is the ACTUAL result of Test 2?
    🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
    function price(age) {
      if (age <= 8) {
        return 50;
      }
      return 100;
    }
    Test 1: price(5) → expected 50
    Test 2: price(8) → expected 100
    Test 3: price(10) → expected 100
  33. 33.🔀 What number does this shop app show?
    let total = 880;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  34. 34.🔢 In a food-order flow, which comes first: “open the menu” or “pick a dish”? (a) pick a dish (b) open the menu
  35. 35.🗂️ What kind of app is a racing challenge? (a) a learning app (b) a tool app (c) a game (d) a health app
  36. 36.👥 A cricket club app has 110 players, 25 coaches and 235 fans as users. Which user group is the biggest? (a) coaches (b) players (c) fans
  37. 37.♿ Does this help everyone, or make the app harder to use: text that can grow? (a) helps everyone (b) makes it harder
  38. 38.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    forgetting birthdays: 3 votes
    missing the bus: 4 votes
    no quiet study place: 6 votes
    (a) forgetting birthdays (b) missing the bus (c) no quiet study place
  39. 39.💾 Which works with no internet at all? (a) a cloud leaderboard (b) data saved on the phone (c) a shared chat (d) a cloud backup
  40. 40.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) set a reminder time (b) share your streak (c) custom alert sounds (d) water animations

Answer key

  1. 0
  2. take the photo
  3. 3
  4. expected result
  5. ON
  6. a parameter
  7. Start
  8. ===
  9. 2
  10. a page of random dots
  11. take the photo
  12. an installed app
  13. when the test is false
  14. a timer event
  15. 19
  16. a homework planner
  17. good design
  18. is installed on a phone
  19. False
  20. 62
  21. forgetting birthdays
  22. True
  23. missing a must-have
  24. opens from a link
  25. line 3
  26. 470
  27. line 1
  28. False
  29. the sound on/off setting
  30. 18
  31. True
  32. 50
  33. 830
  34. open the menu
  35. a game
  36. fans
  37. helps everyone
  38. no quiet study place
  39. data saved on the phone
  40. set a reminder time

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