← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 604 · 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.True or false: space between buttons is poor button design. (a) True (b) False
  2. 2.⚙️ What number does this app show?
    let price = 95; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  3. 3.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 33; // start at 33
    line 2: points = points + 2; // add 2
    line 3: points = points - 4; // take away 1
    line 4: points = points * 2; // double it
    line 5: show(points); // show it
  4. 4.🔁 Why use a loop to show 100 messages? (a) it uses more lines (b) it is slower (c) less code to write (d) it hides them
  5. 5.🔀 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
  6. 6.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Help page”
    2. open “Map”
    3. open “Friend list”
    4. tap Back
    5. open “Badges”
    Which screen are you on now?
    (a) Map (b) Badges (c) Friend list (d) Help page
  7. 7.True or false: a wireframe shows the real fonts. (a) True (b) False
  8. 8.♿ Accessibility means an app works for ___. (a) only the coder (b) only experts (c) everyone (d) nobody
  9. 9.🗒️ Version 1 of a water reminder must be ready in 10 days. How many days are left for extras after the must-haves?
    set a reminder time: 1 days
    log a glass of water: 4 days
    see today’s total: 2 days
  10. 10.Which of these requests asks for too much? (a) voice notes → microphone (b) camera app → camera (c) calling app → contacts (d) timer → your photos
  11. 11.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Order Snacks
    [text box] Notes
    [button] Next
    [button] Cancel
    [button] Send
    [text box] City
    [text box] Name
  12. 12.🧭 Which part of navigation shows 3 to 5 icons? (a) a menu button (b) the back button (c) a tab bar
  13. 13.📱 Which one needs no installing: an app or a website? (a) a website (b) an app
  14. 14.🔁 What does a loop do? (a) draws icons (b) repeats code (c) deletes code (d) saves photos
  15. 15.🐞 What is a good first step when an app gives a wrong result? (a) buy a new phone (b) delete the app (c) find where it goes wrong (d) add more colours
  16. 16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 50; // start at 50
    line 2: score = score + 6; // add 5
    line 3: score = score * 2; // double it
    line 4: score = score + 6; // add 6
    line 5: show(score); // show it
  17. 17.🚀 Your app is at version 1.8.1. The next release adds a new feature. What is its version number? (a) 1.9.1 (b) 2.0.0 (c) 1.9.0 (d) 1.8.2
  18. 18.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(100, 4));
  19. 19.Which colour pair is easy to read? (a) black on yellow (b) light grey on white (c) dark blue on black (d) yellow on white
  20. 20.🗂️ What kind of app is a cricket run chase? (a) a health app (b) a learning app (c) a tool app (d) a game
  21. 21.🔀 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
  22. 22.🔀 When does the else part run? (a) always (b) never (c) when the test is true (d) when the test is false
  23. 23.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) the app store (c) people reading the code (d) the battery
  24. 24.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 34; // start at 31
    line 2: lives = lives + 6; // add 6
    line 3: lives = lives + 4; // add 4
    line 4: show(lives); // show it
  25. 25.🎯 Which app would help this user most: a pupil juggling five projects? (a) a bus tracker (b) a big-text reader (c) a homework planner (d) a pocket-money tracker
  26. 26.💾 What number does this code show?
    let points = 3;
    points = points - 2;
    points = points + 4;
    show(points);
  27. 27.🧩 In an app, what is tap to Start? (a) a screen (b) an input (c) data (d) a button
  28. 28.True or false: you write the code at the idea stage. (a) False (b) True
  29. 29.🖼️ How many parts (boxes) does this wireframe have?
    [ title text ]
    [ big picture ]
    [ list of items ]
    [ top bar ]
    [ search box ]
    [ filter buttons ]
  30. 30.Which of these fits saving in the cloud? (a) the sound on/off setting (b) photos on two devices (c) a draft you are typing (d) notes to read offline
  31. 31.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 38; // start at 35
    line 2: coins = coins + 5; // add 5
    line 3: coins = coins * 2; // double it
    line 4: show(coins); // show it
    (a) line 3 (b) line 1 (c) line 2
  32. 32.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “forgetting birthdays”?
    forgetting homework: 20 votes
    forgetting birthdays: 19 votes
    wasting pocket money: 14 votes
  33. 33.🎨 A beautiful app that confuses everyone has ___. (a) perfect UX (b) good UX but poor UI (c) good UI but poor UX (d) no UI at all
  34. 34.📅 An app team plans for 4 days, builds for 7 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  35. 35.🔢 In a quiz-app flow, which comes first: “see the final score” or “read a question”? (a) read a question (b) see the final score
  36. 36.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Next button: 36 px tall
    Help button: 48 px tall
    Done button: 44 px tall
  37. 37.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Map”
    2. tap the Home tab
    3. tap the Home tab
    How many times must you tap Back to reach the main screen of this tab?
  38. 38.True or false: an app that just says hi solves a real problem. (a) False (b) True
  39. 39.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(10, 3));
  40. 40.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Kabir", "Zoya", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Kabir (b) Hi, Arjun (c) Hi, Riya (d) Hi, Zoya

Answer key

  1. False
  2. 570
  3. 68
  4. less code to write
  5. Ask a parent
  6. Badges
  7. False
  8. everyone
  9. 3
  10. timer → your photos
  11. 3
  12. a tab bar
  13. a website
  14. repeats code
  15. find where it goes wrong
  16. 116
  17. 1.9.0
  18. 400
  19. black on yellow
  20. a game
  21. pick one of two actions
  22. when the test is false
  23. people reading the code
  24. 44
  25. a homework planner
  26. 5
  27. a button
  28. False
  29. 6
  30. photos on two devices
  31. line 1
  32. 1
  33. good UI but poor UX
  34. 11
  35. read a question
  36. 1
  37. 0
  38. False
  39. 30
  40. Hi, Arjun

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