← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 636 · 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 number does this app show?
    let price = 290; // typed by the user
    let off = 50; // typed by the user
    let pay = price - off;
    show(pay);
  2. 2.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) water animations (b) custom alert sounds (c) log a glass of water (d) share your streak
  3. 3.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 50; // start at 50
    line 2: stars = stars + 3; // add 3
    line 3: stars = stars + 2; // add 2
    line 4: stars = stars * 3; // double it
    line 5: show(stars); // show it
  4. 4.🔢 In a photo-post flow, what comes right after “write a caption”? (a) post the photo (b) take the photo (c) add a filter (d) open the camera screen
  5. 5.🗒️ A to-do app with no “add a task” feature is ___. (a) ready to release (b) missing a must-have (c) a nice extra (d) well planned
  6. 6.🔁 What number does this code show?
    let marks = [68, 60, 97, 88, 36];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  7. 7.True or false: a draft you are typing fits saving on the phone. (a) False (b) True
  8. 8.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    forgetting birthdays: 10 votes
    losing water bottles: 18 votes
    no quiet study place: 17 votes
    (a) forgetting birthdays (b) no quiet study place (c) losing water bottles
  9. 9.True or false: speaking a command is an output. (a) True (b) False
  10. 10.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 42; // start at 42
    line 2: points = points + 4; // add 4
    line 3: points = points * 3; // double it
    line 4: points = points - 3; // take away 3
    line 5: show(points); // show it
    (a) line 1 (b) line 2 (c) line 3 (d) line 4
  11. 11.🔢 When you make an app, which comes first: “test the app” or “release it”? (a) release it (b) test the app
  12. 12.🧪 A test case is an input together with its ___. (a) font size (b) screen colour (c) expected result (d) app icon
  13. 13.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let coins = 50; // start at 49
    line 2: coins = coins + 3; // add 3
    line 3: coins = coins - 2; // take away 2
    line 4: show(coins); // show it
  14. 14.🧩 How many buttons does this app screen have?
    [title] Settings
    [text box] Due date
    [text box] Email
    [switch] Dark mode
    [button] Save
    [button] Start
  15. 15.🧩 Which input is best for turning something ON or OFF? (a) a text box (b) a title (c) a switch (d) a slider
  16. 16.👥 A cricket club app has 70 players, 260 coaches and 215 fans as users. How many more fans than players are there?
  17. 17.🧪 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(650) → expected 40
    Test 2: delivery(900) → expected 0
    Test 3: delivery(700) → expected 0
  18. 18.Which of these is a user need? (a) a search bar (b) “Small text is hard” (c) a reminder alarm (d) a dark mode switch
  19. 19.🧩 Which part lets the user give the app information? (a) an icon (b) an input (c) a title (d) a logo
  20. 20.🗒️ Version 1 of a quiz app must be ready in 11 days. How many days are left for extras after the must-haves?
    show a question: 4 days
    check the answer: 3 days
    show the score: 3 days
  21. 21.🗒️ What is a must-have feature? (a) a nice extra (b) a sound effect (c) a colour theme (d) one the app cannot skip
  22. 22.🔍 Which is the odd one out? (a) fast-flashing lights (b) labels on every icon (c) big touch targets (d) text that can grow
  23. 23.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) on the phone (b) in the cloud
  24. 24.🔢 In a food-order flow, which comes LAST? (a) add it to the cart (b) pick a dish (c) pay for the order (d) track the order
  25. 25.⚙️ What number does this app show?
    let price = 360; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  26. 26.Which of these is true of an app? (a) opens in a web browser (b) has a home-screen icon (c) has a web address (d) opens from a link
  27. 27.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Caption: 17 px
    Label: 23 px
    Body text: 21 px
    Title: 14 px
    Hint: 14 px
  28. 28.⚙️ What number does this app show?
    let bill = 52; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  29. 29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 48; // start at 48
    line 2: stars = stars * 2; // double it
    line 3: stars = stars - 7; // take away 4
    line 4: show(stars); // show it
    (a) line 2 (b) line 3 (c) line 1
  30. 30.👆 The user taps the button 4 times. What number does the label show now?
    let lives = 7;
    button.onTap = function () {
      lives = lives + 1;
      label.text = lives;
    };
  31. 31.🧩 Which of these is a button on this screen?
    [title] Order Snacks
    [button] Send
    [text box] Email
    [text box] Phone
    (a) Email (b) Send (c) Phone
  32. 32.👆 Code that runs when an event happens is called a ___. (a) handler (b) hashtag (c) header (d) headline
  33. 33.🔀 What does this battery rule show?
    let battery = 34;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  34. 34.🔁 What number does this code show?
    let marks = [1, 11, 5];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  35. 35.👥 A cricket club app has 45 players, 30 coaches and 55 fans as users. How many users does it have in all?
  36. 36.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Zoya", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Aman (c) Hi, Meera
  37. 37.🎯 Which app would help this user most: a runner who forgets to sip water? (a) a water reminder (b) a pocket-money tracker (c) a bus tracker (d) a recipe finder
  38. 38.🗒️ 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: 4 days
    check the answer: 1 days
    show the score: 3 days
  39. 39.🗒️ Why keep version 1 small? (a) to use up storage (b) to learn from users soon (c) to confuse users (d) to look bigger
  40. 40.⚙️ In an app, is a pop-up message an input, processing or an output? (a) processing (b) input (c) output

Answer key

  1. 240
  2. log a glass of water
  3. 110
  4. post the photo
  5. missing a must-have
  6. 4
  7. True
  8. losing water bottles
  9. False
  10. line 3
  11. test the app
  12. expected result
  13. 50
  14. 2
  15. a switch
  16. 145
  17. 40
  18. “Small text is hard”
  19. an input
  20. 1
  21. one the app cannot skip
  22. fast-flashing lights
  23. on the phone
  24. track the order
  25. 350
  26. has a home-screen icon
  27. 2
  28. 26
  29. line 3
  30. 11
  31. Send
  32. handler
  33. Battery OK
  34. 17
  35. 130
  36. Hi, Meera
  37. a water reminder
  38. 5
  39. to learn from users soon
  40. output

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