← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 294 · 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 shop app show?
    let total = 630;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  2. 2.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    wasting pocket money: 16 votes
    forgetting birthdays: 17 votes
    no quiet study place: 10 votes
    (a) wasting pocket money (b) forgetting birthdays (c) no quiet study place
  3. 3.Which of these requests is fair? (a) torch → contacts (b) timer → your photos (c) calculator → location (d) calling app → contacts
  4. 4.💡 How can you check that people really have the problem? (a) pick a colour (b) ask possible users (c) just guess (d) copy another app
  5. 5.🚀 Your app is at version 3.1.3. The next release adds a new feature. What is its version number? (a) 3.2.3 (b) 3.2.0 (c) 3.1.4 (d) 4.0.0
  6. 6.True or false: working out a tip is an output. (a) False (b) True
  7. 7.🗒️ The first small, working version of an app is often called an ___. (a) FAQ (b) URL (c) MVP (d) CPU
  8. 8.True or false: one second passes is a text event. (a) True (b) False
  9. 9.🚀 A change from version 1.4.2 to 1.4.3 usually means ___. (a) a big redesign (b) a bug fix (c) a new feature (d) a new app
  10. 10.🔁 What number does this code show?
    let steps = [4, 9, 19];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  11. 11.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(30, 6));
  12. 12.🧩 In an app, what is your saved notes? (a) a button (b) an input (c) a screen (d) data
  13. 13.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 52; // start at 50
    line 2: lives = lives - 3; // take away 3
    line 3: lives = lives + 4; // add 4
    line 4: show(lives); // show it
    (a) line 1 (b) line 2 (c) line 3
  14. 14.🔁 What number does this code show?
    let scores = [13, 5, 1, 5, 15];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  15. 15.💡 Which app idea solves this problem: pupils forget due dates? (a) a medicine reminder (b) a homework planner (c) a study-room finder (d) a bill splitter
  16. 16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 37; // start at 35
    line 2: score = score - 1; // take away 1
    line 3: score = score - 4; // take away 4
    line 4: show(score); // show it
  17. 17.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Title: 15 px
    Label: 13 px
    Hint: 21 px
  18. 18.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(9));
  19. 19.🔢 In a sign-up flow, what comes right after “tap “Sign up””? (a) type name and email (b) see the home screen (c) enter the code sent (d) make a password
  20. 20.Which of these app ideas solves no real problem? (a) a lost-and-found board (b) a blank grey screen (c) a medicine reminder (d) a bill splitter
  21. 21.Which of these is true of a final design? (a) shows where things go (b) uses the final pictures (c) uses plain grey boxes (d) is a quick sketch
  22. 22.✏️ Is this true of a wireframe or of a final design: has no real colours? (a) a final design (b) a wireframe
  23. 23.👆 The user taps the button 4 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 4) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  24. 24.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Friend list”
    2. tap the Search tab
    3. open “Match report”
    How many times must you tap Back to reach the main screen of this tab?
  25. 25.🔢 In a sign-up flow, what comes right after “open the app”? (a) enter the code sent (b) make a password (c) tap “Sign up” (d) type name and email
  26. 26.📊 Survey: which problem bugs you most? How many students voted in all?
    forgetting homework: 25 votes
    wasting pocket money: 23 votes
    forgetting birthdays: 24 votes
  27. 27.💾 What does this code show? (Positions start at 0.)
    let songs = ["Rain", "Monsoon", "Stars"];
    show(songs[1]);
    (a) Rain (b) Monsoon (c) Stars
  28. 28.🧑 Who is an app really made for? (a) its users (b) its coder only (c) its charger (d) its icon
  29. 29.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(35, 5));
  30. 30.🔁 Why use a loop to show 100 messages? (a) it is slower (b) less code to write (c) it hides them (d) it uses more lines
  31. 31.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. tap the Settings tab
    2. open “Map”
    3. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  32. 32.Which of these fits saving in the cloud? (a) the sound on/off setting (b) your last game level (c) notes to read offline (d) chat messages to friends
  33. 33.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) add money received (b) pie-chart colours (c) savings stickers (d) export to a file
  34. 34.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(10) → expected 100
    Test 2: price(13) → expected 100
    Test 3: price(7) → expected 50
  35. 35.🔁 What number does this code show?
    let marks = [17, 17, 19, 1, 1];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  36. 36.🧰 What does return do in a function? (a) closes the screen (b) deletes the app (c) repeats the code (d) sends back a value
  37. 37.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 31; // start at 30
    line 2: stars = stars - 5; // take away 5
    line 3: stars = stars * 2; // double it
    line 4: show(stars); // show it
  38. 38.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) helps everyone (b) makes it harder
  39. 39.🛠️ At which stage do you write the store text? (a) the test stage (b) the build stage (c) the release stage (d) the plan stage
  40. 40.Which of these makes the app harder to use? (a) big touch targets (b) fast-flashing lights (c) labels on every icon (d) strong colour contrast

Answer key

  1. 580
  2. forgetting birthdays
  3. calling app → contacts
  4. ask possible users
  5. 3.2.0
  6. False
  7. MVP
  8. False
  9. a bug fix
  10. 32
  11. 180
  12. data
  13. line 1
  14. 39
  15. a homework planner
  16. 30
  17. 2
  18. 18
  19. type name and email
  20. a blank grey screen
  21. uses the final pictures
  22. a wireframe
  23. 4
  24. 1
  25. tap “Sign up”
  26. 72
  27. Monsoon
  28. its users
  29. 175
  30. less code to write
  31. 0
  32. chat messages to friends
  33. add money received
  34. 2
  35. 19
  36. sends back a value
  37. 52
  38. helps everyone
  39. the release stage
  40. fast-flashing lights

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