← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 601 · 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.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Results → Offers
    Design B: Home → Confirm → Offers → Pens → Search → Item → Shop
    (a) Design B (b) Design A
  2. 2.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 65; // typed by the user
    line 2: let qty = 3; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 2 (c) line 1 (d) line 4
  3. 3.Which of these is an output? (a) tapping a button (b) speaking a command (c) typing your age (d) a beep sound
  4. 4.👥 A school app has 225 students, 140 teachers and 195 parents as users. Which user group is the biggest? (a) teachers (b) parents (c) students
  5. 5.⚙️ What number does this app show?
    let price = 570; // typed by the user
    let off = 40; // typed by the user
    let pay = price - off;
    show(pay);
  6. 6.True or false: a medicine reminder solves a real problem. (a) False (b) True
  7. 7.🎨 Fewer taps to finish a task usually means ___. (a) better UX (b) a bigger app (c) more colours (d) worse UX
  8. 8.True or false: a cricket run chase is a health app. (a) True (b) False
  9. 9.🧰 What does return do in a function? (a) repeats the code (b) closes the screen (c) sends back a value (d) deletes the app
  10. 10.🔀 What does this sign-up rule show?
    let age = 15;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  11. 11.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(10, 3));
  12. 12.🌐 Which program do you need to open a website? (a) a calculator (b) a camera app (c) a web browser (d) an app store
  13. 13.True or false: typing your age is an input. (a) True (b) False
  14. 14.🧩 Which part lets the user give the app information? (a) an icon (b) a logo (c) a title (d) an input
  15. 15.⚙️ What number does this app show?
    let price = 50; // typed by the user
    let qty = 5; // typed by the user
    let total = price * qty;
    show(total);
  16. 16.🔁 What number does this code show?
    let runs = [81, 74, 78, 91];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  17. 17.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Body text: 20 px
    Caption: 17 px
    Footer: 17 px
    Hint: 24 px
  18. 18.🔀 What is a user flow? (a) the path through screens (b) a type of font (c) a charging cable (d) a colour theme
  19. 19.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 41; // start at 41
    line 2: score = score + 4; // add 4
    line 3: score = score - 7; // take away 4
    line 4: score = score * 2; // double it
    line 5: show(score); // show it
  20. 20.🚀 What should an app ask for only when it really needs it? (a) a permission (b) its name (c) its icon (d) a font
  21. 21.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 32; // start at 32
    line 2: points = points - 2; // take away 2
    line 3: points = points + 1; // take away 1
    line 4: show(points); // show it
  22. 22.🔁 What number does this code show?
    let steps = [12, 15, 1];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  23. 23.👆 An event in an app is ___. (a) an app store (b) a kind of list (c) a colour theme (d) something that happens
  24. 24.Which of these is a feature? (a) “I keep missing the bus” (b) “Small text is hard” (c) a search bar (d) “What should I cook?”
  25. 25.Which of these fits saving in the cloud? (a) the sound on/off setting (b) a draft you are typing (c) a shared to-do list (d) notes to read offline
  26. 26.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Footer: 19 px
    Label: 23 px
    Title: 12 px
    Caption: 24 px
    Hint: 22 px
  27. 27.📱 The word “app” is short for ___. (a) apparatus (b) appetite (c) appointment (d) application
  28. 28.🔍 Which is the odd one out? (a) a result on screen (b) taking a photo (c) tapping a button (d) typing your age
  29. 29.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) share tasks to friends (b) pick a theme colour (c) see tasks by day (d) earn stickers
  30. 30.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Menu: 16 px
    Title: 16 px
    Caption: 19 px
  31. 31.🗒️ Version 1 of a homework planner must be ready in 10 days. How many days are left for extras after the must-haves?
    add a homework task: 1 days
    set a due date: 1 days
    see tasks by day: 4 days
  32. 32.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 37; // start at 34
    line 2: stars = stars * 2; // double it
    line 3: stars = stars + 2; // add 2
    line 4: stars = stars - 4; // take away 4
    line 5: show(stars); // show it
    (a) line 3 (b) line 2 (c) line 1 (d) line 4
  33. 33.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Score card”
    2. open “Friend list”
    3. open “Friend list”
    How many times must you tap Back to reach the main screen of this tab?
  34. 34.🧪 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(3) → expected Try again
    Test 2: result(6) → expected Pass
    Test 3: result(8) → expected Pass
  35. 35.Which of these is about UI (the look)? (a) how fast a task is done (b) how users feel after (c) the screen layout (d) whether users get lost
  36. 36.🔘 Our rule: buttons are at least 48 px tall. The Send button is 36 px tall. How many px taller must it be?
  37. 37.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 8 or more right answers.
    function result(right) {
      if (right > 8) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(10) → expected Pass
    Test 2: result(7) → expected Try again
    Test 3: result(8) → expected Pass
    (a) Test 2 (b) Test 1 (c) Test 3
  38. 38.🔢 In a sign-up flow, which comes first: “tap “Sign up”” or “see the home screen”? (a) see the home screen (b) tap “Sign up”
  39. 39.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) pick a theme colour (b) earn stickers (c) add a homework task (d) share tasks to friends
  40. 40.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(450) → expected 0
    Test 2: delivery(300) → expected 0
    Test 3: delivery(100) → expected 40

Answer key

  1. Design A
  2. line 3
  3. a beep sound
  4. students
  5. 530
  6. True
  7. better UX
  8. False
  9. sends back a value
  10. Welcome!
  11. 30
  12. a web browser
  13. True
  14. an input
  15. 250
  16. 4
  17. 0
  18. the path through screens
  19. 82
  20. a permission
  21. 29
  22. 15
  23. something that happens
  24. a search bar
  25. a shared to-do list
  26. 1
  27. application
  28. a result on screen
  29. see tasks by day
  30. 0
  31. 4
  32. line 1
  33. 3
  34. 3
  35. the screen layout
  36. 12
  37. Test 3
  38. tap “Sign up”
  39. add a homework task
  40. 2

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