← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 902 · 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.✏️ Is this true of a wireframe or of a final design: shows where things go? (a) a final design (b) a wireframe
  2. 2.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 420; // typed by the user
    line 2: let off = 20; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 4 (b) line 2 (c) line 1 (d) line 3
  3. 3.📱 Which one comes from an app store: an app or a website? (a) a website (b) an app
  4. 4.🧪 What is the ACTUAL result of Test 1?
    🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 800) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(1100) → expected 0
    Test 2: delivery(600) → expected 40
    Test 3: delivery(800) → expected 0
  5. 5.🔀 Why plan the user flow before building? (a) to hide the buttons (b) so each step is clear (c) to skip testing (d) to add more taps
  6. 6.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 45; // start at 44
    line 2: coins = coins - 2; // take away 2
    line 3: coins = coins * 2; // double it
    line 4: show(coins); // show it
    (a) line 3 (b) line 1 (c) line 2
  7. 7.🔢 When you make an app, which comes first: “plan the screens” or “test the app”? (a) test the app (b) plan the screens
  8. 8.♿ A screen has 11 icon buttons. Only 7 of them have a text label for screen readers. How many still need a label?
  9. 9.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Save button: 40 px tall
    Send button: 44 px tall
    Cancel button: 56 px tall
  10. 10.🔢 In a sign-up flow, which comes first: “see the home screen” or “enter the code sent”? (a) enter the code sent (b) see the home screen
  11. 11.🚀 Which of these versions is the NEWEST?
    1.29.9, 2.16.8, 2.11.0, 2.3.5
    (a) 1.29.9 (b) 2.3.5 (c) 2.16.8 (d) 2.11.0
  12. 12.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 15; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 2 (c) line 1
  13. 13.🐞 What is a good first step when an app gives a wrong result? (a) add more colours (b) find where it goes wrong (c) delete the app (d) buy a new phone
  14. 14.💾 Where should the app save a class leaderboard: on the phone or in the cloud? (a) in the cloud (b) on the phone
  15. 15.🧩 What does a button do when you tap it? (a) starts an action (b) saves the battery (c) changes the phone (d) shows the time
  16. 16.🧰 How do you run (call) a function called greet? (a) greet[] (b) run greet (c) greet() (d) #greet
  17. 17.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 34; // start at 34
    line 2: coins = coins + 8; // add 6
    line 3: coins = coins - 4; // take away 4
    line 4: show(coins); // show it
    (a) line 1 (b) line 2 (c) line 3
  18. 18.Which of these happens at the idea stage? (a) pick the features (b) share the download link (c) spot a problem to solve (d) put it on an app store
  19. 19.Which of these is true of a menu button? (a) opens a list of pages (b) shows 3 to 5 icons (c) goes to the last screen (d) sits at the bottom
  20. 20.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(95, 6));
  21. 21.⚙️ What number does this app show?
    let km = 2; // typed by the user
    let metres = km * 1000;
    show(metres);
  22. 22.Which of these requests is fair? (a) timer → your photos (b) calculator → location (c) quiz app → microphone (d) voice notes → microphone
  23. 23.♿ Does this help everyone, or make the app harder to use: sudden loud sounds? (a) makes it harder (b) helps everyone
  24. 24.Which of these app ideas solves a real problem? (a) an app that just says hi (b) a blank grey screen (c) a medicine reminder (d) a button with no action
  25. 25.👥 A school app has 55 students, 120 teachers and 20 parents as users. Which user group is the biggest? (a) parents (b) teachers (c) students
  26. 26.True or false: the screen first opens is a load event. (a) True (b) False
  27. 27.🚀 Your app is at version 3.7.3. The next release fixes a small bug. What is its version number? (a) 3.8.3 (b) 3.8.0 (c) 3.7.4 (d) 4.0.0
  28. 28.⚙️ In an app, is typing your age an input, processing or an output? (a) processing (b) input (c) output
  29. 29.Which colour pair is easy to read? (a) dark blue on black (b) pale pink on white (c) light grey on white (d) white on black
  30. 30.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Arjun", "Meera", "Zoya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Arjun (c) Hi, Aman (d) Hi, Zoya
  31. 31.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 55; // typed by the user
    line 2: let qty = 5; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 1 (c) line 4 (d) line 2
  32. 32.🔘 Our rule: buttons are at least 48 px tall. The Send button is 44 px tall. How many px taller must it be?
  33. 33.🔀 What does >= mean? (a) greater than or equal (b) smaller or equal (c) not equal (d) less than
  34. 34.🔁 What number does this code show?
    let steps = [2, 14, 5];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  35. 35.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Start button: 36 px tall
    Cancel button: 52 px tall
    Next button: 56 px tall
  36. 36.🧪 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(6) → expected Pass
    Test 3: result(3) → expected Try again
  37. 37.True or false: a big, easy tap area is good button design. (a) True (b) False
  38. 38.Which of these happens at the test stage? (a) let friends try it (b) spot a problem to solve (c) write the code (d) sketch the screens
  39. 39.🔀 What does this sign-up rule show?
    let age = 13;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  40. 40.🔁 What number does this code show?
    let marks = [20, 12, 83, 47];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);

Answer key

  1. a wireframe
  2. line 3
  3. an app
  4. 0
  5. so each step is clear
  6. line 1
  7. plan the screens
  8. 4
  9. 1
  10. enter the code sent
  11. 2.16.8
  12. line 2
  13. find where it goes wrong
  14. in the cloud
  15. starts an action
  16. greet()
  17. line 2
  18. spot a problem to solve
  19. opens a list of pages
  20. 570
  21. 2000
  22. voice notes → microphone
  23. makes it harder
  24. a medicine reminder
  25. teachers
  26. True
  27. 3.7.4
  28. input
  29. white on black
  30. Hi, Zoya
  31. line 3
  32. 4
  33. greater than or equal
  34. 14
  35. 2
  36. 3
  37. True
  38. let friends try it
  39. Welcome!
  40. 1

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