← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 112 · 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?
    function total(price, qty) {
      return price * qty;
    }
    show(total(95, 5));
  2. 2.True or false: how easy sign-up is is about UX (the experience). (a) True (b) False
  3. 3.🧩 How many buttons does this app screen have?
    [title] Add Homework
    [button] Back
    [text box] Name
    [slider] Text size
    [button] Done
    [text box] Age
  4. 4.🌗 Is red on green easy or hard to read on a button? (a) hard to read (b) easy to read
  5. 5.Which of these is true of a wireframe? (a) looks like the real app (b) is a quick sketch (c) shows the real fonts (d) has the real colours
  6. 6.True or false: icons with no meaning is good button design. (a) True (b) False
  7. 7.🎨 UI stands for user ___. (a) input (b) internet (c) interface (d) idea
  8. 8.⚙️ In an app, is speaking a command an input, processing or an output? (a) output (b) input (c) processing
  9. 9.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Edit Profile
    [button] Send
    [text box] Notes
    [button] Done
    [button] Back
    [switch] Dark mode
    [text box] Age
  10. 10.🧩 In an app, what is your friends list? (a) a button (b) a screen (c) an input (d) data
  11. 11.🧩 In an app, what is the log-in page? (a) a button (b) an input (c) data (d) a screen
  12. 12.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 45; // start at 45
    line 2: coins = coins + 7; // add 5
    line 3: coins = coins + 4; // add 4
    line 4: show(coins); // show it
  13. 13.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) pick a theme colour (b) earn stickers (c) share tasks to friends (d) set a due date
  14. 14.🛠️ At which stage do you list what users need? (a) the plan stage (b) the idea stage (c) the test stage (d) the build stage
  15. 15.🔘 Our rule: buttons are at least 48 px tall. The Start button is 24 px tall. How many px taller must it be?
  16. 16.💾 Where should the app save a shared to-do list: on the phone or in the cloud? (a) in the cloud (b) on the phone
  17. 17.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 33; // start at 31
    line 2: lives = lives + 4; // add 4
    line 3: lives = lives * 2; // double it
    line 4: show(lives); // show it
    (a) line 2 (b) line 3 (c) line 1
  18. 18.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(13));
  19. 19.📲 What happens when you tap an app’s icon? (a) the sound turns off (b) the phone charges (c) the app opens (d) the app is deleted
  20. 20.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 35; // start at 35
    line 2: score = score + 2; // double it
    line 3: score = score - 3; // take away 3
    line 4: show(score); // show it
  21. 21.🔢 In a sign-up flow, which comes LAST? (a) tap “Sign up” (b) see the home screen (c) make a password (d) open the app
  22. 22.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 41; // start at 38
    line 2: points = points - 4; // take away 4
    line 3: points = points - 4; // take away 4
    line 4: show(points); // show it
  23. 23.🔍 Which is the odd one out? (a) how easy sign-up is (b) whether users get lost (c) the screen layout (d) how users feel after
  24. 24.True or false: “tiny tap areas” makes the app harder to use. (a) False (b) True
  25. 25.True or false: the font size is about UI (the look). (a) False (b) True
  26. 26.✏️ A box with a cross in a wireframe usually means ___. (a) an error (b) a closed app (c) delete this (d) a picture goes here
  27. 27.True or false: the screen first opens is a timer event. (a) False (b) True
  28. 28.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Kabir", "Zoya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Kabir (b) Hi, Riya (c) Hi, Zoya
  29. 29.Which of these is a feature? (a) a dark mode switch (b) “What should I cook?” (c) “Small text is hard” (d) “I keep missing the bus”
  30. 30.🔍 Which is the odd one out? (a) fast-flashing lights (b) sudden loud sounds (c) labels on every icon (d) tiny tap areas
  31. 31.✏️ Why draw a wireframe before coding? (a) changes are quick (b) it adds colours (c) it runs the app (d) it saves data
  32. 32.🧩 Scores, notes and settings that an app keeps are called ___. (a) screens (b) tabs (c) buttons (d) data
  33. 33.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(10, 2));
  34. 34.🎯 Which app would help this user most: a cook with no idea for dinner? (a) a big-text reader (b) a recipe finder (c) a pocket-money tracker (d) a water reminder
  35. 35.💾 What does this code show? (Positions start at 0.)
    let songs = ["Ocean", "Stars", "Monsoon"];
    show(songs[0]);
    (a) Ocean (b) Stars (c) Monsoon
  36. 36.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(350) → expected 0
    Test 2: delivery(300) → expected 0
    Test 3: delivery(200) → expected 40
  37. 37.💾 What number does this code show?
    let notes = ["Maths", "Sports"];
    notes.push("Art");
    notes.push("Science");
    show(notes.length);
  38. 38.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) input (c) output
  39. 39.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) custom alert sounds (b) set a reminder time (c) share your streak (d) water animations
  40. 40.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
    function price(age) {
      if (age <= 9) {
        return 50;
      }
      return 100;
    }
    Test 1: price(7) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(9) → expected 100

Answer key

  1. 475
  2. True
  3. 2
  4. hard to read
  5. is a quick sketch
  6. False
  7. interface
  8. input
  9. 3
  10. data
  11. a screen
  12. 56
  13. set a due date
  14. the idea stage
  15. 24
  16. in the cloud
  17. line 1
  18. 26
  19. the app opens
  20. 34
  21. see the home screen
  22. 33
  23. the screen layout
  24. True
  25. True
  26. a picture goes here
  27. False
  28. Hi, Zoya
  29. a dark mode switch
  30. labels on every icon
  31. changes are quick
  32. data
  33. 20
  34. a recipe finder
  35. Ocean
  36. 2
  37. 4
  38. input
  39. set a reminder time
  40. 2

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