← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 883 · 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.🔀 In a good flow, each screen should lead to ___. (a) a clear next step (b) a dead end (c) the same screen (d) a random page
  2. 2.Which of these is true of a website? (a) is installed on a phone (b) comes from an app store (c) updates from the store (d) opens in a web browser
  3. 3.🔘 Our rule: buttons are at least 48 px tall. The Cancel button is 36 px tall. How many px taller must it be?
  4. 4.Which of these happens at the build stage? (a) share the download link (b) list what users need (c) sketch the screens (d) write the code
  5. 5.💾 Where should the app save your last game level: on the phone or in the cloud? (a) on the phone (b) in the cloud
  6. 6.🔁 What number does this code show?
    let marks = [84, 27, 19];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  7. 7.True or false: grey text on grey is poor button design. (a) False (b) True
  8. 8.True or false: tapping a button is processing. (a) True (b) False
  9. 9.🐞 Finding and fixing bugs is called ___. (a) designing (b) downloading (c) decorating (d) debugging
  10. 10.Which of these is a feature? (a) “Small text is hard” (b) “I keep missing the bus” (c) “I forget my homework” (d) a search bar
  11. 11.🧰 What is a function? (a) a named block of code (b) a screen size (c) a type of phone (d) a list of colours
  12. 12.🔍 Which is the odd one out? (a) the button colours (b) the icon shapes (c) the theme colours (d) how fast a task is done
  13. 13.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(22));
  14. 14.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 38; // start at 35
    line 2: stars = stars + 3; // add 3
    line 3: stars = stars * 2; // double it
    line 4: stars = stars - 1; // take away 1
    line 5: show(stars); // show it
  15. 15.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(150) → expected 40
    Test 2: delivery(450) → expected 0
    Test 3: delivery(300) → expected 0
  16. 16.🔢 When you make an app, what comes right after “get an idea”? (a) release it (b) test the app (c) build the app (d) plan the screens
  17. 17.True or false: a pocket-money tracker is the best fit for a cook with no idea for dinner. (a) False (b) True
  18. 18.True or false: a beep sound is an output. (a) True (b) False
  19. 19.True or false: an app opens from a link. (a) True (b) False
  20. 20.🧪 What is the ACTUAL result of Test 2?
    🎟️ 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(10) → expected 100
    Test 2: price(8) → expected 50
    Test 3: price(9) → expected 100
  21. 21.True or false: a blank grey screen solves a real problem. (a) False (b) True
  22. 22.Which of these is about UI (the look)? (a) the font size (b) whether users get lost (c) how many taps it takes (d) how easy sign-up is
  23. 23.🔢 In a quiz-app flow, which comes FIRST? (a) read a question (b) see if it is right (c) tap “Start quiz” (d) pick an answer
  24. 24.🔢 In a food-order flow, which comes LAST? (a) check the cart (b) pick a dish (c) track the order (d) open the menu
  25. 25.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) makes it harder (b) helps everyone
  26. 26.Which of these helps everyone use the app? (a) sudden loud sounds (b) fast-flashing lights (c) captions on videos (d) colour as the only clue
  27. 27.🔢 When you make an app, which comes FIRST? (a) plan the screens (b) get an idea (c) test the app (d) build the app
  28. 28.True or false: a medicine reminder solves a real problem. (a) True (b) False
  29. 29.🔢 In a quiz-app flow, what comes right after “read a question”? (a) pick an answer (b) tap “Start quiz” (c) see the final score (d) see if it is right
  30. 30.🔍 Which is the odd one out? (a) the theme colours (b) how easy sign-up is (c) the font size (d) the button colours
  31. 31.🧪 How many of these test cases pass?
    📝 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(4) → expected Try again
    Test 3: result(10) → expected Pass
  32. 32.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(90, 6));
  33. 33.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Well done, " + nameBox.text + "!";
    };
    (a) Well done, nameBox.text! (b) Well done, Meera! (c) Well done! (d) Meera
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 66; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 2 (c) line 1 (d) line 3
  35. 35.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Body text: 20 px
    Menu: 19 px
    Title: 20 px
    Footer: 10 px
  36. 36.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Send button: 32 px tall
    Back button: 72 px tall
    Done button: 56 px tall
    Save button: 48 px tall
    (a) Send (b) Done (c) Back (d) Save
  37. 37.🐞 What is a good first step when an app gives a wrong result? (a) add more colours (b) buy a new phone (c) find where it goes wrong (d) delete the app
  38. 38.🧭 What does the back button usually do? (a) deletes the page (b) closes all apps (c) opens settings (d) goes to the last screen
  39. 39.♿ A screen has 10 icon buttons. Only 3 of them have a text label for screen readers. How many still need a label?
  40. 40.🧭 Which part of navigation shows 3 to 5 icons? (a) a menu button (b) a tab bar (c) the back button

Answer key

  1. a clear next step
  2. opens in a web browser
  3. 12
  4. write the code
  5. on the phone
  6. 1
  7. True
  8. False
  9. debugging
  10. a search bar
  11. a named block of code
  12. how fast a task is done
  13. 44
  14. 75
  15. 2
  16. plan the screens
  17. False
  18. True
  19. False
  20. 50
  21. False
  22. the font size
  23. tap “Start quiz”
  24. track the order
  25. helps everyone
  26. captions on videos
  27. get an idea
  28. True
  29. pick an answer
  30. how easy sign-up is
  31. 3
  32. 540
  33. Well done, Meera!
  34. line 3
  35. 1
  36. Send
  37. find where it goes wrong
  38. goes to the last screen
  39. 7
  40. a tab bar

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