← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 509 · 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 of these is data? (a) a box to type a name (b) a slider for volume (c) your friends list (d) the game-over page
  2. 2.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(20, 6));
  3. 3.True or false: your last game level fits saving in the cloud. (a) True (b) False
  4. 4.🌗 Is yellow on white easy or hard to read on a button? (a) easy to read (b) hard to read
  5. 5.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(4) + points(0));
  6. 6.🧰 What does this code show?
    function greet(name) {
      return "Hi, " + name + "!";
    }
    show(greet("Aman"));
    (a) Hi, Aman! (b) Hi, name! (c) Aman (d) greet
  7. 7.🔍 Which is the odd one out? (a) the font size (b) the screen layout (c) whether users get lost (d) the theme colours
  8. 8.⚙️ What number does this app show?
    let price = 200; // typed by the user
    let off = 50; // typed by the user
    let pay = price - off;
    show(pay);
  9. 9.🔘 Our rule: buttons are at least 48 px tall. The Next button is 28 px tall. How many px taller must it be?
  10. 10.🔁 What number does this code show?
    let marks = [3, 14, 10, 15, 2];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  11. 11.🔁 A loop over a list of 5 items runs its body how many times? (a) 1 (b) 4 (c) 5 (d) 6
  12. 12.Which of these is true of a website? (a) updates from the store (b) has a home-screen icon (c) comes from an app store (d) needs no installing
  13. 13.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. tap the Home tab
    2. open “Video”
    3. tap the Home tab
    Which screen are you on now?
    (a) Video (b) Profile (c) Search (d) Home
  14. 14.🔁 What does a loop do? (a) saves photos (b) deletes code (c) draws icons (d) repeats code
  15. 15.Which of these app ideas solves a real problem? (a) a button with no action (b) a lost-and-found board (c) a page of random dots (d) a blank grey screen
  16. 16.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
    function price(age) {
      if (age <= 8) {
        return 50;
      }
      return 100;
    }
    Test 1: price(7) → expected 50
    Test 2: price(8) → expected 100
    Test 3: price(9) → expected 100
    (a) Test 2 (b) Test 1 (c) Test 3
  17. 17.Which colour pair is hard to read? (a) black on yellow (b) black on pale grey (c) white on dark green (d) light grey on white
  18. 18.♿ A screen has 8 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
  19. 19.🔐 Is this permission request fair or too much: camera app → camera? (a) too much (b) fair
  20. 20.🗂️ What kind of app is a puzzle with levels? (a) a learning app (b) a tool app (c) a health app (d) a game
  21. 21.⚙️ In an app, is checking a password an input, processing or an output? (a) processing (b) input (c) output
  22. 22.👥 A cricket club app has 235 players, 110 coaches and 300 fans as users. Which user group is the biggest? (a) fans (b) coaches (c) players
  23. 23.Which of these is processing? (a) taking a photo (b) adding up a bill (c) a beep sound (d) tapping a button
  24. 24.🔢 In a sign-up flow, which comes first: “open the app” or “see the home screen”? (a) see the home screen (b) open the app
  25. 25.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(3));
  26. 26.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Footer: 10 px
    Menu: 13 px
    Hint: 22 px
  27. 27.♿ What should every icon-only button have for screen readers? (a) a long animation (b) a sound (c) a bright colour (d) a text label
  28. 28.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Save button: 36 px tall
    Back button: 56 px tall
    Cancel button: 36 px tall
    Next button: 48 px tall
  29. 29.👥 A school app has 180 students, 215 teachers and 45 parents as users. How many users does it have in all?
  30. 30.🚀 Your app is at version 1.5.4. The next release is a big redesign that changes how the app works. What is its version number? (a) 1.6.4 (b) 1.5.5 (c) 1.6.0 (d) 2.0.0
  31. 31.🔁 What number does this code show?
    let steps = [6, 16, 7, 11, 1];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  32. 32.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “wasting pocket money”?
    missing the bus: 15 votes
    forgetting birthdays: 17 votes
    wasting pocket money: 3 votes
  33. 33.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Welcome, " + nameBox.text + "!";
    };
    (a) Welcome, Meera! (b) Welcome! (c) Welcome, nameBox.text! (d) Meera
  34. 34.🌗 Is red on green easy or hard to read on a button? (a) hard to read (b) easy to read
  35. 35.🔍 Which is the odd one out? (a) working out a tip (b) tapping a button (c) typing your age (d) taking a photo
  36. 36.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 30; // start at 30
    line 2: stars = stars + 6; // add 4
    line 3: stars = stars + 3; // add 3
    line 4: show(stars); // show it
    (a) line 1 (b) line 3 (c) line 2
  37. 37.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [button] Next
    [button] Help
    [text box] Name
    [text box] Email
    [switch] Remind me
    [button] Back
    (a) Name (b) Email (c) Back (d) Remind me
  38. 38.👆 Which of these is an event? (a) the user taps a button (b) the font size (c) a list of names (d) the icon colour
  39. 39.Which of these is an output? (a) checking a password (b) taking a photo (c) a result on screen (d) working out a tip
  40. 40.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 48; // start at 48
    line 2: score = score - 5; // take away 5
    line 3: score = score + 4; // add 4
    line 4: score = score + 4; // take away 4
    line 5: show(score); // show it
    (a) line 1 (b) line 2 (c) line 3 (d) line 4

Answer key

  1. your friends list
  2. 120
  3. False
  4. hard to read
  5. 50
  6. Hi, Aman!
  7. whether users get lost
  8. 150
  9. 20
  10. 15
  11. 5
  12. needs no installing
  13. Home
  14. repeats code
  15. a lost-and-found board
  16. Test 2
  17. light grey on white
  18. 7
  19. fair
  20. a game
  21. processing
  22. fans
  23. adding up a bill
  24. open the app
  25. 6
  26. 2
  27. a text label
  28. 2
  29. 440
  30. 2.0.0
  31. 41
  32. 12
  33. Welcome, Meera!
  34. hard to read
  35. working out a tip
  36. line 2
  37. Back
  38. the user taps a button
  39. a result on screen
  40. line 4

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