← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 39 · 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 can often still work with no internet? (a) an online search (b) an installed app (c) a new website (d) a video call
  2. 2.📱 Which one is installed on a phone: an app or a website? (a) a website (b) an app
  3. 3.🔢 In a photo-post flow, which comes first: “post the photo” or “add a filter”? (a) post the photo (b) add a filter
  4. 4.💾 Which works with no internet at all? (a) data saved on the phone (b) a shared chat (c) a cloud leaderboard (d) a cloud backup
  5. 5.♿ Does this help everyone, or make the app harder to use: colour as the only clue? (a) helps everyone (b) makes it harder
  6. 6.🔁 What number does this code show?
    let steps = [5, 11, 5, 20];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  7. 7.🧪 What is the ACTUAL result of Test 1?
    🚚 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(700) → expected 0
    Test 2: delivery(450) → expected 40
    Test 3: delivery(850) → expected 0
  8. 8.🧪 A test case is an input together with its ___. (a) font size (b) expected result (c) screen colour (d) app icon
  9. 9.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 95; // 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 2 (d) line 1
  10. 10.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) makes it harder (b) helps everyone
  11. 11.🧩 How many buttons does this app screen have?
    [title] New Note
    [text box] City
    [button] Back
    [text box] Notes
    [button] Cancel
    [button] Help
    [text box] Email
  12. 12.Which of these app ideas solves a real problem? (a) an app that just says hi (b) a button with no action (c) a medicine reminder (d) a blank grey screen
  13. 13.True or false: a final design looks like the real app. (a) False (b) True
  14. 14.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 45; // start at 45
    line 2: points = points - 4; // take away 4
    line 3: points = points - 5; // take away 5
    line 4: points = points - 5; // add 5
    line 5: show(points); // show it
    (a) line 1 (b) line 3 (c) line 2 (d) line 4
  15. 15.Which of these is true of a wireframe? (a) has the real colours (b) shows where things go (c) shows the real fonts (d) looks like the real app
  16. 16.🔍 Which is the odd one out? (a) write down the bugs (b) let friends try it (c) pick the features (d) try every button
  17. 17.👥 A library app has 155 readers, 75 librarians and 160 volunteers as users. Which user group is the biggest? (a) librarians (b) volunteers (c) readers
  18. 18.🔁 What number does this code show?
    let marks = [76, 52, 98, 60];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  19. 19.🔢 When you make an app, which comes FIRST? (a) get an idea (b) build the app (c) plan the screens (d) test the app
  20. 20.🔢 In a photo-post flow, which comes FIRST? (a) post the photo (b) add a filter (c) open the camera screen (d) take the photo
  21. 21.🔍 Which is the odd one out? (a) a puzzle with levels (b) a water reminder (c) a word battle (d) a racing challenge
  22. 22.🔁 What number does this code show?
    let steps = [8, 11, 15];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  23. 23.🧪 One test case fails. Which one?
    📝 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(7) → expected Pass
    Test 2: result(6) → expected Pass
    Test 3: result(5) → expected Try again
    (a) Test 1 (b) Test 3 (c) Test 2
  24. 24.Which of these is true of an app? (a) needs no installing (b) updates from the store (c) has a web address (d) opens from a link
  25. 25.🧪 A test fails when ___. (a) the app is new (b) actual is not expected (c) the font is big (d) both are the same
  26. 26.🗒️ 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: 2 days
    check the answer: 1 days
    show the score: 5 days
  27. 27.🧭 Which part of navigation goes to the last screen? (a) a menu button (b) a tab bar (c) the back button
  28. 28.Which colour pair is easy to read? (a) red on green (b) black on pale grey (c) light grey on white (d) yellow on white
  29. 29.🔁 What number does this code show?
    let marks = [16, 13, 35];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  30. 30.🧪 One test case fails. Which one?
    📝 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(6) → expected Pass
    Test 3: result(5) → expected Try again
    (a) Test 3 (b) Test 2 (c) Test 1
  31. 31.👥 A clinic app has 195 patients, 265 doctors and 45 nurses as users. How many more doctors than patients are there?
  32. 32.🧩 Which input is best for choosing a volume level? (a) a title (b) a slider (c) a switch (d) a text box
  33. 33.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 35; // start at 32
    line 2: coins = coins * 2; // double it
    line 3: coins = coins * 2; // double it
    line 4: coins = coins - 4; // take away 4
    line 5: show(coins); // show it
    (a) line 4 (b) line 1 (c) line 3 (d) line 2
  34. 34.Which of these is true of the back button? (a) switches main sections (b) hides extra links (c) shows 3 to 5 icons (d) goes to the last screen
  35. 35.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 31; // start at 31
    line 2: lives = lives + 2; // add 2
    line 3: lives = lives + 4; // add 3
    line 4: lives = lives - 5; // take away 5
    line 5: show(lives); // show it
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  36. 36.True or false: a homework planner is the best fit for a gamer who forgets to drink. (a) True (b) False
  37. 37.🔁 What number does this code show?
    let scores = [20, 92, 73];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  38. 38.Which of these app ideas solves no real problem? (a) a blank grey screen (b) a free study-room finder (c) a lost-and-found board (d) a bill splitter
  39. 39.🔁 A loop over a list of 5 items runs its body how many times? (a) 5 (b) 6 (c) 4 (d) 1
  40. 40.🎯 Is this a user need or a feature: “Small text is hard”? (a) a feature (b) a user need

Answer key

  1. an installed app
  2. an app
  3. add a filter
  4. data saved on the phone
  5. makes it harder
  6. 20
  7. 0
  8. expected result
  9. line 3
  10. helps everyone
  11. 3
  12. a medicine reminder
  13. True
  14. line 4
  15. shows where things go
  16. pick the features
  17. volunteers
  18. 4
  19. get an idea
  20. open the camera screen
  21. a water reminder
  22. 34
  23. Test 2
  24. updates from the store
  25. actual is not expected
  26. 5
  27. the back button
  28. black on pale grey
  29. 0
  30. Test 2
  31. 70
  32. a slider
  33. line 1
  34. goes to the last screen
  35. line 3
  36. False
  37. 2
  38. a blank grey screen
  39. 5
  40. a user need

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