← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 880 · 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: working out a tip is an output. (a) False (b) True
  2. 2.Which of these is true of a website? (a) comes from an app store (b) needs no installing (c) is installed on a phone (d) has a home-screen icon
  3. 3.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 48; // start at 48
    line 2: lives = lives + 6; // add 6
    line 3: lives = lives - 3; // take away 1
    line 4: show(lives); // show it
    (a) line 1 (b) line 2 (c) line 3
  4. 4.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(6));
  5. 5.🔍 Which is the odd one out? (a) tiny tap areas (b) labels on every icon (c) colour as the only clue (d) icons with no labels
  6. 6.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] New Note
    [button] Back
    [text box] Email
    [button] Start
    [switch] Dark mode
    [text box] Phone
  7. 7.♿ Does this help everyone, or make the app harder to use: icons with no labels? (a) helps everyone (b) makes it harder
  8. 8.Which of these app ideas solves no real problem? (a) a medicine reminder (b) a button with no action (c) a library due-date alert (d) a lost-and-found board
  9. 9.👆 The user taps the button 4 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 2) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  10. 10.🔀 What number does this shop app show?
    let total = 690;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  11. 11.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Video”
    2. open “Badges”
    3. tap the Feed tab
    4. tap the Feed tab
    How many times must you tap Back to reach the main screen of this tab?
  12. 12.🧩 In an app, what is the log-in page? (a) a screen (b) data (c) an input (d) a button
  13. 13.🔢 In a photo-post flow, which comes first: “open the camera screen” or “add a filter”? (a) add a filter (b) open the camera screen
  14. 14.🖼️ How many parts (boxes) does this wireframe have?
    [ menu icon ]
    [ big picture ]
    [ title text ]
    [ list of items ]
  15. 15.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) show arrival time (b) change the bus icon (c) pick your bus stop (d) see where the bus is
  16. 16.🧪 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(2) → expected Try again
    Test 2: result(7) → expected Pass
    Test 3: result(6) → expected Pass
  17. 17.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 6 or more right answers.
    function result(right) {
      if (right > 6) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(10) → expected Pass
    Test 2: result(8) → expected Pass
    Test 3: result(3) → expected Try again
  18. 18.🔁 What number does this code show?
    let scores = [10, 35, 22, 91, 76];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  19. 19.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(15, 2));
  20. 20.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) input (b) processing (c) output
  21. 21.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Help page”
    2. open “Edit photo”
    3. open “Map”
    4. tap the Home tab
    Which screen are you on now?
    (a) Help page (b) Map (c) Home (d) Edit photo
  22. 22.♿ A screen has 8 icon buttons. Only 1 of them have a text label for screen readers. How many still need a label?
  23. 23.🗒️ Why keep version 1 small? (a) to use up storage (b) to look bigger (c) to learn from users soon (d) to confuse users
  24. 24.Which of these requests asks for too much? (a) calling app → contacts (b) map app → location (c) camera app → camera (d) torch → contacts
  25. 25.🔍 Which is the odd one out? (a) icons with no labels (b) captions on videos (c) colour as the only clue (d) sudden loud sounds
  26. 26.🧭 Tapping a tab usually takes you to ___. (a) the last app used (b) the phone settings (c) a random page (d) that tab’s main screen
  27. 27.🧩 In an app, what is tap to Save? (a) data (b) an input (c) a screen (d) a button
  28. 28.🧰 How do you run (call) a function called greet? (a) run greet (b) greet() (c) #greet (d) greet[]
  29. 29.🎯 Which app would help this user most: a pupil juggling five projects? (a) a homework planner (b) a recipe finder (c) a bus tracker (d) a big-text reader
  30. 30.True or false: an app updates from the store. (a) True (b) False
  31. 31.🔍 Which is the odd one out? (a) share the download link (b) put it on an app store (c) sketch the screens (d) write the store text
  32. 32.🔁 What does a loop do? (a) repeats code (b) deletes code (c) saves photos (d) draws icons
  33. 33.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 33; // start at 32
    line 2: stars = stars + 5; // add 5
    line 3: stars = stars + 6; // add 6
    line 4: stars = stars + 5; // add 5
    line 5: show(stars); // show it
  34. 34.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(3) + points(1));
  35. 35.💾 What number does this code show?
    let points = 4;
    points = points - 2;
    points = points + 3;
    show(points);
  36. 36.🚀 Which of these versions is the NEWEST?
    4.7.8, 4.2.3, 4.5.3, 3.22.8
    (a) 4.7.8 (b) 4.5.3 (c) 3.22.8 (d) 4.2.3
  37. 37.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 1, 2, 3 (b) 0, 1, 2, 3 (c) 3 (d) 0, 1, 2
  38. 38.🔀 What is a user flow? (a) the path through screens (b) a charging cable (c) a type of font (d) a colour theme
  39. 39.True or false: one second passes is a tap event. (a) True (b) False
  40. 40.👥 A clinic app has 40 patients, 20 doctors and 95 nurses as users. Which user group is the biggest? (a) patients (b) nurses (c) doctors

Answer key

  1. False
  2. needs no installing
  3. line 3
  4. 12
  5. labels on every icon
  6. 3
  7. makes it harder
  8. a button with no action
  9. 2
  10. 640
  11. 0
  12. a screen
  13. open the camera screen
  14. 4
  15. change the bus icon
  16. 3
  17. 3
  18. 2
  19. 30
  20. output
  21. Home
  22. 7
  23. to learn from users soon
  24. torch → contacts
  25. captions on videos
  26. that tab’s main screen
  27. a button
  28. greet()
  29. a homework planner
  30. True
  31. sketch the screens
  32. repeats code
  33. 49
  34. 50
  35. 5
  36. 4.7.8
  37. 0, 1, 2
  38. the path through screens
  39. False
  40. nurses

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