← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 542 · 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.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Confirm → Pens → Size → Pay
    Design B: Home → Pens → Shop → Offers → Cart → Item → Address
  2. 2.🔁 What number does this code show?
    let runs = [20, 4, 13, 3];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  3. 3.🔁 What is the LAST line this code shows?
    let names = ["Zoya", "Kabir", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Arjun (b) Hi, Kabir (c) Hi, Zoya
  4. 4.🔀 Which badge does this quiz app show?
    let marks = 78;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  5. 5.Which of these is a screen? (a) a slider for volume (b) your friends list (c) a box to type a name (d) the game-over page
  6. 6.🧩 Which input is best for turning something ON or OFF? (a) a switch (b) a text box (c) a title (d) a slider
  7. 7.💡 Which app idea solves this problem: projects pile up at once? (a) a bill splitter (b) a lost-and-found board (c) a homework planner (d) a study-room finder
  8. 8.🧭 Why should every screen show where you are? (a) to use more battery (b) so users do not get lost (c) to hide the menu (d) to look busy
  9. 9.💡 Does an app idea like a medicine reminder solve a real problem? (a) No (b) Yes
  10. 10.💾 What does this code show? (Positions start at 0.)
    let songs = ["Sunrise", "Monsoon", "Ocean", "Stars"];
    show(songs[3]);
    (a) Ocean (b) Monsoon (c) Stars (d) Sunrise
  11. 11.👆 What kind of event is this: the search box changes? (a) a timer event (b) a tap event (c) a load event (d) a text event
  12. 12.Which of these is about UX (the experience)? (a) the button colours (b) the font size (c) how users feel after (d) the icon shapes
  13. 13.🔀 What does >= mean? (a) smaller or equal (b) greater than or equal (c) less than (d) not equal
  14. 14.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 47; // start at 47
    line 2: score = score + 2; // double it
    line 3: score = score - 4; // take away 4
    line 4: score = score - 1; // take away 1
    line 5: show(score); // show it
  15. 15.Which of these is true of an app? (a) needs no installing (b) opens from a link (c) comes from an app store (d) has a web address
  16. 16.🔀 What is a user flow? (a) a colour theme (b) a charging cable (c) the path through screens (d) a type of font
  17. 17.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Start button: 44 px tall
    Back button: 48 px tall
    Save button: 56 px tall
    (a) Back (b) Save (c) Start
  18. 18.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let coins = 45; // start at 42
    line 2: coins = coins - 4; // take away 4
    line 3: coins = coins + 6; // add 6
    line 4: show(coins); // show it
  19. 19.🧩 Which part lets the user give the app information? (a) an input (b) a logo (c) a title (d) an icon
  20. 20.💡 Which app idea solves this problem: a patient misses doses? (a) a study-room finder (b) a lost-and-found board (c) a medicine reminder (d) a bill splitter
  21. 21.🔢 In a sign-up flow, what comes right after “type name and email”? (a) make a password (b) see the home screen (c) open the app (d) tap “Sign up”
  22. 22.⚙️ What number does this app show?
    let price = 70; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  23. 23.🗒️ Version 1 of a quiz app must be ready in 14 days. How many days are left for extras after the must-haves?
    show a question: 4 days
    check the answer: 2 days
    show the score: 4 days
  24. 24.🔁 What number does this code show?
    let steps = [14, 5, 15, 5];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  25. 25.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Video”
    2. open “Map”
    3. tap Back
    4. tap Back
    Which screen are you on now?
    (a) Search (b) Home (c) Video (d) Map
  26. 26.🧪 How many of these test cases pass?
    📝 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(10) → expected Pass
    Test 2: result(5) → expected Try again
    Test 3: result(9) → expected Pass
  27. 27.🔀 What does this sign-up rule show?
    let age = 17;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  28. 28.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
    Design A: Home → Pay → Results → Offers
    Design B: Home → Size → Item → Pay → Results → Confirm
  29. 29.📅 An app team plans for 2 days, builds for 11 days, tests for 1 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  30. 30.True or false: a lost-and-found board solves no real problem. (a) True (b) False
  31. 31.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(15) → expected 100
    Test 2: price(6) → expected 50
    Test 3: price(12) → expected 100
  32. 32.Which of these is true of an app? (a) opens in a web browser (b) is installed on a phone (c) needs no installing (d) opens from a link
  33. 33.True or false: photos on two devices fits saving in the cloud. (a) False (b) True
  34. 34.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a button with no action (c) a medicine reminder (d) a lost-and-found board
  35. 35.True or false: buttons almost touching is good button design. (a) True (b) False
  36. 36.Which of these requests asks for too much? (a) voice notes → microphone (b) calculator → location (c) map app → location (d) camera app → camera
  37. 37.👆 The user types Aman in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Hello! (b) Hello, Aman! (c) Aman (d) Hello, nameBox.text!
  38. 38.True or false: a button with no action solves no real problem. (a) False (b) True
  39. 39.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) in the cloud (b) on the phone
  40. 40.🔍 Which is the odd one out? (a) a step counter (b) a racing challenge (c) a water reminder (d) a sleep tracker

Answer key

  1. 2
  2. 40
  3. Hi, Arjun
  4. Silver
  5. the game-over page
  6. a switch
  7. a homework planner
  8. so users do not get lost
  9. Yes
  10. Stars
  11. a text event
  12. how users feel after
  13. greater than or equal
  14. 89
  15. comes from an app store
  16. the path through screens
  17. Start
  18. 44
  19. an input
  20. a medicine reminder
  21. make a password
  22. 420
  23. 4
  24. 39
  25. Home
  26. 3
  27. Welcome!
  28. 3
  29. 13
  30. False
  31. 3
  32. is installed on a phone
  33. True
  34. a button with no action
  35. False
  36. calculator → location
  37. Hello, Aman!
  38. True
  39. in the cloud
  40. a racing challenge

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