← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 58 · 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 double(n) {
      return n * 2;
    }
    show(double(17));
  2. 2.🖼️ How many parts (boxes) does this wireframe have?
    [ big picture ]
    [ list of items ]
    [ search box ]
    [ Save button ]
  3. 3.🚀 Your app is at version 4.2.1. The next release fixes a small bug. What is its version number? (a) 4.3.0 (b) 4.3.1 (c) 4.2.2 (d) 5.0.0
  4. 4.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a bill splitter (c) a blank grey screen (d) a medicine reminder
  5. 5.⚙️ What number does this app show?
    let price = 160; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  6. 6.🔢 When you make an app, which comes FIRST? (a) plan the screens (b) get an idea (c) build the app (d) test the app
  7. 7.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(5) + points(2));
  8. 8.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Help page”
    2. open “Video”
    3. tap the Quiz tab
    4. open “Map”
    How many times must you tap Back to reach the main screen of this tab?
  9. 9.True or false: “labels on every icon” helps everyone use the app. (a) True (b) False
  10. 10.👆 The user types Aman in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hi, " + nameBox.text + "!";
    };
    (a) Hi! (b) Hi, Aman! (c) Aman (d) Hi, nameBox.text!
  11. 11.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) see the final score (c) read a question (d) tap “Start quiz”
  12. 12.🔐 Which permission does a birthday list of friends really need? (a) the camera (b) location (c) the microphone (d) contacts
  13. 13.🧪 One test case fails. Which one?
    📝 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(3) → expected Try again
    Test 2: result(6) → expected Pass
    Test 3: result(8) → expected Pass
    (a) Test 3 (b) Test 1 (c) Test 2
  14. 14.True or false: tap to Send is data. (a) False (b) True
  15. 15.Which of these is true of a website? (a) has a home-screen icon (b) updates from the store (c) is installed on a phone (d) needs no installing
  16. 16.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 12; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 2 (c) line 1
  17. 17.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 30; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  18. 18.🌗 Is white on dark green easy or hard to read on a button? (a) hard to read (b) easy to read
  19. 19.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) add money received (b) pie-chart colours (c) show the balance (d) add money spent
  20. 20.💡 Does an app idea like a bill splitter solve a real problem? (a) Yes (b) No
  21. 21.Which of these is about UX (the experience)? (a) the icon shapes (b) how easy sign-up is (c) the button colours (d) the screen layout
  22. 22.💡 Which app idea solves this problem: Grandpa forgets his tablets? (a) a medicine reminder (b) a lost-and-found board (c) a bill splitter (d) a study-room finder
  23. 23.♿ A screen has 10 icon buttons. Only 4 of them have a text label for screen readers. How many still need a label?
  24. 24.⚙️ In an app, is adding up a bill an input, processing or an output? (a) output (b) input (c) processing
  25. 25.🔁 What number does this code show?
    let marks = [53, 70, 68, 48, 19];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  26. 26.True or false: you write down the bugs at the release stage. (a) False (b) True
  27. 27.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 31; // start at 31
    line 2: stars = stars - 5; // take away 5
    line 3: stars = stars + 1; // take away 1
    line 4: show(stars); // show it
  28. 28.🔁 list.length tells you ___. (a) the first item (b) the biggest item (c) the last item (d) how many items it has
  29. 29.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Riya", "Aman", "Kabir", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Aman (b) Hi, Meera (c) Hi, Arjun (d) Hi, Riya
  30. 30.🧩 Which of these is a button on this screen?
    [title] Settings
    [button] Done
    [text box] Subject
    [text box] Phone
    [text box] City
    (a) Phone (b) City (c) Subject (d) Done
  31. 31.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(1) + points(4));
  32. 32.💡 Does an app idea like a medicine reminder solve a real problem? (a) Yes (b) No
  33. 33.👥 A cricket club app has 120 players, 280 coaches and 65 fans as users. How many users does it have in all?
  34. 34.💡 Which is a problem statement? (a) “Add a logo” (b) “Kids forget homework” (c) “Use blue buttons” (d) “Make it fast”
  35. 35.👥 A cricket club app has 285 players, 65 coaches and 190 fans as users. Which user group is the biggest? (a) fans (b) players (c) coaches
  36. 36.True or false: a party-invite app for friends needs the microphone. (a) False (b) True
  37. 37.👆 The user taps the button 4 times. What number does the label show now?
    let coins = 1;
    button.onTap = function () {
      coins = coins + 5;
      label.text = coins;
    };
  38. 38.🔁 What number does this code show?
    let marks = [11, 6, 4, 14];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  39. 39.🔀 What number does this shop app show?
    let total = 820;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  40. 40.💡 Which app idea solves this problem: the library is always full? (a) a medicine reminder (b) a bill splitter (c) a lost-and-found board (d) a study-room finder

Answer key

  1. 34
  2. 4
  3. 4.2.2
  4. a blank grey screen
  5. 140
  6. get an idea
  7. 80
  8. 1
  9. True
  10. Hi, Aman!
  11. tap “Start quiz”
  12. contacts
  13. Test 2
  14. False
  15. needs no installing
  16. line 2
  17. line 3
  18. easy to read
  19. pie-chart colours
  20. Yes
  21. how easy sign-up is
  22. a medicine reminder
  23. 6
  24. processing
  25. 3
  26. False
  27. 25
  28. how many items it has
  29. Hi, Arjun
  30. Done
  31. 60
  32. Yes
  33. 465
  34. “Kids forget homework”
  35. players
  36. False
  37. 21
  38. 14
  39. 770
  40. a study-room finder

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