← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 253 · 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 does a loop do? (a) draws icons (b) saves photos (c) deletes code (d) repeats code
  2. 2.🔢 When you make an app, which comes LAST? (a) test the app (b) get an idea (c) build the app (d) release it
  3. 3.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Cancel button: 36 px tall
    Start button: 68 px tall
    Help button: 48 px tall
    (a) Start (b) Help (c) Cancel
  4. 4.🗂️ What kind of app is a puzzle with levels? (a) a game (b) a learning app (c) a tool app (d) a health app
  5. 5.🧪 How many of these test cases pass?
    📝 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(6) → expected Try again
    Test 3: result(9) → expected Pass
  6. 6.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Cancel button: 64 px tall
    Next button: 24 px tall
    Back button: 52 px tall
    Save button: 48 px tall
    (a) Cancel (b) Save (c) Back (d) Next
  7. 7.True or false: tap to Send is a button. (a) True (b) False
  8. 8.👥 A school app has 170 students, 135 teachers and 20 parents as users. How many users does it have in all?
  9. 9.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. tap the Home tab
    2. tap the Search tab
    3. open “Badges”
    4. open “Help page”
    5. tap Back
    Which screen are you on now?
    (a) Home (b) Badges (c) Search (d) Help page
  10. 10.🖼️ How many parts (boxes) does this wireframe have?
    [ search box ]
    [ big picture ]
    [ Add button ]
    [ list of items ]
    [ filter buttons ]
  11. 11.True or false: the user presses Save is a timer event. (a) True (b) False
  12. 12.🧭 Tapping a tab usually takes you to ___. (a) the phone settings (b) that tab’s main screen (c) the last app used (d) a random page
  13. 13.🗒️ Version 1 of a water reminder must be ready in 12 days. How many days are left for extras after the must-haves?
    set a reminder time: 3 days
    log a glass of water: 4 days
    see today’s total: 3 days
  14. 14.📱 Which one opens in a web browser: an app or a website? (a) a website (b) an app
  15. 15.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “losing water bottles”?
    no quiet study place: 16 votes
    losing water bottles: 5 votes
    missing the bus: 21 votes
  16. 16.🔀 What does this sign-up rule show?
    let age = 11;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  17. 17.💾 Which works with no internet at all? (a) data saved on the phone (b) a cloud leaderboard (c) a cloud backup (d) a shared chat
  18. 18.👥 A cricket club app has 75 players, 190 coaches and 105 fans as users. Which user group is the biggest? (a) fans (b) players (c) coaches
  19. 19.🔁 What number does this code show?
    let scores = [19, 18, 5];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  20. 20.🧪 What is the actual result of a test? (a) the app’s name (b) what we hope for (c) what the app really does (d) the test’s number
  21. 21.♿ Showing right or wrong only in red and green is a problem for ___. (a) fast typists (b) the battery (c) colour-blind users (d) the server
  22. 22.🔁 Why use a loop to show 100 messages? (a) less code to write (b) it hides them (c) it uses more lines (d) it is slower
  23. 23.🧪 How many of these test cases pass?
    🎟️ 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(14) → expected 100
    Test 2: price(11) → expected 100
    Test 3: price(7) → expected 50
  24. 24.🔍 Which is the odd one out? (a) a sleep tracker (b) a water reminder (c) a cricket run chase (d) a step counter
  25. 25.💡 Does an app idea like a button with no action solve a real problem? (a) Yes (b) No
  26. 26.🔍 Which is the odd one out? (a) icons with no labels (b) tiny tap areas (c) strong colour contrast (d) sudden loud sounds
  27. 27.👆 The user taps the button 1 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 5) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  28. 28.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) show the balance (b) add money received (c) savings stickers (d) add money spent
  29. 29.🧩 In an app, what is the log-in page? (a) data (b) a button (c) an input (d) a screen
  30. 30.Which of these is a button? (a) tap to Start (b) a date picker (c) the game-over page (d) a box to type a name
  31. 31.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 48; // start at 48
    line 2: score = score + 3; // add 3
    line 3: score = score + 5; // take away 5
    line 4: show(score); // show it
    (a) line 1 (b) line 2 (c) line 3
  32. 32.👆 The user taps the button 2 times. What number does the label show now?
    let score = 4;
    button.onTap = function () {
      score = score + 2;
      label.text = score;
    };
  33. 33.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Caption: 22 px
    Title: 19 px
    Hint: 12 px
    Body text: 19 px
    (a) Title (b) Body text (c) Hint (d) Caption
  34. 34.🔁 What number does this code show?
    let steps = [16, 5, 2];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  35. 35.📱 The word “app” is short for ___. (a) application (b) appointment (c) apparatus (d) appetite
  36. 36.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
    function price(age) {
      if (age <= 13) {
        return 50;
      }
      return 100;
    }
    Test 1: price(13) → expected 100
    Test 2: price(17) → expected 100
    Test 3: price(12) → expected 50
    (a) Test 3 (b) Test 2 (c) Test 1
  37. 37.True or false: a recipe finder is the best fit for a cook with no idea for dinner. (a) False (b) True
  38. 38.🧩 Which of these is a button on this screen?
    [title] New Note
    [button] Help
    [button] Send
    [button] Start
    [slider] Text size
    [switch] Remind me
    [text box] Name
    (a) Remind me (b) Start (c) Text size (d) Name
  39. 39.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 44; // start at 44
    line 2: points = points + 2; // take away 2
    line 3: points = points * 2; // double it
    line 4: show(points); // show it
  40. 40.🔁 What number does this code show?
    let steps = [15, 2, 1];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);

Answer key

  1. repeats code
  2. release it
  3. Cancel
  4. a game
  5. 3
  6. Next
  7. True
  8. 325
  9. Badges
  10. 5
  11. False
  12. that tab’s main screen
  13. 2
  14. a website
  15. 16
  16. Ask a parent
  17. data saved on the phone
  18. coaches
  19. 42
  20. what the app really does
  21. colour-blind users
  22. less code to write
  23. 3
  24. a cricket run chase
  25. No
  26. strong colour contrast
  27. 1
  28. savings stickers
  29. a screen
  30. tap to Start
  31. line 3
  32. 8
  33. Hint
  34. 16
  35. application
  36. Test 1
  37. True
  38. Start
  39. 92
  40. 15

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