← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 130 · 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.True or false: the user types a letter is a text event. (a) True (b) False
  2. 2.True or false: strong colour contrast is poor button design. (a) False (b) True
  3. 3.♿ A screen has 5 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
  4. 4.Which of these requests is fair? (a) timer → your photos (b) quiz app → microphone (c) calling app → contacts (d) torch → contacts
  5. 5.True or false: the app starts up is a load event. (a) False (b) True
  6. 6.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 31; // start at 31
    line 2: lives = lives + 5; // add 5
    line 3: lives = lives + 2; // take away 2
    line 4: show(lives); // show it
  7. 7.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) phone cases (b) easy cases (c) edge cases (d) old cases
  8. 8.True or false: a puzzle with levels is a game. (a) True (b) False
  9. 9.🛠️ At which stage do you write down the bugs? (a) the test stage (b) the plan stage (c) the idea stage (d) the build stage
  10. 10.👆 The user taps the button 5 times. What number does the label show now?
    let score = 6;
    button.onTap = function () {
      score = score + 3;
      label.text = score;
    };
  11. 11.🧭 What does the back button usually do? (a) deletes the page (b) closes all apps (c) opens settings (d) goes to the last screen
  12. 12.🎯 Which app would help this user most: a child saving up for a cycle? (a) a water reminder (b) a pocket-money tracker (c) a big-text reader (d) a recipe finder
  13. 13.🔢 When you make an app, which comes first: “get an idea” or “build the app”? (a) build the app (b) get an idea
  14. 14.💾 What number does this code show?
    let coins = 6;
    coins = coins - 1;
    coins = coins + 1;
    show(coins);
  15. 15.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(8));
  16. 16.💾 pop() takes off the last item. What does this code show?
    let songs = ["Stars", "Kites", "Rain", "Sunrise"];
    songs.pop();
    show(songs[songs.length - 1]);
    (a) Rain (b) Stars (c) Kites (d) Sunrise
  17. 17.🧪 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(8) → expected Pass
    Test 2: result(2) → expected Try again
    Test 3: result(7) → expected Pass
  18. 18.🗂️ What kind of app is a times-table quiz? (a) a health app (b) a tool app (c) a learning app (d) a game
  19. 19.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(5) + points(5));
  20. 20.🧩 What do we call one full page of an app? (a) a screen (b) a variable (c) a battery (d) a cable
  21. 21.🌗 Is black on yellow easy or hard to read on a button? (a) easy to read (b) hard to read
  22. 22.🔍 Which is the odd one out? (a) the screen layout (b) how fast a task is done (c) the theme colours (d) the icon shapes
  23. 23.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(14));
  24. 24.🚀 Which version is newer: 4.2.1 or 4.18.0? (a) 4.2.1 (b) 4.18.0
  25. 25.🧭 Which part of navigation undoes one move? (a) a tab bar (b) a menu button (c) the back button
  26. 26.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) share tasks to friends (c) see tasks by day (d) set a due date
  27. 27.🔢 In a photo-post flow, which comes first: “take the photo” or “post the photo”? (a) take the photo (b) post the photo
  28. 28.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(15, 6));
  29. 29.🎯 Is this a user need or a feature: a share button? (a) a feature (b) a user need
  30. 30.🔁 What number does this code show?
    let scores = [53, 45, 63, 21, 93];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  31. 31.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(14));
  32. 32.🚀 Which version is newer: 1.10.0 or 1.5.2? (a) 1.5.2 (b) 1.10.0
  33. 33.🧪 What is the ACTUAL result of Test 3?
    🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 500) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(300) → expected 40
    Test 2: delivery(500) → expected 0
    Test 3: delivery(800) → expected 0
  34. 34.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) set a due date (b) add a homework task (c) earn stickers (d) see tasks by day
  35. 35.♿ Does this help everyone, or make the app harder to use: captions on videos? (a) makes it harder (b) helps everyone
  36. 36.True or false: a website updates from the store. (a) False (b) True
  37. 37.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Caption: 16 px
    Footer: 19 px
    Label: 11 px
    Title: 12 px
  38. 38.Which of these is true of a final design? (a) is a quick sketch (b) uses plain grey boxes (c) shows where things go (d) looks like the real app
  39. 39.👥 A cricket club app has 190 players, 115 coaches and 105 fans as users. Which user group is the biggest? (a) players (b) coaches (c) fans
  40. 40.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 34; // start at 34
    line 2: score = score + 3; // add 3
    line 3: score = score * 3; // double it
    line 4: show(score); // show it

Answer key

  1. True
  2. False
  3. 4
  4. calling app → contacts
  5. True
  6. 34
  7. edge cases
  8. True
  9. the test stage
  10. 21
  11. goes to the last screen
  12. a pocket-money tracker
  13. get an idea
  14. 6
  15. 16
  16. Rain
  17. 3
  18. a learning app
  19. 110
  20. a screen
  21. easy to read
  22. how fast a task is done
  23. 42
  24. 4.18.0
  25. the back button
  26. share tasks to friends
  27. take the photo
  28. 90
  29. a feature
  30. 4
  31. 28
  32. 1.10.0
  33. 0
  34. earn stickers
  35. helps everyone
  36. False
  37. 2
  38. looks like the real app
  39. players
  40. 111

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