← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 163 · 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.True or false: a button with no action solves no real problem. (a) False (b) True
  2. 2.🖼️ In this wireframe (top to bottom), what is right above the top bar?
    [ list of items ]
    [ big picture ]
    [ filter buttons ]
    [ top bar ]
    [ menu icon ]
    [ search box ]
    (a) list of items (b) menu icon (c) search box (d) filter buttons
  3. 3.👆 The user types Zoya in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Well done, " + nameBox.text + "!";
    };
    (a) Zoya (b) Well done, nameBox.text! (c) Well done! (d) Well done, Zoya!
  4. 4.🗒️ Version 1 of a homework planner must be ready in 13 days. How many days are left for extras after the must-haves?
    add a homework task: 4 days
    set a due date: 1 days
    see tasks by day: 4 days
  5. 5.🔢 In a sign-up flow, which comes first: “see the home screen” or “make a password”? (a) see the home screen (b) make a password
  6. 6.🗒️ Why keep version 1 small? (a) to confuse users (b) to learn from users soon (c) to look bigger (d) to use up storage
  7. 7.📱 Which one has a web address: an app or a website? (a) an app (b) a website
  8. 8.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] New Note
    [switch] Remind me
    [button] Next
    [button] Back
    [text box] Notes
  9. 9.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Friend list”
    2. open “Match report”
    3. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  10. 10.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) show arrival time (c) rate the driver (d) pick your bus stop
  11. 11.🔍 Which is the odd one out? (a) colour as the only clue (b) sudden loud sounds (c) fast-flashing lights (d) captions on videos
  12. 12.🔍 Which is the odd one out? (a) the button colours (b) the font size (c) the theme colours (d) whether users get lost
  13. 13.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(60, 4));
  14. 14.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 60;
    }
    show(fee(8) + fee(2));
  15. 15.True or false: the user presses Save is a tap event. (a) True (b) False
  16. 16.🌗 Is black on pale grey easy or hard to read on a button? (a) hard to read (b) easy to read
  17. 17.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) phone cases (b) edge cases (c) easy cases (d) old cases
  18. 18.👆 The user taps the button 3 times. What number does the label show now?
    let score = 5;
    button.onTap = function () {
      score = score + 2;
      label.text = score;
    };
  19. 19.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 35; // start at 34
    line 2: points = points * 2; // double it
    line 3: points = points * 2; // double it
    line 4: show(points); // show it
    (a) line 3 (b) line 2 (c) line 1
  20. 20.🔁 What number does this code show?
    let steps = [18, 3, 6];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  21. 21.🧪 What is the ACTUAL result of Test 3?
    🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
    function price(age) {
      if (age <= 9) {
        return 50;
      }
      return 100;
    }
    Test 1: price(7) → expected 50
    Test 2: price(15) → expected 100
    Test 3: price(17) → expected 100
  22. 22.💾 What does this code show? (Positions start at 0.)
    let friends = ["Aman", "Riya", "Zoya"];
    show(friends[0]);
    (a) Riya (b) Zoya (c) Aman
  23. 23.🗂️ What kind of app is a puzzle with levels? (a) a learning app (b) a tool app (c) a game (d) a health app
  24. 24.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a final design (b) a wireframe
  25. 25.🔍 Which is the odd one out? (a) adding up a bill (b) checking a password (c) a buzz (vibration) (d) sorting the scores
  26. 26.👆 The user taps the button 2 times. What number does the label show now?
    let lives = 6;
    button.onTap = function () {
      lives = lives + 2;
      label.text = lives;
    };
  27. 27.🐞 Finding and fixing bugs is called ___. (a) downloading (b) debugging (c) decorating (d) designing
  28. 28.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Done button: 28 px tall
    Start button: 64 px tall
    Help button: 56 px tall
    (a) Done (b) Start (c) Help
  29. 29.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Next button: 32 px tall
    Done button: 64 px tall
    Cancel button: 64 px tall
  30. 30.🔍 Which is the odd one out? (a) fast-flashing lights (b) icons with no labels (c) sudden loud sounds (d) labels on every icon
  31. 31.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 49; // start at 49
    line 2: score = score - 1; // take away 1
    line 3: score = score + 5; // add 5
    line 4: score = score + 8; // add 5
    line 5: show(score); // show it
    (a) line 4 (b) line 1 (c) line 3 (d) line 2
  32. 32.👆 What kind of event is this: a finger hits Like? (a) a text event (b) a load event (c) a timer event (d) a tap event
  33. 33.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Map”
    2. tap Back
    3. tap the Home tab
    4. open “Map”
    Which screen are you on now?
    (a) Search (b) Map (c) Profile (d) Home
  34. 34.Which of these is a feature? (a) “I keep missing the bus” (b) “What should I cook?” (c) “Small text is hard” (d) a reminder alarm
  35. 35.🔍 Which is the odd one out? (a) spot a problem to solve (b) write the code (c) talk to possible users (d) list what users need
  36. 36.Which of these is true of a website? (a) opens in a web browser (b) has a home-screen icon (c) is installed on a phone (d) updates from the store
  37. 37.🔀 What does this battery rule show?
    let battery = 37;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  38. 38.👆 The user taps the button 2 times. What number does the label show now?
    let stars = 4;
    button.onTap = function () {
      stars = stars + 3;
      label.text = stars;
    };
  39. 39.Which colour pair is hard to read? (a) light grey on white (b) black on pale grey (c) dark blue on white (d) white on dark green
  40. 40.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 31; // start at 31
    line 2: coins = coins + 5; // add 3
    line 3: coins = coins - 4; // take away 4
    line 4: coins = coins + 3; // add 3
    line 5: show(coins); // show it
    (a) line 3 (b) line 1 (c) line 2 (d) line 4

Answer key

  1. True
  2. filter buttons
  3. Well done, Zoya!
  4. 4
  5. make a password
  6. to learn from users soon
  7. a website
  8. 2
  9. 1
  10. rate the driver
  11. captions on videos
  12. whether users get lost
  13. 240
  14. 60
  15. True
  16. easy to read
  17. edge cases
  18. 11
  19. line 1
  20. 18
  21. 100
  22. Aman
  23. a game
  24. a wireframe
  25. a buzz (vibration)
  26. 10
  27. debugging
  28. Done
  29. 2
  30. labels on every icon
  31. line 4
  32. a tap event
  33. Map
  34. a reminder alarm
  35. write the code
  36. opens in a web browser
  37. Battery OK
  38. 10
  39. light grey on white
  40. line 2

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