← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 853 · 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 function tip(bill), what is bill? (a) an event (b) a loop (c) a screen (d) a parameter
  2. 2.🧪 What is the actual result of a test? (a) what the app really does (b) the app’s name (c) what we hope for (d) the test’s number
  3. 3.🔀 In this course’s code, which sign tests “is equal to”? (a) => (b) !== (c) = (d) ===
  4. 4.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Done button: 36 px tall
    Send button: 48 px tall
    Next button: 56 px tall
    Back button: 64 px tall
    (a) Back (b) Done (c) Send (d) Next
  5. 5.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 470; // typed by the user
    line 2: let off = 40; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 4 (b) line 1 (c) line 3 (d) line 2
  6. 6.🔍 Which is the odd one out? (a) let friends try it (b) try every button (c) list what users need (d) write down the bugs
  7. 7.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Caption: 22 px
    Menu: 19 px
    Body text: 14 px
    Title: 25 px
    Footer: 28 px
    (a) Menu (b) Title (c) Body text (d) Caption
  8. 8.True or false: typing your age is an input. (a) True (b) False
  9. 9.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    missing the bus: 16 votes
    forgetting homework: 7 votes
    wasting pocket money: 8 votes
    (a) wasting pocket money (b) missing the bus (c) forgetting homework
  10. 10.Which of these app ideas solves no real problem? (a) a medicine reminder (b) a free study-room finder (c) a page of random dots (d) a bill splitter
  11. 11.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a wireframe (b) a final design
  12. 12.🚀 A change from version 1.4.2 to 1.4.3 usually means ___. (a) a new app (b) a big redesign (c) a new feature (d) a bug fix
  13. 13.🚀 In version 2.5.1, which number is the major version? (a) 5 (b) 2 (c) 1 (d) 251
  14. 14.True or false: an app needs no installing. (a) False (b) True
  15. 15.🧰 What does return do in a function? (a) closes the screen (b) sends back a value (c) deletes the app (d) repeats the code
  16. 16.♿ What should every icon-only button have for screen readers? (a) a bright colour (b) a sound (c) a text label (d) a long animation
  17. 17.👆 The user taps the button 4 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) ON (b) OFF
  18. 18.👥 A clinic app has 260 patients, 125 doctors and 165 nurses as users. How many more patients than doctors are there?
  19. 19.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 11; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 3 (c) line 1
  20. 20.🔢 When you make an app, what comes right after “build the app”? (a) plan the screens (b) test the app (c) release it (d) get an idea
  21. 21.Which of these happens at the build stage? (a) connect the data (b) list what users need (c) talk to possible users (d) write the store text
  22. 22.🧭 Tapping a tab usually takes you to ___. (a) the phone settings (b) the last app used (c) a random page (d) that tab’s main screen
  23. 23.True or false: an app updates from the store. (a) True (b) False
  24. 24.🔀 What does this sign-up rule show?
    let age = 14;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  25. 25.🔀 What does this battery rule show?
    let battery = 54;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  26. 26.True or false: chat messages to friends fits saving in the cloud. (a) False (b) True
  27. 27.👆 Which of these is an event? (a) the user taps a button (b) a list of names (c) the icon colour (d) the font size
  28. 28.🔀 What does this PIN rule show?
    let pin = "12801";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  29. 29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 41; // start at 38
    line 2: stars = stars + 4; // add 4
    line 3: stars = stars - 5; // take away 5
    line 4: stars = stars - 5; // take away 5
    line 5: show(stars); // show it
    (a) line 4 (b) line 1 (c) line 3 (d) line 2
  30. 30.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) see today’s total (c) custom alert sounds (d) water animations
  31. 31.✏️ Why draw a wireframe before coding? (a) it adds colours (b) it saves data (c) it runs the app (d) changes are quick
  32. 32.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Add Homework
    [button] Done
    [button] Back
    [text box] Age
    [slider] Volume
    [button] Cancel
  33. 33.👆 The user taps the button 3 times. What number does the label show now?
    let coins = 1;
    button.onTap = function () {
      coins = coins + 4;
      label.text = coins;
    };
  34. 34.🧩 Scores, notes and settings that an app keeps are called ___. (a) buttons (b) data (c) screens (d) tabs
  35. 35.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 38; // start at 38
    line 2: stars = stars + 2; // add 2
    line 3: stars = stars + 4; // add 3
    line 4: show(stars); // show it
    (a) line 1 (b) line 2 (c) line 3
  36. 36.True or false: a homework photo scanner needs the microphone. (a) False (b) True
  37. 37.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 41; // start at 41
    line 2: stars = stars - 3; // take away 3
    line 3: stars = stars + 2; // double it
    line 4: show(stars); // show it
  38. 38.💾 Data saved only on the phone is lost when ___. (a) the phone is lost (b) you send a message (c) the app is closed (d) the screen turns off
  39. 39.👆 The user taps the button 2 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
  40. 40.🔢 In a sign-up flow, which comes FIRST? (a) open the app (b) tap “Sign up” (c) make a password (d) type name and email

Answer key

  1. a parameter
  2. what the app really does
  3. ===
  4. Done
  5. line 3
  6. list what users need
  7. Body text
  8. True
  9. missing the bus
  10. a page of random dots
  11. a wireframe
  12. a bug fix
  13. 2
  14. False
  15. sends back a value
  16. a text label
  17. OFF
  18. 135
  19. line 2
  20. test the app
  21. connect the data
  22. that tab’s main screen
  23. True
  24. Welcome!
  25. Battery OK
  26. True
  27. the user taps a button
  28. Use 4 digits
  29. line 1
  30. see today’s total
  31. changes are quick
  32. 2
  33. 13
  34. data
  35. line 3
  36. False
  37. 76
  38. the phone is lost
  39. OFF
  40. open the app

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