← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 316 · 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 lives = 34; // start at 34
    line 2: lives = lives + 3; // add 3
    line 3: lives = lives - 6; // add 6
    line 4: show(lives); // show it
  2. 2.🔢 In a photo-post flow, which comes FIRST? (a) post the photo (b) add a filter (c) write a caption (d) open the camera screen
  3. 3.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Title: 22 px
    Label: 20 px
    Body text: 16 px
  4. 4.✏️ What is a wireframe? (a) the finished app (b) a charging cable (c) a simple screen sketch (d) a type of password
  5. 5.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(19));
  6. 6.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) a dark mode (c) rate the driver (d) see where the bus is
  7. 7.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 47; // start at 47
    line 2: stars = stars + 2; // add 2
    line 3: stars = stars + 8; // add 6
    line 4: stars = stars + 3; // add 3
    line 5: show(stars); // show it
    (a) line 2 (b) line 1 (c) line 4 (d) line 3
  8. 8.🔐 Is this permission request fair or too much: calling app → contacts? (a) too much (b) fair
  9. 9.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Arjun", "Zoya", "Aman"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Riya (b) Hi, Aman (c) Hi, Zoya (d) Hi, Arjun
  10. 10.🗒️ Why keep version 1 small? (a) to look bigger (b) to learn from users soon (c) to use up storage (d) to confuse users
  11. 11.True or false: a racing challenge is a health app. (a) True (b) False
  12. 12.🔀 Which badge does this quiz app show?
    let marks = 47;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Silver (b) Bronze (c) Gold
  13. 13.📱 Which one comes from an app store: an app or a website? (a) a website (b) an app
  14. 14.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 49; // start at 49
    line 2: score = score + 4; // add 4
    line 3: score = score - 5; // take away 3
    line 4: score = score - 4; // take away 4
    line 5: show(score); // show it
  15. 15.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [button] Start
    [button] Back
    [text box] Name
    [button] Cancel
    (a) Name (b) Cancel
  16. 16.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(3) + points(4));
  17. 17.True or false: you write the store text at the release stage. (a) False (b) True
  18. 18.🖼️ In this wireframe (top to bottom), what is right above the Add button?
    [ big picture ]
    [ search box ]
    [ Add button ]
    [ title text ]
    [ top bar ]
    (a) search box (b) title text (c) big picture (d) top bar
  19. 19.🖼️ In this wireframe (top to bottom), what is right below the search box?
    [ tab bar ]
    [ list of items ]
    [ search box ]
    [ menu icon ]
    (a) tab bar (b) menu icon (c) list of items
  20. 20.🧭 Which part of navigation switches main sections? (a) a menu button (b) a tab bar (c) the back button
  21. 21.True or false: your last game level fits saving in the cloud. (a) False (b) True
  22. 22.🚀 In version 2.5.1, which number is the major version? (a) 5 (b) 1 (c) 251 (d) 2
  23. 23.✏️ Do wireframes usually show the final colours? (a) Yes (b) No
  24. 24.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(36));
  25. 25.🧰 What does return do in a function? (a) closes the screen (b) sends back a value (c) repeats the code (d) deletes the app
  26. 26.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(5) + points(3));
  27. 27.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 31; // start at 31
    line 2: score = score * 2; // double it
    line 3: score = score + 4; // take away 4
    line 4: show(score); // show it
    (a) line 1 (b) line 2 (c) line 3
  28. 28.🔀 With if / else if / else, how many parts run? (a) none (b) all of them (c) only one (d) two
  29. 29.True or false: you spot a problem to solve at the idea stage. (a) False (b) True
  30. 30.🔢 After an app is released, what comes right after “read user reviews”? (a) list what to fix (b) fix and improve (c) release an update (d) test it again
  31. 31.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(35, 2));
  32. 32.Which of these is data? (a) a slider for volume (b) tap to Start (c) your saved notes (d) tap to Send
  33. 33.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(5) + points(0));
  34. 34.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Match report”
    2. tap Back
    3. open “Score card”
    4. tap the Quiz tab
    How many times must you tap Back to reach the main screen of this tab?
  35. 35.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Edit photo”
    2. tap the Search tab
    3. open “Match report”
    4. open “Video”
    5. tap Back
    Which screen are you on now?
    (a) Video (b) Match report (c) Home (d) Edit photo
  36. 36.👥 A cricket club app has 40 players, 215 coaches and 20 fans as users. How many users does it have in all?
  37. 37.🔢 In a food-order flow, which comes FIRST? (a) check the cart (b) pay for the order (c) pick a dish (d) open the menu
  38. 38.🔁 What number does this code show?
    let runs = [3, 13, 1, 17, 18];
    let best = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] > best) {
        best = runs[i];
      }
    }
    show(best);
  39. 39.🔀 Why plan the user flow before building? (a) to add more taps (b) to hide the buttons (c) to skip testing (d) so each step is clear
  40. 40.🧰 In function tip(bill), what is bill? (a) a loop (b) an event (c) a screen (d) a parameter

Answer key

  1. 43
  2. open the camera screen
  3. 0
  4. a simple screen sketch
  5. 57
  6. see where the bus is
  7. line 3
  8. fair
  9. Hi, Aman
  10. to learn from users soon
  11. False
  12. Bronze
  13. an app
  14. 44
  15. Cancel
  16. 80
  17. True
  18. search box
  19. menu icon
  20. a tab bar
  21. False
  22. 2
  23. No
  24. 108
  25. sends back a value
  26. 90
  27. line 3
  28. only one
  29. True
  30. list what to fix
  31. 70
  32. your saved notes
  33. 60
  34. 0
  35. Match report
  36. 275
  37. open the menu
  38. 18
  39. so each step is clear
  40. a parameter

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