← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 752 · 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 number does this code show?
    let notes = ["Sports", "Hindi", "Music"];
    notes.push("Art");
    show(notes.length);
  2. 2.🧪 What is the actual result of a test? (a) what we hope for (b) the test’s number (c) the app’s name (d) what the app really does
  3. 3.🎯 Which app would help this user most: a pupil juggling five projects? (a) a water reminder (b) a bus tracker (c) a homework planner (d) a pocket-money tracker
  4. 4.🗒️ Version 1 of a pocket-money tracker must be ready in 10 days. How many days are left for extras after the must-haves?
    add money received: 4 days
    add money spent: 2 days
    show the balance: 4 days
  5. 5.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 32; // start at 32
    line 2: stars = stars + 5; // add 5
    line 3: stars = stars + 1; // take away 1
    line 4: show(stars); // show it
    (a) line 3 (b) line 1 (c) line 2
  6. 6.♿ A screen has 5 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
  7. 7.🔘 Our rule: buttons are at least 48 px tall. The Save button is 20 px tall. How many px taller must it be?
  8. 8.🔍 Which is the odd one out? (a) the icon shapes (b) how easy sign-up is (c) the screen layout (d) the font size
  9. 9.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 2; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 1 (c) line 3
  10. 10.True or false: a box to type a name is an input. (a) False (b) True
  11. 11.Which of these is true of a website? (a) updates from the store (b) opens in a web browser (c) has a home-screen icon (d) is installed on a phone
  12. 12.🔀 What does this sign-up rule show?
    let age = 13;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  13. 13.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(6) → expected 50
    Test 2: price(10) → expected 100
    Test 3: price(11) → expected 100
    (a) Test 3 (b) Test 2 (c) Test 1
  14. 14.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Badges”
    2. tap the Home tab
    3. open “Edit photo”
    4. open “Match report”
    5. open “Video”
    How many times must you tap Back to reach the main screen of this tab?
  15. 15.Which colour pair is hard to read? (a) white on black (b) pale pink on white (c) black on pale grey (d) dark blue on white
  16. 16.🔀 What number does this shop app show?
    let total = 250;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  17. 17.🧪 A test case is an input together with its ___. (a) screen colour (b) expected result (c) font size (d) app icon
  18. 18.💡 After a survey, which need should version 1 solve? (a) a random need (b) the most common need (c) the newest trend (d) the rarest need
  19. 19.🔁 Why use a loop to show 100 messages? (a) it is slower (b) less code to write (c) it uses more lines (d) it hides them
  20. 20.🧪 What is the ACTUAL result of Test 1?
    🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
    function price(age) {
      if (age <= 13) {
        return 50;
      }
      return 100;
    }
    Test 1: price(13) → expected 100
    Test 2: price(15) → expected 100
    Test 3: price(11) → expected 50
  21. 21.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Help page”
    2. tap Back
    3. tap the Lessons tab
    4. open “Friend list”
    5. tap Back
    Which screen are you on now?
    (a) Help page (b) Quiz (c) Friend list (d) Lessons
  22. 22.True or false: a recipe finder is the best fit for a cook with no idea for dinner. (a) True (b) False
  23. 23.True or false: a recipe finder is the best fit for a student who keeps forgetting due dates. (a) False (b) True
  24. 24.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Cancel button: 56 px tall
    Help button: 48 px tall
    Next button: 40 px tall
    (a) Help (b) Cancel (c) Next
  25. 25.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 4 (c) 0 (d) 8
  26. 26.✏️ Is this true of a wireframe or of a final design: looks like the real app? (a) a final design (b) a wireframe
  27. 27.🔀 What number does this shop app show?
    let total = 410;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  28. 28.🔘 Our rule: buttons are at least 48 px tall. The Help button is 32 px tall. How many px taller must it be?
  29. 29.🗂️ What kind of app is a water reminder? (a) a health app (b) a learning app (c) a game (d) a tool app
  30. 30.Which of these is true of a wireframe? (a) looks like the real app (b) shows the real fonts (c) has the real colours (d) is a quick sketch
  31. 31.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 35; // start at 35
    line 2: stars = stars * 3; // double it
    line 3: stars = stars - 2; // take away 2
    line 4: show(stars); // show it
  32. 32.📅 An app team plans for 5 days, builds for 6 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  33. 33.🔍 Which is the odd one out? (a) share the download link (b) put it on an app store (c) write the store text (d) talk to possible users
  34. 34.🔀 When does the else part run? (a) when the test is true (b) when the test is false (c) never (d) always
  35. 35.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Score card”
    2. tap Back
    3. tap the Home tab
    Which screen are you on now?
    (a) Profile (b) Home (c) Search (d) Score card
  36. 36.🧰 What does return do in a function? (a) sends back a value (b) deletes the app (c) repeats the code (d) closes the screen
  37. 37.True or false: a tiny 20 px button is good button design. (a) False (b) True
  38. 38.👆 The user taps the button 5 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) OFF (b) ON
  39. 39.🔀 What number does this shop app show?
    let total = 740;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  40. 40.⚙️ In an app, is a result on screen an input, processing or an output? (a) processing (b) input (c) output

Answer key

  1. 4
  2. what the app really does
  3. a homework planner
  4. 0
  5. line 3
  6. 4
  7. 28
  8. how easy sign-up is
  9. line 2
  10. True
  11. opens in a web browser
  12. Welcome!
  13. Test 2
  14. 3
  15. pale pink on white
  16. 250
  17. expected result
  18. the most common need
  19. less code to write
  20. 50
  21. Lessons
  22. True
  23. False
  24. Next
  25. 4
  26. a final design
  27. 410
  28. 16
  29. a health app
  30. is a quick sketch
  31. 68
  32. 11
  33. talk to possible users
  34. when the test is false
  35. Home
  36. sends back a value
  37. False
  38. ON
  39. 690
  40. output

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