← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 346 · 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.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age <= 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(16) → expected 100
    Test 2: price(11) → expected 100
    Test 3: price(8) → expected 50
  2. 2.True or false: a wireframe has the real colours. (a) False (b) True
  3. 3.📊 Survey: which problem bugs you most? How many more votes did “no quiet study place” get than “missing the bus”?
    missing the bus: 3 votes
    no quiet study place: 21 votes
    wasting pocket money: 5 votes
  4. 4.Which of these is processing? (a) a beep sound (b) tapping a button (c) taking a photo (d) adding up a bill
  5. 5.👆 What kind of event is this: the user types a letter? (a) a timer event (b) a tap event (c) a load event (d) a text event
  6. 6.🔐 Which permission does a party-invite app for friends really need? (a) the camera (b) contacts (c) location (d) the microphone
  7. 7.Which of these fits saving on the phone? (a) chat messages to friends (b) notes to read offline (c) a shared to-do list (d) photos on two devices
  8. 8.Which of these is true of a final design? (a) looks like the real app (b) uses plain grey boxes (c) is a quick sketch (d) shows where things go
  9. 9.💾 What number does this code show?
    let lives = 4;
    lives = lives - 2;
    lives = lives + 3;
    show(lives);
  10. 10.⚙️ In an app, is typing your age an input, processing or an output? (a) input (b) output (c) processing
  11. 11.🔍 Which is the odd one out? (a) the theme colours (b) the font size (c) how fast a task is done (d) the button colours
  12. 12.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 4 (c) 8 (d) 0
  13. 13.🔀 What does this battery rule show?
    let battery = 80;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  14. 14.🔀 What does this PIN rule show?
    let pin = "18534";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  15. 15.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 39; // start at 39
    line 2: coins = coins + 5; // add 5
    line 3: coins = coins + 3; // add 3
    line 4: coins = coins + 3; // take away 3
    line 5: show(coins); // show it
  16. 16.💾 What number does this code show?
    let score = 5;
    score = score - 1;
    score = score + 5;
    show(score);
  17. 17.🐞 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 * 2; // double it
    line 3: stars = stars - 6; // add 6
    line 4: show(stars); // show it
    (a) line 1 (b) line 2 (c) line 3
  18. 18.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Menu: 21 px
    Hint: 17 px
    Body text: 22 px
  19. 19.True or false: an app is installed on a phone. (a) True (b) False
  20. 20.📅 An app team plans for 4 days, builds for 4 days, tests for 2 days and releases on 1 more day. How many more days does building take than testing?
  21. 21.👆 The user taps the button 4 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 2) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  22. 22.📱 Which one comes from an app store: an app or a website? (a) a website (b) an app
  23. 23.True or false: you share the download link at the build stage. (a) False (b) True
  24. 24.🔀 What does this PIN rule show?
    let pin = "104";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  25. 25.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(5) + points(5));
  26. 26.Which of these requests is fair? (a) calculator → location (b) timer → your photos (c) calling app → contacts (d) quiz app → microphone
  27. 27.🗒️ What is a must-have feature? (a) a sound effect (b) a colour theme (c) one the app cannot skip (d) a nice extra
  28. 28.🔍 Which is the odd one out? (a) an alarm clock (b) a torch (c) a puzzle with levels (d) a calculator
  29. 29.🧰 What does return do in a function? (a) repeats the code (b) sends back a value (c) deletes the app (d) closes the screen
  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(350) → expected 0
    Test 2: delivery(300) → expected 0
    Test 3: delivery(100) → expected 40
  31. 31.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
    [ tab bar ]
    [ filter buttons ]
    [ top bar ]
    [ menu icon ]
    [ search box ]
    (a) menu icon (b) tab bar (c) filter buttons (d) search box
  32. 32.🔍 Which is the odd one out? (a) share the download link (b) put it on an app store (c) write the store text (d) draw the user flow
  33. 33.📱 Which one has a home-screen icon: an app or a website? (a) an app (b) a website
  34. 34.🧪 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(350) → expected 0
    Test 2: delivery(200) → expected 40
    Test 3: delivery(500) → expected 0
  35. 35.🔀 What does this sign-up rule show?
    let age = 10;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  36. 36.🧩 Scores, notes and settings that an app keeps are called ___. (a) tabs (b) screens (c) buttons (d) data
  37. 37.True or false: a final design has no real colours. (a) False (b) True
  38. 38.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Video”
    2. open “Badges”
    3. tap the Me tab
    Which screen are you on now?
    (a) Badges (b) Video (c) Lessons (d) Me
  39. 39.🔁 What number does this code show?
    let scores = [94, 11, 74, 86, 68];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  40. 40.🔍 Which is the odd one out? (a) connect the data (b) add the buttons (c) share the download link (d) write the code

Answer key

  1. 2
  2. False
  3. 18
  4. adding up a bill
  5. a text event
  6. contacts
  7. notes to read offline
  8. looks like the real app
  9. 5
  10. input
  11. how fast a task is done
  12. 4
  13. Battery OK
  14. Use 4 digits
  15. 50
  16. 9
  17. line 3
  18. 0
  19. True
  20. 2
  21. 2
  22. an app
  23. False
  24. Use 4 digits
  25. 110
  26. calling app → contacts
  27. one the app cannot skip
  28. a puzzle with levels
  29. sends back a value
  30. 2
  31. search box
  32. draw the user flow
  33. an app
  34. 3
  35. Ask a parent
  36. data
  37. False
  38. Me
  39. 4
  40. share the download link

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