← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 420 · 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 songs = ["Monsoon", "Sunrise"];
    songs.push("Kites");
    songs.push("Ocean");
    show(songs.length);
  2. 2.📱 Which one opens in a web browser: an app or a website? (a) an app (b) a website
  3. 3.🔀 With if / else if / else, how many parts run? (a) two (b) all of them (c) none (d) only one
  4. 4.👆 Which of these is an event? (a) the icon colour (b) the user taps a button (c) the font size (d) a list of names
  5. 5.🔀 Which badge does this quiz app show?
    let marks = 51;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Bronze (c) Silver
  6. 6.📊 Survey: which problem bugs you most? How many more votes did “wasting pocket money” get than “no quiet study place”?
    no quiet study place: 15 votes
    losing water bottles: 23 votes
    wasting pocket money: 22 votes
  7. 7.🔁 What number does this code show?
    let marks = [4, 1, 12, 11, 2];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  8. 8.✏️ Is this true of a wireframe or of a final design: has no real colours? (a) a final design (b) a wireframe
  9. 9.True or false: the icon shapes is about UX (the experience). (a) True (b) False
  10. 10.🔁 Why use a loop to show 100 messages? (a) it is slower (b) it uses more lines (c) less code to write (d) it hides them
  11. 11.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) set a due date (c) share tasks to friends (d) see tasks by day
  12. 12.🔢 In a sign-up flow, what comes right after “type name and email”? (a) open the app (b) make a password (c) tap “Sign up” (d) see the home screen
  13. 13.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Add Homework
    [text box] City
    [button] Next
    [switch] Sound
    [button] Back
    [text box] Name
    [button] Cancel
  14. 14.🧩 How many buttons does this app screen have?
    [title] Sign Up
    [text box] Name
    [button] Save
    [text box] Age
    [text box] Subject
    [button] Help
  15. 15.👆 Code that runs when an event happens is called a ___. (a) headline (b) header (c) handler (d) hashtag
  16. 16.🧪 What is the ACTUAL result of Test 2?
    🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 600) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(500) → expected 40
    Test 2: delivery(950) → expected 0
    Test 3: delivery(900) → expected 0
  17. 17.True or false: a big, easy tap area is good button design. (a) True (b) False
  18. 18.💾 Where should the app save a class leaderboard: on the phone or in the cloud? (a) on the phone (b) in the cloud
  19. 19.🔘 Our rule: buttons are at least 48 px tall. The Send button is 20 px tall. How many px taller must it be?
  20. 20.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Offers → Cart
    Design B: Home → Pens → Offers → Cart → Shop → Search
    (a) Design B (b) Design A
  21. 21.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 5 or more right answers.
    function result(right) {
      if (right > 5) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(7) → expected Pass
    Test 2: result(8) → expected Pass
    Test 3: result(4) → expected Try again
  22. 22.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Start button: 44 px tall
    Next button: 40 px tall
    Help button: 36 px tall
  23. 23.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 6; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 2 (c) line 1
  24. 24.🐞 What is a good first step when an app gives a wrong result? (a) delete the app (b) buy a new phone (c) find where it goes wrong (d) add more colours
  25. 25.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 48; // start at 48
    line 2: score = score + 6; // add 6
    line 3: score = score - 4; // take away 3
    line 4: score = score - 1; // take away 1
    line 5: show(score); // show it
  26. 26.🔀 A screen with no way forward or back is called a ___. (a) home screen (b) dead end (c) tab bar (d) shortcut
  27. 27.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 38; // start at 35
    line 2: points = points - 5; // take away 5
    line 3: points = points + 5; // add 5
    line 4: points = points + 4; // add 4
    line 5: show(points); // show it
  28. 28.Which colour pair is easy to read? (a) red on green (b) yellow on white (c) white on dark green (d) light grey on white
  29. 29.🔁 What number does this code show?
    let steps = [19, 2, 4];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  30. 30.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Order Snacks
    [button] Next
    [button] Start
    [text box] City
    [button] Cancel
    [slider] Volume
  31. 31.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(34));
  32. 32.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [button] Save
    [text box] Due date
    [switch] Sound
    [text box] Name
    [slider] Text size
    (a) Save (b) Due date (c) Name (d) Sound
  33. 33.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 34; // start at 34
    line 2: stars = stars + 4; // add 3
    line 3: stars = stars + 3; // add 3
    line 4: show(stars); // show it
  34. 34.📊 Survey: which problem bugs you most? How many students voted in all?
    forgetting birthdays: 14 votes
    losing water bottles: 22 votes
    missing the bus: 21 votes
  35. 35.⚙️ In an app, is adding up a bill an input, processing or an output? (a) output (b) processing (c) input
  36. 36.🔘 Is this good or poor button design: strong colour contrast? (a) poor design (b) good design
  37. 37.👥 A library app has 145 readers, 135 librarians and 95 volunteers as users. How many more readers than librarians are there?
  38. 38.🧩 Which input is best for choosing a volume level? (a) a text box (b) a title (c) a slider (d) a switch
  39. 39.True or false: a bus tracker is the best fit for a student who often misses the school bus. (a) False (b) True
  40. 40.🚀 What should an app ask for only when it really needs it? (a) its icon (b) a font (c) its name (d) a permission

Answer key

  1. 4
  2. a website
  3. only one
  4. the user taps a button
  5. Silver
  6. 7
  7. 12
  8. a wireframe
  9. False
  10. less code to write
  11. share tasks to friends
  12. make a password
  13. 3
  14. 2
  15. handler
  16. 0
  17. True
  18. in the cloud
  19. 28
  20. Design A
  21. 3
  22. 0
  23. line 2
  24. find where it goes wrong
  25. 50
  26. dead end
  27. 42
  28. white on dark green
  29. 19
  30. 2
  31. 102
  32. Save
  33. 40
  34. 57
  35. processing
  36. good design
  37. 10
  38. a slider
  39. True
  40. a permission

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