← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 177 · 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 an app, what is a switch for dark mode? (a) an input (b) a screen (c) data (d) a button
  2. 2.🔁 What number does this code show?
    let runs = [10, 1, 1, 13];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  3. 3.Which of these is a user need? (a) “I keep missing the bus” (b) a reminder alarm (c) a search bar (d) a dark mode switch
  4. 4.💡 An app that tries to do everything at once is usually ___. (a) hard to use (b) very small (c) finished fast (d) easy to build
  5. 5.🧪 What is the ACTUAL result of Test 2?
    🚚 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(1000) → expected 0
    Test 2: delivery(900) → expected 0
    Test 3: delivery(550) → expected 40
  6. 6.Which of these is an output? (a) sorting the scores (b) typing your age (c) a pop-up message (d) taking a photo
  7. 7.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(4) + points(4));
  8. 8.💾 What number does this code show?
    let points = 5;
    points = points - 4;
    points = points + 3;
    show(points);
  9. 9.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(25, 3));
  10. 10.🧰 What does this code show?
    function greet(name) {
      return "Welcome, " + name + "!";
    }
    show(greet("Riya"));
    (a) Welcome, name! (b) greet (c) Welcome, Riya! (d) Riya
  11. 11.🔁 What number does this code show?
    let steps = [36, 45, 47, 68, 88];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  12. 12.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 35; // start at 34
    line 2: coins = coins + 6; // add 6
    line 3: coins = coins * 2; // double it
    line 4: show(coins); // show it
    (a) line 2 (b) line 3 (c) line 1
  13. 13.🔢 When you make an app, which comes FIRST? (a) plan the screens (b) build the app (c) get an idea (d) test the app
  14. 14.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 38; // start at 36
    line 2: coins = coins + 3; // add 3
    line 3: coins = coins - 1; // take away 1
    line 4: show(coins); // show it
    (a) line 3 (b) line 2 (c) line 1
  15. 15.Which of these is about UI (the look)? (a) how many taps it takes (b) how users feel after (c) the theme colours (d) how easy sign-up is
  16. 16.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 34; // start at 34
    line 2: lives = lives - 4; // take away 1
    line 3: lives = lives - 3; // take away 3
    line 4: show(lives); // show it
  17. 17.🔀 What does this sign-up rule show?
    let age = 14;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  18. 18.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
  19. 19.🗒️ A to-do app with no “add a task” feature is ___. (a) ready to release (b) well planned (c) missing a must-have (d) a nice extra
  20. 20.Which colour pair is easy to read? (a) light grey on white (b) red on green (c) dark blue on black (d) black on pale grey
  21. 21.True or false: a slider for volume is a button. (a) True (b) False
  22. 22.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Help button: 28 px tall
    Done button: 60 px tall
    Start button: 68 px tall
    (a) Done (b) Start (c) Help
  23. 23.⚙️ In an app, is adding up a bill an input, processing or an output? (a) input (b) output (c) processing
  24. 24.Which of these is true of an app? (a) comes from an app store (b) needs no installing (c) has a web address (d) opens from a link
  25. 25.💾 What number does this code show?
    let stars = 6;
    stars = stars - 5;
    stars = stars + 4;
    show(stars);
  26. 26.👥 A cricket club app has 70 players, 130 coaches and 140 fans as users. How many more fans than players are there?
  27. 27.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 33; // start at 30
    line 2: points = points + 2; // add 2
    line 3: points = points - 2; // take away 2
    line 4: show(points); // show it
    (a) line 2 (b) line 1 (c) line 3
  28. 28.Which of these is about UX (the experience)? (a) the theme colours (b) the button colours (c) how fast a task is done (d) the font size
  29. 29.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [slider] Brightness
    [text box] Phone
    [button] Next
    [button] Start
    [button] Cancel
    (a) Brightness (b) Next (c) Phone
  30. 30.🖼️ In this wireframe (top to bottom), what is right above the search box?
    [ tab bar ]
    [ Save button ]
    [ Add button ]
    [ top bar ]
    [ search box ]
    (a) Add button (b) Save button (c) tab bar (d) top bar
  31. 31.🔀 What does if / else let an app do? (a) draw a screen (b) repeat forever (c) pick one of two actions (d) save a photo
  32. 32.🔘 Is this good or poor button design: a clear word like Save? (a) good design (b) poor design
  33. 33.🖼️ How many parts (boxes) does this wireframe have?
    [ menu icon ]
    [ big picture ]
    [ Save button ]
    [ list of items ]
    [ title text ]
    [ filter buttons ]
  34. 34.🎯 Which app would help this user most: a pupil juggling five projects? (a) a homework planner (b) a big-text reader (c) a pocket-money tracker (d) a bus tracker
  35. 35.💾 In most code, the first item of a list is at position ___. (a) 2 (b) 1 (c) 0 (d) 10
  36. 36.💾 What does this code show? (Positions start at 0.)
    let songs = ["Sunrise", "Rain", "Monsoon"];
    show(songs[0]);
    (a) Monsoon (b) Sunrise (c) Rain
  37. 37.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(33));
  38. 38.🔐 A torch app asks for your contacts. What should you do? (a) allow it (b) share them all (c) deny it (d) post them online
  39. 39.🔢 When you make an app, what comes right after “build the app”? (a) test the app (b) release it (c) plan the screens (d) get an idea
  40. 40.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 34; // start at 34
    line 2: points = points + 6; // add 6
    line 3: points = points * 3; // double it
    line 4: points = points * 2; // double it
    line 5: show(points); // show it

Answer key

  1. an input
  2. 25
  3. “I keep missing the bus”
  4. hard to use
  5. 0
  6. a pop-up message
  7. 90
  8. 4
  9. 75
  10. Welcome, Riya!
  11. 4
  12. line 1
  13. get an idea
  14. line 1
  15. the theme colours
  16. 27
  17. Welcome!
  18. poor design
  19. missing a must-have
  20. black on pale grey
  21. False
  22. Help
  23. processing
  24. comes from an app store
  25. 5
  26. 70
  27. line 1
  28. how fast a task is done
  29. Next
  30. top bar
  31. pick one of two actions
  32. good design
  33. 6
  34. a homework planner
  35. 0
  36. Sunrise
  37. 66
  38. deny it
  39. test the app
  40. 240

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