← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 632 · 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.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 43; // start at 43
    line 2: points = points * 3; // double it
    line 3: points = points - 1; // take away 1
    line 4: show(points); // show it
  2. 2.🗒️ Version 1 of a quiz app must be ready in 13 days. How many days are left for extras after the must-haves?
    show a question: 1 days
    check the answer: 4 days
    show the score: 4 days
  3. 3.🧪 A test case is an input together with its ___. (a) expected result (b) app icon (c) font size (d) screen colour
  4. 4.📴 Which of these can often still work with no internet? (a) an online search (b) an installed app (c) a new website (d) a video call
  5. 5.💾 What number does this code show?
    let songs = ["Kites", "Sunrise", "Rain", "Monsoon"];
    songs.push("Stars");
    songs.push("Ocean");
    show(songs.length);
  6. 6.True or false: photos on two devices fits saving on the phone. (a) False (b) True
  7. 7.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(4));
  8. 8.True or false: a website is installed on a phone. (a) True (b) False
  9. 9.💾 What number does this code show?
    let stars = 3;
    stars = stars - 3;
    stars = stars + 5;
    show(stars);
  10. 10.🧪 How many of these test cases pass?
    🎟️ 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(10) → expected 50
    Test 2: price(13) → expected 100
    Test 3: price(15) → expected 100
  11. 11.Which colour pair is easy to read? (a) pale pink on white (b) light grey on white (c) red on green (d) white on black
  12. 12.🧰 Why write a function? (a) to reuse code (b) to hide errors (c) to slow the app (d) to make code longer
  13. 13.🎯 Is this a user need or a feature: “Small text is hard”? (a) a user need (b) a feature
  14. 14.Which of these fits saving in the cloud? (a) notes to read offline (b) a draft you are typing (c) photos on two devices (d) the sound on/off setting
  15. 15.🔢 In a sign-up flow, which comes FIRST? (a) type name and email (b) open the app (c) tap “Sign up” (d) see the home screen
  16. 16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 53; // start at 50
    line 2: lives = lives - 5; // take away 5
    line 3: lives = lives * 2; // double it
    line 4: lives = lives - 3; // take away 3
    line 5: show(lives); // show it
  17. 17.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 45; // start at 43
    line 2: score = score * 2; // double it
    line 3: score = score + 2; // add 2
    line 4: score = score + 5; // add 5
    line 5: show(score); // show it
  18. 18.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
    add a homework task: 1 days
    set a due date: 1 days
    see tasks by day: 4 days
  19. 19.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age < 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(16) → expected 100
    Test 2: price(18) → expected 100
    Test 3: price(7) → expected 50
  20. 20.💡 Which app idea solves this problem: nobody knows whose bag it is? (a) a homework planner (b) a study-room finder (c) a lost-and-found board (d) a bill splitter
  21. 21.🛠️ At which stage do you draw the user flow? (a) the release stage (b) the build stage (c) the test stage (d) the plan stage
  22. 22.🔁 What does a loop do? (a) draws icons (b) saves photos (c) repeats code (d) deletes code
  23. 23.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(30));
  24. 24.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 35; // start at 35
    line 2: stars = stars + 4; // add 3
    line 3: stars = stars * 2; // double it
    line 4: show(stars); // show it
  25. 25.🔀 What number does this shop app show?
    let total = 520;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  26. 26.🔍 Which is the odd one out? (a) a racing challenge (b) a calculator (c) a torch (d) a unit converter
  27. 27.Which of these is a user need? (a) a reminder alarm (b) “Small text is hard” (c) a search bar (d) a share button
  28. 28.🔁 What number does this code show?
    let scores = [10, 7, 1];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  29. 29.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(1));
  30. 30.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(10) → expected 100
    Test 2: price(8) → expected 50
    Test 3: price(14) → expected 100
    (a) Test 2 (b) Test 1 (c) Test 3
  31. 31.True or false: a puzzle with levels is a tool app. (a) False (b) True
  32. 32.🧪 What is the ACTUAL result of Test 1?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(6) → expected 50
    Test 2: price(14) → expected 100
    Test 3: price(15) → expected 100
  33. 33.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 39; // start at 39
    line 2: stars = stars * 2; // double it
    line 3: stars = stars * 2; // double it
    line 4: stars = stars + 2; // double it
    line 5: show(stars); // show it
  34. 34.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Edit photo”
    2. open “Help page”
    3. open “Score card”
    4. tap the Home tab
    How many times must you tap Back to reach the main screen of this tab?
  35. 35.🔢 In a quiz-app flow, which comes first: “pick an answer” or “see the final score”? (a) see the final score (b) pick an answer
  36. 36.🧩 Which input is best for turning something ON or OFF? (a) a text box (b) a title (c) a switch (d) a slider
  37. 37.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    missing the bus: 14 votes
    forgetting homework: 23 votes
    wasting pocket money: 15 votes
    (a) forgetting homework (b) wasting pocket money (c) missing the bus
  38. 38.True or false: tap to go Next is a button. (a) False (b) True
  39. 39.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Menu: 10 px
    Caption: 17 px
    Footer: 23 px
    Hint: 19 px
    Label: 18 px
  40. 40.🔍 Which is the odd one out? (a) list what users need (b) spot a problem to solve (c) write the code (d) talk to possible users

Answer key

  1. 128
  2. 4
  3. expected result
  4. an installed app
  5. 6
  6. False
  7. 70
  8. False
  9. 5
  10. 3
  11. white on black
  12. to reuse code
  13. a user need
  14. photos on two devices
  15. open the app
  16. 87
  17. 93
  18. 5
  19. 3
  20. a lost-and-found board
  21. the plan stage
  22. repeats code
  23. 90
  24. 76
  25. 470
  26. a racing challenge
  27. “Small text is hard”
  28. 10
  29. 40
  30. Test 1
  31. False
  32. 50
  33. 158
  34. 0
  35. pick an answer
  36. a switch
  37. forgetting homework
  38. True
  39. 1
  40. write the code

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