← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 700 · 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.🧩 How many buttons does this app screen have?
    [title] New Note
    [button] Cancel
    [switch] Dark mode
    [slider] Volume
    [button] Help
    [text box] Age
  2. 2.💡 Which is a problem statement? (a) “Kids forget homework” (b) “Make it fast” (c) “Use blue buttons” (d) “Add a logo”
  3. 3.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
    [ title text ]
    [ search box ]
    [ top bar ]
    [ list of items ]
    (a) search box (b) title text (c) top bar (d) list of items
  4. 4.🔁 What number does this code show?
    let runs = [34, 85, 47, 99, 88];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  5. 5.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 39; // start at 39
    line 2: points = points - 4; // take away 2
    line 3: points = points - 2; // take away 2
    line 4: show(points); // show it
  6. 6.💾 What number does this code show?
    let points = 6;
    points = points - 6;
    points = points + 5;
    show(points);
  7. 7.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] New Note
    [text box] Notes
    [text box] Name
    [button] Send
  8. 8.🧭 Which part of navigation undoes one move? (a) a tab bar (b) the back button (c) a menu button
  9. 9.🔁 What number does this code show?
    let steps = [93, 51, 34];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  10. 10.True or false: “text that can grow” makes the app harder to use. (a) False (b) True
  11. 11.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 5 or more right answers.
    function result(right) {
      if (right > 5) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(5) → expected Pass
    Test 2: result(7) → expected Pass
    Test 3: result(2) → expected Try again
  12. 12.🔍 Which is the odd one out? (a) add the buttons (b) connect the data (c) write down the bugs (d) write the code
  13. 13.True or false: photos on two devices fits saving on the phone. (a) True (b) False
  14. 14.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) pie-chart colours (b) add money received (c) show the balance (d) add money spent
  15. 15.👥 A school app has 170 students, 35 teachers and 190 parents as users. How many users does it have in all?
  16. 16.👆 What kind of event is this: the user presses Save? (a) a timer event (b) a load event (c) a text event (d) a tap event
  17. 17.🗂️ What kind of app is a sleep tracker? (a) a health app (b) a game (c) a tool app (d) a learning app
  18. 18.👥 A library app has 295 readers, 45 librarians and 35 volunteers as users. How many users does it have in all?
  19. 19.True or false: typing your age is an output. (a) True (b) False
  20. 20.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 7 or more right answers.
    function result(right) {
      if (right > 7) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(9) → expected Pass
    Test 2: result(4) → expected Try again
    Test 3: result(7) → expected Pass
    (a) Test 2 (b) Test 1 (c) Test 3
  21. 21.🔁 What number does this code show?
    let marks = [34, 11, 36, 88, 87];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  22. 22.🔁 What number does this code show?
    let scores = [10, 8, 3, 6, 5];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  23. 23.🔁 A loop over a list of 5 items runs its body how many times? (a) 4 (b) 1 (c) 5 (d) 6
  24. 24.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 40; // start at 40
    line 2: stars = stars * 2; // double it
    line 3: stars = stars + 2; // add 2
    line 4: stars = stars * 3; // double it
    line 5: show(stars); // show it
  25. 25.Which of these requests is fair? (a) calculator → location (b) timer → your photos (c) torch → contacts (d) voice notes → microphone
  26. 26.🔁 What number does this code show?
    let marks = [3, 9, 7];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  27. 27.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) a dark mode (b) rate the driver (c) see where the bus is (d) change the bus icon
  28. 28.🖼️ In this wireframe (top to bottom), what is right below the big picture?
    [ search box ]
    [ tab bar ]
    [ title text ]
    [ big picture ]
    [ menu icon ]
    (a) title text (b) tab bar (c) menu icon (d) search box
  29. 29.True or false: speaking a command is an input. (a) False (b) True
  30. 30.🔁 What number does this code show?
    let runs = [5, 2, 10, 17];
    let best = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] > best) {
        best = runs[i];
      }
    }
    show(best);
  31. 31.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 8 (c) 4 (d) 0
  32. 32.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Send button: 32 px tall
    Start button: 32 px tall
    Cancel button: 48 px tall
    Help button: 48 px tall
  33. 33.🧩 How many buttons does this app screen have?
    [title] Order Snacks
    [text box] Name
    [button] Back
    [text box] Notes
    [text box] Due date
    [button] Send
  34. 34.True or false: an alarm clock is a game. (a) True (b) False
  35. 35.🔢 In a sign-up flow, which comes first: “enter the code sent” or “tap “Sign up””? (a) tap “Sign up” (b) enter the code sent
  36. 36.🧰 What does this code show?
    function greet(name) {
      return "Hi, " + name + "!";
    }
    show(greet("Arjun"));
    (a) Hi, name! (b) greet (c) Arjun (d) Hi, Arjun!
  37. 37.🔀 What does this sign-up rule show?
    let age = 16;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  38. 38.Which of these requests asks for too much? (a) timer → your photos (b) calling app → contacts (c) voice notes → microphone (d) map app → location
  39. 39.🌗 Is black on yellow easy or hard to read on a button? (a) hard to read (b) easy to read
  40. 40.Which of these requests asks for too much? (a) calling app → contacts (b) quiz app → microphone (c) map app → location (d) camera app → camera

Answer key

  1. 2
  2. “Kids forget homework”
  3. list of items
  4. 3
  5. 33
  6. 5
  7. 2
  8. the back button
  9. 1
  10. False
  11. 2
  12. write down the bugs
  13. False
  14. pie-chart colours
  15. 395
  16. a tap event
  17. a health app
  18. 375
  19. False
  20. Test 3
  21. 2
  22. 10
  23. 5
  24. 246
  25. voice notes → microphone
  26. 9
  27. see where the bus is
  28. menu icon
  29. True
  30. 17
  31. 4
  32. 2
  33. 2
  34. False
  35. tap “Sign up”
  36. Hi, Arjun!
  37. Welcome!
  38. timer → your photos
  39. easy to read
  40. quiz app → microphone

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