← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 275 · 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.👆 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
  2. 2.👥 A library app has 275 readers, 205 librarians and 90 volunteers as users. Which user group is the biggest? (a) librarians (b) volunteers (c) readers
  3. 3.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a beep sound (c) a result on screen (d) adding up a bill
  4. 4.🔁 What number does this code show?
    let runs = [5, 12, 16];
    let best = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] > best) {
        best = runs[i];
      }
    }
    show(best);
  5. 5.🔀 What does this battery rule show?
    let battery = 39;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  6. 6.👥 A cricket club app has 245 players, 80 coaches and 170 fans as users. How many users does it have in all?
  7. 7.Which of these happens at the plan stage? (a) try every button (b) let friends try it (c) draw the user flow (d) talk to possible users
  8. 8.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 34; // start at 34
    line 2: stars = stars + 5; // take away 5
    line 3: stars = stars + 5; // add 5
    line 4: show(stars); // show it
    (a) line 1 (b) line 2 (c) line 3
  9. 9.🔀 What number does this shop app show?
    let total = 350;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  10. 10.🔍 Which is the odd one out? (a) a pop-up message (b) checking a password (c) adding up a bill (d) working out a tip
  11. 11.Which of these is true of a final design? (a) uses plain grey boxes (b) is a quick sketch (c) has no real colours (d) uses the final pictures
  12. 12.🐞 Finding and fixing bugs is called ___. (a) debugging (b) downloading (c) designing (d) decorating
  13. 13.🔘 Our rule: buttons are at least 48 px tall. The Next button is 40 px tall. How many px taller must it be?
  14. 14.🔍 Which is the odd one out? (a) the font size (b) the theme colours (c) how many taps it takes (d) the screen layout
  15. 15.🔀 What does this PIN rule show?
    let pin = "1701";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  16. 16.Which of these helps everyone use the app? (a) sudden loud sounds (b) fast-flashing lights (c) colour as the only clue (d) labels on every icon
  17. 17.👆 The user types Arjun in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hi, " + nameBox.text + "!";
    };
    (a) Arjun (b) Hi! (c) Hi, Arjun! (d) Hi, nameBox.text!
  18. 18.💾 Where should the app save photos on two devices: on the phone or in the cloud? (a) in the cloud (b) on the phone
  19. 19.🖼️ How many parts (boxes) does this wireframe have?
    [ tab bar ]
    [ top bar ]
    [ filter buttons ]
    [ big picture ]
  20. 20.🐞 After fixing a bug you should ___. (a) test it again (b) never test (c) release at once (d) delete the test
  21. 21.🔍 Which is the odd one out? (a) checking a password (b) working out a tip (c) adding up a bill (d) a beep sound
  22. 22.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [button] Back
    [switch] Remind me
    [text box] Age
    [button] Send
    [button] Start
    [text box] Subject
    [text box] Due date
    (a) Due date (b) Age (c) Send (d) Subject
  23. 23.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Help button: 44 px tall
    Back button: 40 px tall
    Start button: 48 px tall
  24. 24.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) add money spent (b) add money received (c) export to a file (d) show the balance
  25. 25.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) set a due date (b) pick a theme colour (c) share tasks to friends (d) earn stickers
  26. 26.👆 The user taps the button 6 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 4) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  27. 27.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) edge cases (b) easy cases (c) old cases (d) phone cases
  28. 28.📊 Survey: which problem bugs you most? How many students voted in all?
    missing the bus: 10 votes
    forgetting birthdays: 7 votes
    no quiet study place: 11 votes
  29. 29.🌗 Is pale pink on white easy or hard to read on a button? (a) hard to read (b) easy to read
  30. 30.🔁 What number does this code show?
    let runs = [18, 16, 15];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  31. 31.🧰 What does this code show?
    function greet(name) {
      return "Hello, " + name + "!";
    }
    show(greet("Zoya"));
    (a) Hello, name! (b) Zoya (c) greet (d) Hello, Zoya!
  32. 32.🧪 A test fails when ___. (a) the app is new (b) both are the same (c) the font is big (d) actual is not expected
  33. 33.🛠️ At which stage do you add the buttons? (a) the release stage (b) the build stage (c) the idea stage (d) the plan stage
  34. 34.🔢 When you make an app, which comes first: “release it” or “plan the screens”? (a) release it (b) plan the screens
  35. 35.True or false: a final design uses plain grey boxes. (a) False (b) True
  36. 36.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 36; // start at 36
    line 2: coins = coins - 1; // take away 1
    line 3: coins = coins - 3; // add 3
    line 4: coins = coins + 2; // add 2
    line 5: show(coins); // show it
  37. 37.✏️ Why draw a wireframe before coding? (a) it runs the app (b) it adds colours (c) changes are quick (d) it saves data
  38. 38.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(0));
  39. 39.💾 Which can hold many values in order? (a) a list (b) a single number (c) a switch (d) a button
  40. 40.Which of these app ideas solves a real problem? (a) a blank grey screen (b) a page of random dots (c) a library due-date alert (d) a button with no action

Answer key

  1. OFF
  2. readers
  3. adding up a bill
  4. 16
  5. Battery OK
  6. 495
  7. draw the user flow
  8. line 2
  9. 350
  10. a pop-up message
  11. uses the final pictures
  12. debugging
  13. 8
  14. how many taps it takes
  15. PIN saved
  16. labels on every icon
  17. Hi, Arjun!
  18. in the cloud
  19. 4
  20. test it again
  21. a beep sound
  22. Send
  23. 1
  24. export to a file
  25. set a due date
  26. 4
  27. edge cases
  28. 28
  29. hard to read
  30. 49
  31. Hello, Zoya!
  32. actual is not expected
  33. the build stage
  34. plan the screens
  35. False
  36. 34
  37. changes are quick
  38. 30
  39. a list
  40. a library due-date alert

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