← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 564 · 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.🔍 Which is the odd one out? (a) tapping a button (b) taking a photo (c) typing your age (d) a beep sound
  2. 2.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(95, 3));
  3. 3.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 56; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 4 (c) line 3 (d) line 2
  4. 4.Which of these is a user need? (a) a share button (b) “What should I cook?” (c) a search bar (d) a reminder alarm
  5. 5.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Body text: 19 px
    Hint: 13 px
    Title: 17 px
    (a) Title (b) Body text (c) Hint
  6. 6.True or false: a website opens in a web browser. (a) False (b) True
  7. 7.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2, 3 (b) 3 (c) 1, 2, 3 (d) 0, 1, 2
  8. 8.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 35; // start at 32
    line 2: stars = stars * 2; // double it
    line 3: stars = stars + 5; // add 5
    line 4: stars = stars + 6; // add 6
    line 5: show(stars); // show it
  9. 9.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) background music (b) check the answer (c) show a question (d) show the score
  10. 10.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(4) + points(1));
  11. 11.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 40; // start at 38
    line 2: score = score + 6; // add 6
    line 3: score = score + 6; // add 6
    line 4: show(score); // show it
  12. 12.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Friend list”
    2. tap Back
    3. open “Map”
    Which screen are you on now?
    (a) Quiz (b) Map (c) Friend list (d) Lessons
  13. 13.⚙️ What number does this app show?
    let bill = 355; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  14. 14.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “losing water bottles”?
    no quiet study place: 8 votes
    forgetting homework: 22 votes
    losing water bottles: 3 votes
  15. 15.🔀 What does this battery rule show?
    let battery = 90;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  16. 16.🔍 Which is the odd one out? (a) put it on an app store (b) spot a problem to solve (c) list what users need (d) talk to possible users
  17. 17.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(3) + points(1));
  18. 18.🛠️ At which stage do you spot a problem to solve? (a) the test stage (b) the plan stage (c) the release stage (d) the idea stage
  19. 19.🔁 Why use a loop to show 100 messages? (a) it uses more lines (b) it hides them (c) less code to write (d) it is slower
  20. 20.👥 A library app has 120 readers, 30 librarians and 285 volunteers as users. Which user group is the biggest? (a) volunteers (b) librarians (c) readers
  21. 21.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Add Homework
    [switch] Sound
    [button] Save
    [text box] City
    [slider] Brightness
    [text box] Phone
    [text box] Email
  22. 22.👥 A school app has 25 students, 250 teachers and 205 parents as users. How many more teachers than students are there?
  23. 23.👆 The user taps the button 2 times. What number does the label show now?
    let stars = 4;
    button.onTap = function () {
      stars = stars + 5;
      label.text = stars;
    };
  24. 24.🧩 How many buttons does this app screen have?
    [title] Order Snacks
    [button] Back
    [button] Save
    [switch] Dark mode
    [button] Done
    [text box] City
    [text box] Name
  25. 25.True or false: a birthday list of friends needs the camera. (a) True (b) False
  26. 26.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 7 or more right answers.
    function result(right) {
      if (right > 7) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(7) → expected Pass
    Test 3: result(5) → expected Try again
    (a) Test 2 (b) Test 1 (c) Test 3
  27. 27.True or false: taking a photo is an input. (a) False (b) True
  28. 28.💾 Where should the app save notes to read offline: on the phone or in the cloud? (a) in the cloud (b) on the phone
  29. 29.🔍 Which is the odd one out? (a) a calculator (b) a spelling coach (c) a flashcard trainer (d) a times-table quiz
  30. 30.🐞 A comment in code (after //) is for ___. (a) the battery (b) the app store (c) people reading the code (d) the phone screen
  31. 31.🌗 Is black on yellow easy or hard to read on a button? (a) easy to read (b) hard to read
  32. 32.🔍 Which is the odd one out? (a) pick the features (b) sketch the screens (c) write the code (d) draw the user flow
  33. 33.⚙️ What number does this app show?
    let bill = 104; // typed by the user
    let friends = 4; // typed by the user
    let share = bill / friends;
    show(share);
  34. 34.✏️ Why draw a wireframe before coding? (a) it runs the app (b) it adds colours (c) it saves data (d) changes are quick
  35. 35.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Video”
    2. open “Match report”
    3. tap the Lessons tab
    4. open “Score card”
    Which screen are you on now?
    (a) Video (b) Lessons (c) Match report (d) Score card
  36. 36.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 34; // start at 34
    line 2: points = points - 3; // add 3
    line 3: points = points + 2; // add 2
    line 4: show(points); // show it
  37. 37.🖼️ How many parts (boxes) does this wireframe have?
    [ tab bar ]
    [ top bar ]
    [ menu icon ]
    [ search box ]
  38. 38.True or false: the icon shapes is about UX (the experience). (a) False (b) True
  39. 39.🔀 What does this sign-up rule show?
    let age = 8;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  40. 40.🔁 What number does this code show?
    let steps = [18, 9, 4, 13, 10];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);

Answer key

  1. a beep sound
  2. 285
  3. line 3
  4. “What should I cook?”
  5. Hint
  6. True
  7. 0, 1, 2
  8. 81
  9. background music
  10. 60
  11. 52
  12. Map
  13. 71
  14. 19
  15. Battery OK
  16. put it on an app store
  17. 50
  18. the idea stage
  19. less code to write
  20. volunteers
  21. 5
  22. 225
  23. 14
  24. 3
  25. False
  26. Test 2
  27. True
  28. on the phone
  29. a calculator
  30. people reading the code
  31. easy to read
  32. write the code
  33. 26
  34. changes are quick
  35. Score card
  36. 33
  37. 4
  38. False
  39. Ask a parent
  40. 18

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