← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 966 · 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: an app needs no installing. (a) False (b) True
  2. 2.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 40; // start at 40
    line 2: stars = stars - 4; // take away 4
    line 3: stars = stars + 3; // add 3
    line 4: stars = stars - 3; // add 3
    line 5: show(stars); // show it
    (a) line 4 (b) line 2 (c) line 1 (d) line 3
  3. 3.🔁 What number does this code show?
    let steps = [83, 76, 90];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  4. 4.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) savings stickers (b) add money spent (c) show the balance (d) add money received
  5. 5.🧭 Where is a tab bar usually placed in a phone app? (a) nowhere (b) inside a button (c) in the middle (d) at the bottom
  6. 6.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 15; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 3 (c) line 1
  7. 7.🖼️ In this wireframe (top to bottom), what is right below the menu icon?
    [ menu icon ]
    [ title text ]
    [ Save button ]
    [ top bar ]
    [ Add button ]
    [ filter buttons ]
    (a) top bar (b) Add button (c) Save button (d) title text
  8. 8.True or false: you spot a problem to solve at the plan stage. (a) True (b) False
  9. 9.💡 Does an app idea like a free study-room finder solve a real problem? (a) Yes (b) No
  10. 10.🚀 Which of these versions is the NEWEST?
    3.13.2, 3.14.2, 2.25.4, 3.6.2
    (a) 3.14.2 (b) 2.25.4 (c) 3.13.2 (d) 3.6.2
  11. 11.Which of these fits saving in the cloud? (a) the sound on/off setting (b) your last game level (c) photos on two devices (d) a draft you are typing
  12. 12.🧩 How many buttons does this app screen have?
    [title] Settings
    [text box] Name
    [switch] Dark mode
    [text box] City
    [button] Start
    [button] Cancel
  13. 13.🔀 What number does this shop app show?
    let total = 360;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  14. 14.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 43; // start at 43
    line 2: score = score - 2; // take away 2
    line 3: score = score * 3; // double it
    line 4: show(score); // show it
    (a) line 1 (b) line 2 (c) line 3
  15. 15.🧪 What is the ACTUAL result of Test 1?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(400) → expected 0
    Test 2: delivery(450) → expected 0
    Test 3: delivery(350) → expected 40
  16. 16.🔀 A screen with no way forward or back is called a ___. (a) dead end (b) home screen (c) shortcut (d) tab bar
  17. 17.🔍 Which is the odd one out? (a) an alarm clock (b) a calculator (c) a water reminder (d) a torch
  18. 18.🔁 What is the LAST line this code shows?
    let names = ["Arjun", "Meera", "Aman", "Riya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Arjun (c) Hi, Aman (d) Hi, Riya
  19. 19.True or false: a draft you are typing fits saving on the phone. (a) True (b) False
  20. 20.True or false: a bill splitter solves no real problem. (a) False (b) True
  21. 21.💾 pop() takes off the last item. What does this code show?
    let notes = ["Art", "Sports", "Maths", "Science", "Hindi"];
    notes.pop();
    show(notes[notes.length - 1]);
    (a) Science (b) Maths (c) Art (d) Sports
  22. 22.Which of these is true of a menu button? (a) undoes one move (b) shows 3 to 5 icons (c) hides extra links (d) sits at the bottom
  23. 23.🔁 What number does this code show?
    let scores = [17, 85, 99, 21];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  24. 24.👥 A library app has 180 readers, 210 librarians and 140 volunteers as users. Which user group is the biggest? (a) librarians (b) volunteers (c) readers
  25. 25.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(21));
  26. 26.🧰 What is a function? (a) a list of colours (b) a type of phone (c) a screen size (d) a named block of code
  27. 27.True or false: a weather-near-me app needs your location. (a) True (b) False
  28. 28.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 31; // start at 30
    line 2: points = points * 2; // double it
    line 3: points = points + 5; // add 5
    line 4: show(points); // show it
  29. 29.Which of these is an input? (a) your saved notes (b) the home page of an app (c) a date picker (d) tap to Send
  30. 30.🧪 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(300) → expected 0
    Test 2: delivery(250) → expected 40
    Test 3: delivery(550) → expected 0
  31. 31.True or false: strong colour contrast is poor button design. (a) True (b) False
  32. 32.Which of these is about UX (the experience)? (a) how easy sign-up is (b) the font size (c) the icon shapes (d) the theme colours
  33. 33.🧪 What is the ACTUAL result of Test 3?
    🚚 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(450) → expected 0
    Test 2: delivery(400) → expected 0
    Test 3: delivery(250) → expected 40
  34. 34.Which of these requests asks for too much? (a) map app → location (b) calculator → location (c) voice notes → microphone (d) calling app → contacts
  35. 35.Which of these is true of the back button? (a) sits at the bottom (b) shows 3 to 5 icons (c) opens a list of pages (d) undoes one move
  36. 36.True or false: notes to read offline fits saving in the cloud. (a) True (b) False
  37. 37.True or false: a website has a web address. (a) True (b) False
  38. 38.Which colour pair is easy to read? (a) light grey on white (b) dark blue on black (c) red on green (d) dark blue on white
  39. 39.🧪 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(6) → expected 50
    Test 2: price(15) → expected 100
    Test 3: price(9) → expected 100
  40. 40.True or false: “colour as the only clue” helps everyone use the app. (a) False (b) True

Answer key

  1. False
  2. line 4
  3. 3
  4. savings stickers
  5. at the bottom
  6. line 2
  7. title text
  8. False
  9. Yes
  10. 3.14.2
  11. photos on two devices
  12. 2
  13. 360
  14. line 3
  15. 40
  16. dead end
  17. a water reminder
  18. Hi, Riya
  19. True
  20. False
  21. Science
  22. hides extra links
  23. 2
  24. librarians
  25. 42
  26. a named block of code
  27. True
  28. 67
  29. a date picker
  30. 3
  31. False
  32. how easy sign-up is
  33. 40
  34. calculator → location
  35. undoes one move
  36. False
  37. True
  38. dark blue on white
  39. 100
  40. False

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