← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 80 · 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.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let coins = 44; // start at 43
    line 2: coins = coins * 2; // double it
    line 3: coins = coins + 2; // add 2
    line 4: show(coins); // show it
  2. 2.📱 Which one updates from the store: an app or a website? (a) a website (b) an app
  3. 3.Which of these is an input? (a) the game-over page (b) a switch for dark mode (c) your high score (d) tap to Start
  4. 4.🚀 Your app is at version 3.11.4. The next release adds a new feature. What is its version number? (a) 3.12.4 (b) 4.0.0 (c) 3.11.5 (d) 3.12.0
  5. 5.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) input (c) output
  6. 6.Which of these fits saving in the cloud? (a) your last game level (b) a draft you are typing (c) a shared to-do list (d) notes to read offline
  7. 7.🔁 What number does this code show?
    let scores = [9, 13, 9];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  8. 8.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 41; // start at 41
    line 2: coins = coins * 2; // double it
    line 3: coins = coins * 2; // double it
    line 4: coins = coins - 3; // add 3
    line 5: show(coins); // show it
  9. 9.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Menu: 12 px
    Hint: 19 px
    Title: 20 px
  10. 10.🔀 What does this PIN rule show?
    let pin = "9180";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  11. 11.🔀 Which badge does this quiz app show?
    let marks = 21;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Gold (c) Silver
  12. 12.💡 How can you check that people really have the problem? (a) ask possible users (b) copy another app (c) just guess (d) pick a colour
  13. 13.True or false: a final design has no real colours. (a) False (b) True
  14. 14.👆 The user taps the button 6 times. What number does the label show now?
    let points = 0;
    button.onTap = function () {
      points = points + 5;
      label.text = points;
    };
  15. 15.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 700) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(600) → expected 40
    Test 2: delivery(900) → expected 0
    Test 3: delivery(700) → expected 0
  16. 16.✏️ A box with a cross in a wireframe usually means ___. (a) a picture goes here (b) an error (c) delete this (d) a closed app
  17. 17.🗒️ What is a must-have feature? (a) a colour theme (b) one the app cannot skip (c) a nice extra (d) a sound effect
  18. 18.True or false: taking a photo is processing. (a) False (b) True
  19. 19.🔢 In a sign-up flow, what comes right after “enter the code sent”? (a) see the home screen (b) tap “Sign up” (c) make a password (d) open the app
  20. 20.🧩 In an app, what is the home page of an app? (a) an input (b) a button (c) data (d) a screen
  21. 21.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 95; // typed by the user
    line 2: let qty = 5; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 2 (b) line 3 (c) line 4 (d) line 1
  22. 22.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 34; // start at 31
    line 2: stars = stars - 1; // take away 1
    line 3: stars = stars - 4; // take away 4
    line 4: stars = stars - 4; // take away 4
    line 5: show(stars); // show it
  23. 23.🌗 Is dark blue on black easy or hard to read on a button? (a) easy to read (b) hard to read
  24. 24.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(1) + points(0));
  25. 25.🧩 Which part lets the user give the app information? (a) a title (b) an input (c) an icon (d) a logo
  26. 26.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Help page”
    2. open “Map”
    3. tap Back
    4. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  27. 27.True or false: a website has a home-screen icon. (a) True (b) False
  28. 28.Which of these app ideas solves a real problem? (a) a blank grey screen (b) a page of random dots (c) a medicine reminder (d) an app that just says hi
  29. 29.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 55; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  30. 30.🔍 Which is the odd one out? (a) a step counter (b) a sleep tracker (c) a water reminder (d) a word battle
  31. 31.💾 What number does this code show?
    let notes = ["Music", "Maths"];
    notes.push("Hindi");
    show(notes.length);
  32. 32.True or false: a final design uses the final pictures. (a) False (b) True
  33. 33.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(30, 6));
  34. 34.♿ What does a screen reader do? (a) takes photos (b) plays music (c) reads the screen aloud (d) makes text tiny
  35. 35.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) rate the driver (c) show arrival time (d) a dark mode
  36. 36.Which of these fits saving on the phone? (a) photos on two devices (b) a shared to-do list (c) the sound on/off setting (d) chat messages to friends
  37. 37.👆 What kind of event is this: the user types a letter? (a) a timer event (b) a load event (c) a tap event (d) a text event
  38. 38.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) see tasks by day (b) add a homework task (c) set a due date (d) pick a theme colour
  39. 39.Which of these happens at the release stage? (a) write the code (b) draw the user flow (c) share the download link (d) pick the features
  40. 40.🐞 What is a good first step when an app gives a wrong result? (a) add more colours (b) find where it goes wrong (c) buy a new phone (d) delete the app

Answer key

  1. 88
  2. an app
  3. a switch for dark mode
  4. 3.12.0
  5. processing
  6. a shared to-do list
  7. 31
  8. 161
  9. 1
  10. PIN saved
  11. Bronze
  12. ask possible users
  13. False
  14. 30
  15. 2
  16. a picture goes here
  17. one the app cannot skip
  18. False
  19. see the home screen
  20. a screen
  21. line 3
  22. 22
  23. hard to read
  24. 20
  25. an input
  26. 0
  27. False
  28. a medicine reminder
  29. line 3
  30. a word battle
  31. 3
  32. True
  33. 180
  34. reads the screen aloud
  35. show arrival time
  36. the sound on/off setting
  37. a text event
  38. pick a theme colour
  39. share the download link
  40. find where it goes wrong

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