← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 474 · 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.🐞 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
  2. 2.🔀 Which badge does this quiz app show?
    let marks = 85;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Bronze (c) Silver
  3. 3.⚙️ What number does this app show?
    let price = 590; // typed by the user
    let off = 50; // typed by the user
    let pay = price - off;
    show(pay);
  4. 4.True or false: the app starts up is a tap event. (a) True (b) False
  5. 5.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Sign Up
    [text box] Notes
    [button] Next
    [button] Back
    [switch] Remind me
    [slider] Volume
  6. 6.🔢 In a photo-post flow, which comes first: “add a filter” or “post the photo”? (a) add a filter (b) post the photo
  7. 7.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Map”
    2. tap Back
    3. tap the Lessons tab
    How many times must you tap Back to reach the main screen of this tab?
  8. 8.🔀 Which badge does this quiz app show?
    let marks = 55;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Gold (c) Silver
  9. 9.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Caption: 10 px
    Body text: 23 px
    Footer: 21 px
    (a) Caption (b) Footer (c) Body text
  10. 10.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Caption: 26 px
    Body text: 23 px
    Label: 9 px
    (a) Label (b) Caption (c) Body text
  11. 11.⚙️ What number does this app show?
    let km = 2; // typed by the user
    let metres = km * 1000;
    show(metres);
  12. 12.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 44; // start at 44
    line 2: lives = lives - 4; // take away 4
    line 3: lives = lives + 8; // add 6
    line 4: lives = lives + 3; // add 3
    line 5: show(lives); // show it
    (a) line 2 (b) line 4 (c) line 1 (d) line 3
  13. 13.Which of these is true of a website? (a) is installed on a phone (b) opens from a link (c) has a home-screen icon (d) updates from the store
  14. 14.💾 What number does this code show?
    let notes = ["Music", "Art"];
    notes.push("Sports");
    notes.push("Hindi");
    show(notes.length);
  15. 15.💾 Where should the app save the sound on/off setting: on the phone or in the cloud? (a) on the phone (b) in the cloud
  16. 16.True or false: you add the buttons at the release stage. (a) True (b) False
  17. 17.💾 What number does this code show?
    let songs = ["Kites", "Monsoon", "Stars", "Sunrise"];
    songs.push("Ocean");
    show(songs.length);
  18. 18.🔢 In a food-order flow, which comes LAST? (a) open the menu (b) pay for the order (c) check the cart (d) track the order
  19. 19.🔐 Which permission does a birthday list of friends really need? (a) the camera (b) location (c) the microphone (d) contacts
  20. 20.Which of these makes the app harder to use? (a) strong colour contrast (b) sudden loud sounds (c) big touch targets (d) labels on every icon
  21. 21.🐞 What is a bug? (a) a new feature (b) a fast phone (c) a nice icon (d) a mistake in the code
  22. 22.🧭 Tapping a tab usually takes you to ___. (a) that tab’s main screen (b) the last app used (c) a random page (d) the phone settings
  23. 23.🔢 In a food-order flow, which comes first: “open the menu” or “add it to the cart”? (a) add it to the cart (b) open the menu
  24. 24.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(22));
  25. 25.🔍 Which is the odd one out? (a) talk to possible users (b) list what users need (c) spot a problem to solve (d) write the code
  26. 26.🔀 What does this PIN rule show?
    let pin = "89733";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  27. 27.📊 Survey: which problem bugs you most? How many more votes did “forgetting birthdays” get than “wasting pocket money”?
    wasting pocket money: 7 votes
    forgetting birthdays: 24 votes
    forgetting homework: 11 votes
  28. 28.🛠️ At which stage do you put it on an app store? (a) the plan stage (b) the build stage (c) the test stage (d) the release stage
  29. 29.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(5) + points(5));
  30. 30.👆 “On tap → do this” links an event to ___. (a) a font (b) a web address (c) a charger (d) an action
  31. 31.🔐 Which permission does a party-invite app for friends really need? (a) the camera (b) the microphone (c) location (d) contacts
  32. 32.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) custom alert sounds (c) water animations (d) set a reminder time
  33. 33.🧰 What is a function? (a) a type of phone (b) a list of colours (c) a screen size (d) a named block of code
  34. 34.🎨 Fewer taps to finish a task usually means ___. (a) a bigger app (b) worse UX (c) better UX (d) more colours
  35. 35.📅 An app team plans for 3 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?
  36. 36.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 800) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(1000) → expected 0
    Test 2: delivery(800) → expected 0
    Test 3: delivery(650) → expected 40
    (a) Test 2 (b) Test 3 (c) Test 1
  37. 37.Which of these is a screen? (a) tap to go Next (b) a switch for dark mode (c) tap to Send (d) the settings page
  38. 38.🔀 What does if / else let an app do? (a) repeat forever (b) draw a screen (c) save a photo (d) pick one of two actions
  39. 39.🔢 In a sign-up flow, what comes right after “tap “Sign up””? (a) see the home screen (b) type name and email (c) open the app (d) make a password
  40. 40.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 43; // start at 43
    line 2: points = points + 3; // add 3
    line 3: points = points + 5; // take away 5
    line 4: show(points); // show it

Answer key

  1. find where it goes wrong
  2. Gold
  3. 540
  4. False
  5. 3
  6. add a filter
  7. 0
  8. Silver
  9. Caption
  10. Label
  11. 2000
  12. line 3
  13. opens from a link
  14. 4
  15. on the phone
  16. False
  17. 5
  18. track the order
  19. contacts
  20. sudden loud sounds
  21. a mistake in the code
  22. that tab’s main screen
  23. open the menu
  24. 66
  25. write the code
  26. Use 4 digits
  27. 17
  28. the release stage
  29. 110
  30. an action
  31. contacts
  32. set a reminder time
  33. a named block of code
  34. better UX
  35. 14
  36. Test 2
  37. the settings page
  38. pick one of two actions
  39. type name and email
  40. 41

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