← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 153 · 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.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 35; // start at 35
    line 2: coins = coins + 2; // double it
    line 3: coins = coins + 6; // add 6
    line 4: coins = coins * 2; // double it
    line 5: show(coins); // show it
    (a) line 2 (b) line 4 (c) line 3 (d) line 1
  2. 2.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(10) + fee(6));
  3. 3.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a final design (b) a wireframe
  4. 4.True or false: a racing challenge is a game. (a) False (b) True
  5. 5.True or false: your last game level fits saving in the cloud. (a) True (b) False
  6. 6.🔀 What does this sign-up rule show?
    let age = 10;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  7. 7.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Kabir", "Arjun", "Riya", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Arjun (c) Hi, Aman (d) Hi, Kabir
  8. 8.True or false: a voice recorder needs your contacts. (a) True (b) False
  9. 9.True or false: “sudden loud sounds” makes the app harder to use. (a) False (b) True
  10. 10.Which of these app ideas solves no real problem? (a) a lost-and-found board (b) a free study-room finder (c) a button with no action (d) a bill splitter
  11. 11.Which of these is an input? (a) a slider for volume (b) the home page of an app (c) today’s step count (d) tap to go Next
  12. 12.Which of these is a button? (a) the log-in page (b) a switch for dark mode (c) the home page of an app (d) tap to Save
  13. 13.🎨 Is this about UI or UX: the screen layout? (a) UI (b) UX
  14. 14.🧩 In an app, what is the home page of an app? (a) a screen (b) an input (c) data (d) a button
  15. 15.🔀 When does the else part run? (a) never (b) when the test is true (c) when the test is false (d) always
  16. 16.🔀 What does this sign-up rule show?
    let age = 16;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  17. 17.Which of these happens at the build stage? (a) share the download link (b) sketch the screens (c) try every button (d) write the code
  18. 18.🔍 Which is the odd one out? (a) a torch (b) a calculator (c) an alarm clock (d) a puzzle with levels
  19. 19.🧪 What is the ACTUAL result of Test 1?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(300) → expected 0
    Test 2: delivery(550) → expected 0
    Test 3: delivery(250) → expected 40
  20. 20.True or false: a wireframe is a quick sketch. (a) True (b) False
  21. 21.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 70; // typed by the user
    line 2: let qty = 3; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 3 (c) line 1 (d) line 2
  22. 22.🖼️ In this wireframe (top to bottom), what is right above the Add button?
    [ Save button ]
    [ top bar ]
    [ big picture ]
    [ Add button ]
    (a) big picture (b) top bar (c) Save button
  23. 23.True or false: tap to Start is a button. (a) True (b) False
  24. 24.👆 What kind of event is this: a countdown hits zero? (a) a tap event (b) a text event (c) a load event (d) a timer event
  25. 25.Which of these is an input? (a) speaking a command (b) checking a password (c) working out a tip (d) a pop-up message
  26. 26.Which of these app ideas solves a real problem? (a) a page of random dots (b) a blank grey screen (c) a library due-date alert (d) an app that just says hi
  27. 27.🔀 What does this PIN rule show?
    let pin = "5935";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  28. 28.Which of these helps everyone use the app? (a) colour as the only clue (b) sudden loud sounds (c) icons with no labels (d) text that can grow
  29. 29.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 6 or more right answers.
    function result(right) {
      if (right > 6) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(9) → expected Pass
    Test 3: result(3) → expected Try again
  30. 30.🔢 In a food-order flow, which comes LAST? (a) track the order (b) add it to the cart (c) check the cart (d) pick a dish
  31. 31.True or false: strong colour contrast is poor button design. (a) True (b) False
  32. 32.Which of these is true of an app? (a) needs no installing (b) opens in a web browser (c) opens from a link (d) comes from an app store
  33. 33.👥 A library app has 215 readers, 230 librarians and 115 volunteers as users. How many more librarians than volunteers are there?
  34. 34.🔍 Which is the odd one out? (a) pick the features (b) draw the user flow (c) list what users need (d) sketch the screens
  35. 35.🔢 When you make an app, which comes first: “get an idea” or “release it”? (a) release it (b) get an idea
  36. 36.🔀 What does this battery rule show?
    let battery = 6;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  37. 37.🗒️ Version 1 of a water reminder must be ready in 8 days. How many days are left for extras after the must-haves?
    set a reminder time: 3 days
    log a glass of water: 1 days
    see today’s total: 2 days
  38. 38.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Search → Confirm → Size → Item → Address → Shop
    Design B: Home → Item → Address → Cart → Offers → Menu
    (a) Design B (b) Design A
  39. 39.Which of these is true of a final design? (a) has no real colours (b) is a quick sketch (c) uses the final pictures (d) uses plain grey boxes
  40. 40.True or false: “big touch targets” makes the app harder to use. (a) False (b) True

Answer key

  1. line 2
  2. 40
  3. a wireframe
  4. True
  5. False
  6. Ask a parent
  7. Hi, Meera
  8. False
  9. True
  10. a button with no action
  11. a slider for volume
  12. tap to Save
  13. UI
  14. a screen
  15. when the test is false
  16. Welcome!
  17. write the code
  18. a puzzle with levels
  19. 0
  20. True
  21. line 3
  22. big picture
  23. True
  24. a timer event
  25. speaking a command
  26. a library due-date alert
  27. PIN saved
  28. text that can grow
  29. 3
  30. track the order
  31. False
  32. comes from an app store
  33. 115
  34. list what users need
  35. get an idea
  36. Low battery
  37. 2
  38. Design B
  39. uses the final pictures
  40. False

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