← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 489 · 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 is a good first step when an app gives a wrong result? (a) find where it goes wrong (b) delete the app (c) add more colours (d) buy a new phone
  2. 2.⚙️ In an app, is speaking a command an input, processing or an output? (a) input (b) processing (c) output
  3. 3.👆 What kind of event is this: the user presses Save? (a) a text event (b) a load event (c) a timer event (d) a tap event
  4. 4.👆 The user taps the button 2 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
  5. 5.🔁 What number does this code show?
    let scores = [11, 19, 12, 1, 3];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  6. 6.True or false: a cricket run chase is a learning app. (a) False (b) True
  7. 7.💾 What is a variable? (a) a named box for a value (b) a picture (c) a phone setting (d) a type of screen
  8. 8.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) background music (b) check the answer (c) show a question (d) show the score
  9. 9.🔀 What does this PIN rule show?
    let pin = "3941";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  10. 10.🚀 Which of these versions is the OLDEST?
    4.18.7, 4.3.1, 4.10.6, 3.21.1
    (a) 4.18.7 (b) 4.10.6 (c) 4.3.1 (d) 3.21.1
  11. 11.🎯 Which app would help this user most: a runner who forgets to sip water? (a) a pocket-money tracker (b) a recipe finder (c) a bus tracker (d) a water reminder
  12. 12.True or false: a button with no action solves no real problem. (a) False (b) True
  13. 13.True or false: you put it on an app store at the idea stage. (a) True (b) False
  14. 14.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 46; // start at 46
    line 2: points = points + 4; // add 2
    line 3: points = points * 2; // double it
    line 4: show(points); // show it
  15. 15.👆 The user taps the button 1 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) OFF (b) ON
  16. 16.🔢 In a photo-post flow, which comes FIRST? (a) take the photo (b) open the camera screen (c) post the photo (d) write a caption
  17. 17.🧪 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(200) → expected 40
    Test 2: delivery(350) → expected 0
    Test 3: delivery(400) → expected 0
  18. 18.🔁 What number does this code show?
    let runs = [32, 74, 94, 92];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  19. 19.💡 Does an app idea like an app that just says hi solve a real problem? (a) Yes (b) No
  20. 20.♿ A screen has 10 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
  21. 21.🔘 Our rule: buttons are at least 48 px tall. The Done button is 36 px tall. How many px taller must it be?
  22. 22.🔢 When you make an app, what comes right after “build the app”? (a) get an idea (b) test the app (c) release it (d) plan the screens
  23. 23.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) show arrival time (b) see where the bus is (c) a dark mode (d) pick your bus stop
  24. 24.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 30; // start at 30
    line 2: lives = lives + 2; // double it
    line 3: lives = lives - 3; // take away 3
    line 4: show(lives); // show it
    (a) line 3 (b) line 1 (c) line 2
  25. 25.🔀 What does this battery rule show?
    let battery = 19;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  26. 26.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Riya", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Arjun (b) Hi, Aman (c) Hi, Riya
  27. 27.Which of these is an input? (a) tap to go Next (b) tap to Send (c) a date picker (d) the game-over page
  28. 28.Which colour pair is hard to read? (a) black on yellow (b) light grey on white (c) black on pale grey (d) white on dark green
  29. 29.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
    Design A: Home → Pay → Pens
    Design B: Home → Shop → Pay → Search → Confirm → Results → Offers
  30. 30.🐞 What is a bug? (a) a mistake in the code (b) a fast phone (c) a new feature (d) a nice icon
  31. 31.Which of these is data? (a) tap to Start (b) a date picker (c) your saved notes (d) tap to Save
  32. 32.🔘 Our rule: buttons are at least 48 px tall. The Cancel button is 20 px tall. How many px taller must it be?
  33. 33.🔐 Is this permission request fair or too much: voice notes → microphone? (a) too much (b) fair
  34. 34.🎯 What is a user need? (a) a problem a user has (b) a phone setting (c) a type of button (d) a colour theme
  35. 35.Which colour pair is hard to read? (a) pale pink on white (b) white on dark green (c) black on pale grey (d) dark blue on white
  36. 36.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Send button: 24 px tall
    Save button: 64 px tall
    Done button: 48 px tall
    (a) Send (b) Done (c) Save
  37. 37.👆 “On tap → do this” links an event to ___. (a) a charger (b) an action (c) a web address (d) a font
  38. 38.🔢 When you make an app, which comes LAST? (a) build the app (b) release it (c) plan the screens (d) test the app
  39. 39.🔁 What number does this code show?
    let runs = [24, 42, 33];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  40. 40.Which of these is true of a website? (a) opens in a web browser (b) is installed on a phone (c) updates from the store (d) has a home-screen icon

Answer key

  1. find where it goes wrong
  2. input
  3. a tap event
  4. OFF
  5. 46
  6. False
  7. a named box for a value
  8. background music
  9. PIN saved
  10. 3.21.1
  11. a water reminder
  12. True
  13. False
  14. 96
  15. ON
  16. open the camera screen
  17. 3
  18. 3
  19. No
  20. 9
  21. 12
  22. test the app
  23. a dark mode
  24. line 2
  25. Low battery
  26. Hi, Arjun
  27. a date picker
  28. light grey on white
  29. 6
  30. a mistake in the code
  31. your saved notes
  32. 28
  33. fair
  34. a problem a user has
  35. pale pink on white
  36. Send
  37. an action
  38. release it
  39. 0
  40. opens in a web browser

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