← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 419 · 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 code show?
    let steps = [3, 9, 12, 3];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  2. 2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 35; // start at 35
    line 2: score = score + 4; // add 4
    line 3: score = score + 6; // add 6
    line 4: score = score + 2; // double it
    line 5: show(score); // show it
    (a) line 1 (b) line 3 (c) line 2 (d) line 4
  3. 3.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) water animations (b) set a reminder time (c) see today’s total (d) log a glass of water
  4. 4.🔢 In a photo-post flow, which comes FIRST? (a) take the photo (b) open the camera screen (c) post the photo (d) add a filter
  5. 5.🎯 Who are the users of an app? (a) the app icons (b) only the testers (c) the people who use it (d) only the coders
  6. 6.🔢 In a sign-up flow, what comes right after “type name and email”? (a) enter the code sent (b) open the app (c) see the home screen (d) make a password
  7. 7.True or false: icons with no meaning is good button design. (a) True (b) False
  8. 8.Which of these is true of a menu button? (a) switches main sections (b) hides extra links (c) shows 3 to 5 icons (d) goes to the last screen
  9. 9.💾 What number does this code show?
    let notes = ["Art", "Maths", "Sports"];
    notes.push("Music");
    show(notes.length);
  10. 10.Which of these is about UX (the experience)? (a) the screen layout (b) how users feel after (c) the font size (d) the theme colours
  11. 11.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 30; // start at 30
    line 2: score = score + 7; // add 5
    line 3: score = score - 1; // take away 1
    line 4: score = score * 2; // double it
    line 5: show(score); // show it
  12. 12.Which of these is a user need? (a) a dark mode switch (b) a search bar (c) “Small text is hard” (d) a reminder alarm
  13. 13.Which of these fits saving on the phone? (a) chat messages to friends (b) photos on two devices (c) a class leaderboard (d) your last game level
  14. 14.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Title: 13 px
    Label: 20 px
    Footer: 13 px
  15. 15.🔢 In a sign-up flow, which comes first: “open the app” or “enter the code sent”? (a) open the app (b) enter the code sent
  16. 16.True or false: you write down the bugs at the plan stage. (a) True (b) False
  17. 17.🧩 How many buttons does this app screen have?
    [title] New Note
    [button] Save
    [text box] Phone
    [button] Back
    [switch] Show hints
    [button] Done
  18. 18.Which of these is true of a tab bar? (a) goes to the last screen (b) switches main sections (c) hides extra links (d) opens a list of pages
  19. 19.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) share tasks to friends (c) set a due date (d) pick a theme colour
  20. 20.👆 The user taps the button 3 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) ON (b) OFF
  21. 21.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 31; // start at 31
    line 2: points = points - 3; // take away 3
    line 3: points = points + 8; // add 5
    line 4: show(points); // show it
  22. 22.🔁 What number does this code show?
    let runs = [6, 11, 4, 20, 5];
    let best = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] > best) {
        best = runs[i];
      }
    }
    show(best);
  23. 23.🔢 In a sign-up flow, which comes first: “make a password” or “tap “Sign up””? (a) make a password (b) tap “Sign up”
  24. 24.🔢 In a quiz-app flow, which comes first: “tap “Start quiz”” or “see if it is right”? (a) see if it is right (b) tap “Start quiz”
  25. 25.🔀 Which badge does this quiz app show?
    let marks = 78;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Bronze (c) Silver
  26. 26.🎨 Is this about UI or UX: how many taps it takes? (a) UI (b) UX
  27. 27.🔀 What does this battery rule show?
    let battery = 5;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  28. 28.🔢 After an app is released, which comes FIRST? (a) fix and improve (b) release an update (c) test it again (d) read user reviews
  29. 29.Which of these is true of a final design? (a) shows where things go (b) is a quick sketch (c) has the real colours (d) has no real colours
  30. 30.💾 What number does this code show?
    let friends = ["Riya", "Arjun", "Zoya"];
    friends.push("Aman");
    friends.push("Kabir");
    show(friends.length);
  31. 31.🔁 What number does this code show?
    let scores = [94, 61, 58];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  32. 32.🧩 Which input is best for choosing a volume level? (a) a title (b) a text box (c) a switch (d) a slider
  33. 33.💾 Which works with no internet at all? (a) a shared chat (b) a cloud backup (c) a cloud leaderboard (d) data saved on the phone
  34. 34.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Help button: 52 px tall
    Done button: 32 px tall
    Next button: 44 px tall
  35. 35.🔐 Is this permission request fair or too much: timer → your photos? (a) fair (b) too much
  36. 36.🧩 How many buttons does this app screen have?
    [title] Edit Profile
    [switch] Remind me
    [button] Send
    [button] Start
    [text box] Due date
  37. 37.📊 Survey: which problem bugs you most? How many students voted in all?
    losing water bottles: 24 votes
    wasting pocket money: 4 votes
    forgetting birthdays: 15 votes
  38. 38.🎨 Is this about UI or UX: the icon shapes? (a) UX (b) UI
  39. 39.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Back button: 40 px tall
    Start button: 64 px tall
    Save button: 32 px tall
    Cancel button: 64 px tall
  40. 40.Which of these fits saving on the phone? (a) chat messages to friends (b) a class leaderboard (c) notes to read offline (d) photos on two devices

Answer key

  1. 12
  2. line 4
  3. water animations
  4. open the camera screen
  5. the people who use it
  6. make a password
  7. False
  8. hides extra links
  9. 4
  10. how users feel after
  11. 68
  12. “Small text is hard”
  13. your last game level
  14. 2
  15. open the app
  16. False
  17. 3
  18. switches main sections
  19. set a due date
  20. ON
  21. 33
  22. 20
  23. tap “Sign up”
  24. tap “Start quiz”
  25. Silver
  26. UX
  27. Low battery
  28. read user reviews
  29. has the real colours
  30. 5
  31. 2
  32. a slider
  33. data saved on the phone
  34. 1
  35. too much
  36. 2
  37. 43
  38. UI
  39. 2
  40. notes to read offline

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