← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 66 · 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 stars = 46; // start at 46
    line 2: stars = stars - 5; // take away 5
    line 3: stars = stars - 2; // add 2
    line 4: stars = stars - 2; // take away 2
    line 5: show(stars); // show it
    (a) line 4 (b) line 2 (c) line 3 (d) line 1
  2. 2.🧪 A test fails when ___. (a) both are the same (b) the font is big (c) actual is not expected (d) the app is new
  3. 3.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 33; // start at 33
    line 2: lives = lives + 6; // add 4
    line 3: lives = lives - 2; // take away 2
    line 4: lives = lives - 4; // take away 4
    line 5: show(lives); // show it
  4. 4.📲 What happens when you tap an app’s icon? (a) the sound turns off (b) the app is deleted (c) the app opens (d) the phone charges
  5. 5.🧰 Why write a function? (a) to slow the app (b) to reuse code (c) to hide errors (d) to make code longer
  6. 6.🔐 Which permission does a homework photo scanner really need? (a) location (b) contacts (c) the camera (d) the microphone
  7. 7.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Menu → Confirm
    Design B: Home → Item → Results → Cart → Address
    (a) Design A (b) Design B
  8. 8.🔁 What number does this code show?
    let runs = [3, 4, 1, 14];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  9. 9.✏️ Why draw a wireframe before coding? (a) it adds colours (b) changes are quick (c) it saves data (d) it runs the app
  10. 10.👆 The user taps the button 4 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 4) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  11. 11.🖼️ How many parts (boxes) does this wireframe have?
    [ menu icon ]
    [ list of items ]
    [ filter buttons ]
    [ top bar ]
    [ Save button ]
    [ Add button ]
  12. 12.🧩 In an app, what is tap to Save? (a) an input (b) a screen (c) data (d) a button
  13. 13.True or false: tap to Send is a button. (a) True (b) False
  14. 14.True or false: you talk to possible users at the release stage. (a) True (b) False
  15. 15.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Edit photo”
    2. tap the Quiz tab
    3. open “Match report”
    How many times must you tap Back to reach the main screen of this tab?
  16. 16.True or false: a finger hits Like is a tap event. (a) True (b) False
  17. 17.📱 Where do people usually download phone apps from? (a) an app store (b) a printer (c) a web server (d) a charger
  18. 18.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Badges”
    2. tap Back
    3. open “Badges”
    4. tap the Home tab
    5. open “Friend list”
    How many times must you tap Back to reach the main screen of this tab?
  19. 19.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
  20. 20.🔢 In a quiz-app flow, which comes first: “see the final score” or “read a question”? (a) see the final score (b) read a question
  21. 21.True or false: “sudden loud sounds” helps everyone use the app. (a) True (b) False
  22. 22.🧪 What is the ACTUAL result of Test 1?
    🎟️ 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(9) → expected 100
    Test 2: price(8) → expected 100
    Test 3: price(4) → expected 50
  23. 23.🧩 How many buttons does this app screen have?
    [title] Edit Profile
    [text box] Email
    [text box] Due date
    [button] Done
  24. 24.🔢 When you make an app, which comes first: “test the app” or “build the app”? (a) test the app (b) build the app
  25. 25.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) edge cases (b) easy cases (c) phone cases (d) old cases
  26. 26.🚀 Which of these versions is the NEWEST?
    1.17.4, 1.8.9, 1.6.8, 0.22.4
    (a) 1.6.8 (b) 1.8.9 (c) 1.17.4 (d) 0.22.4
  27. 27.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 33; // start at 33
    line 2: stars = stars + 5; // add 3
    line 3: stars = stars - 2; // take away 2
    line 4: show(stars); // show it
    (a) line 1 (b) line 2 (c) line 3
  28. 28.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
    add a homework task: 1 days
    set a due date: 3 days
    see tasks by day: 5 days
  29. 29.Which of these is an input? (a) the settings page (b) a date picker (c) the home page of an app (d) your saved notes
  30. 30.📅 An app team plans for 5 days, builds for 6 days, tests for 1 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  31. 31.True or false: a final design is a quick sketch. (a) False (b) True
  32. 32.🔀 What does >= mean? (a) not equal (b) smaller or equal (c) greater than or equal (d) less than
  33. 33.🔁 list.length tells you ___. (a) the biggest item (b) the last item (c) how many items it has (d) the first item
  34. 34.🧰 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(3) + fee(4));
  35. 35.🔁 What is the LAST line this code shows?
    let names = ["Zoya", "Aman", "Kabir", "Meera", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Aman (c) Hi, Arjun (d) Hi, Kabir
  36. 36.🔁 What number does this code show?
    let scores = [19, 13, 13, 2, 11];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  37. 37.🔁 What number does this code show?
    let steps = [94, 51, 90];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  38. 38.True or false: adding up a bill is an input. (a) True (b) False
  39. 39.True or false: you sketch the screens at the plan stage. (a) True (b) False
  40. 40.🔢 In a food-order flow, which comes first: “track the order” or “add it to the cart”? (a) add it to the cart (b) track the order

Answer key

  1. line 3
  2. actual is not expected
  3. 33
  4. the app opens
  5. to reuse code
  6. the camera
  7. Design A
  8. 22
  9. changes are quick
  10. 4
  11. 6
  12. a button
  13. True
  14. False
  15. 1
  16. True
  17. an app store
  18. 1
  19. No
  20. read a question
  21. False
  22. 100
  23. 1
  24. build the app
  25. edge cases
  26. 1.17.4
  27. line 2
  28. 2
  29. a date picker
  30. 11
  31. False
  32. greater than or equal
  33. how many items it has
  34. 0
  35. Hi, Arjun
  36. 58
  37. 2
  38. False
  39. True
  40. add it to the cart

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