← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 16 · 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.Which of these is a button? (a) the game-over page (b) a switch for dark mode (c) a date picker (d) tap to Send
  2. 2.💾 Where should the app save your last game level: on the phone or in the cloud? (a) in the cloud (b) on the phone
  3. 3.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Title: 19 px
    Menu: 15 px
    Footer: 15 px
  4. 4.🔢 In a food-order flow, what comes right after “pick a dish”? (a) track the order (b) pay for the order (c) open the menu (d) add it to the cart
  5. 5.🔁 What number does this code show?
    let runs = [20, 21, 27];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  6. 6.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Badges”
    2. open “Map”
    3. tap Back
    Which screen are you on now?
    (a) Lessons (b) Badges (c) Map (d) Quiz
  7. 7.🧰 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(6) + fee(12));
  8. 8.🔢 When you make an app, which comes FIRST? (a) release it (b) get an idea (c) test the app (d) build the app
  9. 9.True or false: a big-text reader is the best fit for a parent waiting at the bus stop. (a) False (b) True
  10. 10.🔢 After an app is released, what comes right after “list what to fix”? (a) test it again (b) release an update (c) fix and improve (d) read user reviews
  11. 11.📲 What happens when you tap an app’s icon? (a) the phone charges (b) the app opens (c) the app is deleted (d) the sound turns off
  12. 12.🔁 What number does this code show?
    let scores = [10, 96, 62];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  13. 13.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Map”
    2. open “Help page”
    3. tap the Feed tab
    4. open “Edit photo”
    How many times must you tap Back to reach the main screen of this tab?
  14. 14.🔁 What number does this code show?
    let steps = [7, 16, 17];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  15. 15.🛠️ At which stage do you try every button? (a) the release stage (b) the plan stage (c) the test stage (d) the build stage
  16. 16.🔢 In a photo-post flow, which comes first: “write a caption” or “take the photo”? (a) take the photo (b) write a caption
  17. 17.💾 What number does this code show?
    let songs = ["Kites", "Rain", "Monsoon"];
    songs.push("Ocean");
    show(songs.length);
  18. 18.🧩 How many buttons does this app screen have?
    [title] Order Snacks
    [text box] Age
    [button] Next
    [text box] City
    [text box] Name
    [button] Start
  19. 19.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 38; // start at 38
    line 2: stars = stars * 2; // double it
    line 3: stars = stars * 2; // double it
    line 4: stars = stars + 7; // add 6
    line 5: show(stars); // show it
    (a) line 2 (b) line 1 (c) line 3 (d) line 4
  20. 20.🔁 What number does this code show?
    let marks = [3, 13, 7, 17];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  21. 21.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) share tasks to friends (b) earn stickers (c) pick a theme colour (d) add a homework task
  22. 22.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 34; // start at 34
    line 2: score = score + 4; // add 4
    line 3: score = score - 2; // add 2
    line 4: show(score); // show it
  23. 23.🔁 What number does this code show?
    let runs = [3, 20, 8, 12];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  24. 24.Which of these is true of a wireframe? (a) uses plain grey boxes (b) shows the real fonts (c) has the real colours (d) looks like the real app
  25. 25.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 41; // start at 41
    line 2: coins = coins - 4; // take away 3
    line 3: coins = coins * 2; // double it
    line 4: show(coins); // show it
    (a) line 2 (b) line 3 (c) line 1
  26. 26.🔘 Our rule: buttons are at least 48 px tall. The Start button is 28 px tall. How many px taller must it be?
  27. 27.🧪 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(9) → expected 50
    Test 2: price(13) → expected 100
    Test 3: price(12) → expected 100
  28. 28.True or false: the user taps Play is a tap event. (a) True (b) False
  29. 29.🔘 Our rule: buttons are at least 48 px tall. The Send button is 32 px tall. How many px taller must it be?
  30. 30.📱 Which one has a web address: an app or a website? (a) an app (b) a website
  31. 31.🔀 What does this sign-up rule show?
    let age = 9;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  32. 32.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
    [ top bar ]
    [ tab bar ]
    [ big picture ]
    [ Save button ]
    [ title text ]
    (a) top bar (b) tab bar (c) title text (d) Save button
  33. 33.🔀 What number does this shop app show?
    let total = 820;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 500; // typed by the user
    line 2: let off = 20; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 4 (b) line 2 (c) line 3 (d) line 1
  35. 35.Which of these is true of an app? (a) updates from the store (b) has a web address (c) needs no installing (d) opens from a link
  36. 36.🧰 What does this code show?
    function greet(name) {
      return "Hello, " + name + "!";
    }
    show(greet("Riya"));
    (a) greet (b) Riya (c) Hello, Riya! (d) Hello, name!
  37. 37.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Video”
    2. open “Map”
    3. open “Badges”
    4. open “Help page”
    Which screen are you on now?
    (a) Map (b) Video (c) Help page (d) Badges
  38. 38.📱 Which one opens in a web browser: an app or a website? (a) an app (b) a website
  39. 39.🔢 In a sign-up flow, what comes right after “open the app”? (a) type name and email (b) see the home screen (c) make a password (d) tap “Sign up”
  40. 40.True or false: a website has a home-screen icon. (a) False (b) True

Answer key

  1. tap to Send
  2. on the phone
  3. 2
  4. add it to the cart
  5. 0
  6. Badges
  7. 80
  8. get an idea
  9. False
  10. fix and improve
  11. the app opens
  12. 2
  13. 1
  14. 40
  15. the test stage
  16. take the photo
  17. 4
  18. 2
  19. line 4
  20. 40
  21. add a homework task
  22. 40
  23. 43
  24. uses plain grey boxes
  25. line 2
  26. 20
  27. 3
  28. True
  29. 16
  30. a website
  31. Ask a parent
  32. title text
  33. 770
  34. line 3
  35. updates from the store
  36. Hello, Riya!
  37. Help page
  38. a website
  39. tap “Sign up”
  40. False

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