← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 169 · 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 scores = [5, 7, 14];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  2. 2.👆 Which of these is an event? (a) the font size (b) the user taps a button (c) the icon colour (d) a list of names
  3. 3.🎨 Is this about UI or UX: the screen layout? (a) UX (b) UI
  4. 4.🎯 Which app would help this user most: a teen learning to make snacks? (a) a bus tracker (b) a recipe finder (c) a pocket-money tracker (d) a big-text reader
  5. 5.🔍 Which is the odd one out? (a) spot a problem to solve (b) talk to possible users (c) write the store text (d) list what users need
  6. 6.True or false: a water reminder is the best fit for a runner who forgets to sip water. (a) False (b) True
  7. 7.🔢 In a quiz-app flow, which comes first: “see the final score” or “see if it is right”? (a) see the final score (b) see if it is right
  8. 8.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) the battery (c) the app store (d) people reading the code
  9. 9.🔀 What number does this shop app show?
    let total = 310;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  10. 10.🔀 What does this sign-up rule show?
    let age = 9;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  11. 11.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 1, 2, 3 (c) 3 (d) 0, 1, 2
  12. 12.🔢 In a food-order flow, what comes right after “open the menu”? (a) add it to the cart (b) track the order (c) check the cart (d) pick a dish
  13. 13.🔢 In a sign-up flow, which comes first: “make a password” or “enter the code sent”? (a) enter the code sent (b) make a password
  14. 14.🧩 How many buttons does this app screen have?
    [title] Sign Up
    [text box] Due date
    [slider] Volume
    [text box] City
    [button] Save
    [text box] Email
    [switch] Sound
  15. 15.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Map”
    2. tap Back
    3. tap the Chat tab
    4. open “Friend list”
    How many times must you tap Back to reach the main screen of this tab?
  16. 16.🧩 Which of these is a button on this screen?
    [title] New Note
    [text box] Name
    [button] Cancel
    [slider] Text size
    [button] Next
    [text box] Due date
    [switch] Show hints
    (a) Show hints (b) Name (c) Next (d) Due date
  17. 17.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) pick your bus stop (c) change the bus icon (d) show arrival time
  18. 18.✏️ What is the easiest way to draw a first wireframe? (a) a microphone (b) a 3D printer (c) pencil and paper (d) a phone case
  19. 19.⚙️ What number does this app show?
    let km = 9; // typed by the user
    let metres = km * 1000;
    show(metres);
  20. 20.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) input (c) output
  21. 21.👆 The user taps the button 1 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
  22. 22.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Well done, " + nameBox.text + "!";
    };
    (a) Well done! (b) Meera (c) Well done, Meera! (d) Well done, nameBox.text!
  23. 23.🔐 Is this permission request fair or too much: voice notes → microphone? (a) fair (b) too much
  24. 24.🔢 In a food-order flow, which comes FIRST? (a) check the cart (b) pick a dish (c) pay for the order (d) open the menu
  25. 25.True or false: the sound on/off setting fits saving on the phone. (a) True (b) False
  26. 26.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Title: 10 px
    Caption: 28 px
    Footer: 17 px
    Hint: 21 px
    (a) Footer (b) Title (c) Hint (d) Caption
  27. 27.🧩 Which of these is a button on this screen?
    [title] Order Snacks
    [text box] Subject
    [text box] City
    [button] Help
    [text box] Due date
    (a) Due date (b) City (c) Help (d) Subject
  28. 28.🔁 What number does this code show?
    let scores = [13, 13, 18, 5];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  29. 29.🔀 What does if / else let an app do? (a) pick one of two actions (b) repeat forever (c) draw a screen (d) save a photo
  30. 30.🔁 Why use a loop to show 100 messages? (a) less code to write (b) it hides them (c) it is slower (d) it uses more lines
  31. 31.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 170; // typed by the user
    line 2: let off = 10; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 4 (b) line 1 (c) line 2 (d) line 3
  32. 32.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(300) → expected 40
    Test 2: delivery(650) → expected 0
    Test 3: delivery(400) → expected 0
  33. 33.🛠️ At which stage do you pick the features? (a) the build stage (b) the release stage (c) the plan stage (d) the test stage
  34. 34.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Body text: 15 px
    Label: 13 px
    Title: 20 px
  35. 35.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 32; // start at 31
    line 2: stars = stars + 6; // add 6
    line 3: stars = stars + 5; // add 5
    line 4: show(stars); // show it
    (a) line 3 (b) line 2 (c) line 1
  36. 36.🌐 Which program do you need to open a website? (a) an app store (b) a web browser (c) a camera app (d) a calculator
  37. 37.📱 Which one opens from a link: an app or a website? (a) an app (b) a website
  38. 38.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Address → Pens → Offers
    Design B: Home → Results → Pens → Offers → Menu → Search
  39. 39.♿ Does this help everyone, or make the app harder to use: captions on videos? (a) makes it harder (b) helps everyone
  40. 40.🔢 When you make an app, what comes right after “build the app”? (a) release it (b) plan the screens (c) get an idea (d) test the app

Answer key

  1. 26
  2. the user taps a button
  3. UI
  4. a recipe finder
  5. write the store text
  6. True
  7. see if it is right
  8. people reading the code
  9. 310
  10. Ask a parent
  11. 0, 1, 2
  12. pick a dish
  13. make a password
  14. 1
  15. 1
  16. Next
  17. change the bus icon
  18. pencil and paper
  19. 9000
  20. processing
  21. ON
  22. Well done, Meera!
  23. fair
  24. open the menu
  25. True
  26. Title
  27. Help
  28. 49
  29. pick one of two actions
  30. less code to write
  31. line 3
  32. 3
  33. the plan stage
  34. 2
  35. line 1
  36. a web browser
  37. a website
  38. 2
  39. helps everyone
  40. test the app

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