← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 725 · 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 shop app show?
    let total = 710;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  2. 2.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 34; // start at 34
    line 2: score = score * 2; // double it
    line 3: score = score + 2; // double it
    line 4: score = score * 2; // double it
    line 5: show(score); // show it
  3. 3.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 48; // start at 48
    line 2: lives = lives + 3; // add 3
    line 3: lives = lives - 5; // take away 5
    line 4: lives = lives - 3; // add 3
    line 5: show(lives); // show it
  4. 4.🧰 What is a function? (a) a type of phone (b) a named block of code (c) a list of colours (d) a screen size
  5. 5.🚀 Your app is at version 2.3.6. The next release fixes a small bug. What is its version number? (a) 2.4.0 (b) 3.0.0 (c) 2.4.6 (d) 2.3.7
  6. 6.🎯 Which app would help this user most: a teen learning to make snacks? (a) a big-text reader (b) a bus tracker (c) a recipe finder (d) a water reminder
  7. 7.True or false: “labels on every icon” makes the app harder to use. (a) True (b) False
  8. 8.👆 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) OFF (b) ON
  9. 9.🔢 When you make an app, which comes first: “plan the screens” or “build the app”? (a) plan the screens (b) build the app
  10. 10.🔐 Is this permission request fair or too much: calling app → contacts? (a) fair (b) too much
  11. 11.🧭 Where is a tab bar usually placed in a phone app? (a) in the middle (b) inside a button (c) nowhere (d) at the bottom
  12. 12.🔀 What does this PIN rule show?
    let pin = "32583";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  13. 13.Which of these is true of the back button? (a) shows 3 to 5 icons (b) goes to the last screen (c) sits at the bottom (d) switches main sections
  14. 14.💾 Where should the app save a shared to-do list: on the phone or in the cloud? (a) on the phone (b) in the cloud
  15. 15.True or false: how fast a task is done is about UI (the look). (a) True (b) False
  16. 16.🔁 What number does this code show?
    let steps = [14, 53, 17, 26, 24];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  17. 17.🔁 What number does this code show?
    let scores = [9, 6, 17, 4];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  18. 18.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Save button: 52 px tall
    Next button: 52 px tall
    Back button: 24 px tall
    Done button: 48 px tall
    (a) Save (b) Next (c) Done (d) Back
  19. 19.👆 The user taps the button 6 times. What number does the label show now?
    let coins = 9;
    button.onTap = function () {
      coins = coins + 2;
      label.text = coins;
    };
  20. 20.🔢 In a sign-up flow, what comes right after “type name and email”? (a) enter the code sent (b) see the home screen (c) open the app (d) make a password
  21. 21.👆 The user taps the button 1 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 4) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  22. 22.🔢 In a food-order flow, which comes LAST? (a) check the cart (b) open the menu (c) track the order (d) pick a dish
  23. 23.🧩 Scores, notes and settings that an app keeps are called ___. (a) buttons (b) data (c) tabs (d) screens
  24. 24.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 43; // start at 40
    line 2: score = score * 2; // double it
    line 3: score = score + 4; // add 4
    line 4: show(score); // show it
  25. 25.📊 Survey: which problem bugs you most? How many students voted in all?
    wasting pocket money: 8 votes
    missing the bus: 5 votes
    no quiet study place: 13 votes
  26. 26.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Done button: 44 px tall
    Send button: 60 px tall
    Help button: 60 px tall
  27. 27.True or false: a final design looks like the real app. (a) True (b) False
  28. 28.🚀 Which version is newer: 2.0.8 or 2.0.14? (a) 2.0.8 (b) 2.0.14
  29. 29.🖼️ In this wireframe (top to bottom), what is right above the top bar?
    [ filter buttons ]
    [ big picture ]
    [ search box ]
    [ tab bar ]
    [ top bar ]
    [ Save button ]
    (a) Save button (b) big picture (c) search box (d) tab bar
  30. 30.📅 An app team plans for 2 days, builds for 4 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  31. 31.🔢 In a photo-post flow, which comes FIRST? (a) write a caption (b) open the camera screen (c) post the photo (d) take the photo
  32. 32.🔍 Which is the odd one out? (a) list what users need (b) talk to possible users (c) write the code (d) spot a problem to solve
  33. 33.Which of these happens at the plan stage? (a) write the code (b) draw the user flow (c) let friends try it (d) spot a problem to solve
  34. 34.Which of these is true of an app? (a) is installed on a phone (b) opens in a web browser (c) opens from a link (d) has a web address
  35. 35.🗒️ What is a must-have feature? (a) a sound effect (b) one the app cannot skip (c) a colour theme (d) a nice extra
  36. 36.✏️ Is this true of a wireframe or of a final design: uses plain grey boxes? (a) a wireframe (b) a final design
  37. 37.🔀 What does this battery rule show?
    let battery = 9;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  38. 38.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) show the balance (c) export to a file (d) pie-chart colours
  39. 39.Which of these fits saving on the phone? (a) photos on two devices (b) a class leaderboard (c) chat messages to friends (d) your last game level
  40. 40.True or false: a walking map needs your location. (a) True (b) False

Answer key

  1. 660
  2. 272
  3. 49
  4. a named block of code
  5. 2.3.7
  6. a recipe finder
  7. False
  8. OFF
  9. plan the screens
  10. fair
  11. at the bottom
  12. Use 4 digits
  13. goes to the last screen
  14. in the cloud
  15. False
  16. 0
  17. 17
  18. Back
  19. 21
  20. make a password
  21. 1
  22. track the order
  23. data
  24. 84
  25. 26
  26. 2
  27. True
  28. 2.0.14
  29. tab bar
  30. 6
  31. open the camera screen
  32. write the code
  33. draw the user flow
  34. is installed on a phone
  35. one the app cannot skip
  36. a wireframe
  37. Low battery
  38. show the balance
  39. your last game level
  40. True

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