Computing Innovations

  1. Applications

    • Games
    • Social Media
    • Business
    • Productivity
  2. Physical Devices

    • Computers
    • Smart phones/tablets
    • Smart “Things”
    • Wearables (apple watches, things to help keep people alive/alert health or vitals)
  3. Systems

    • E-commerce (online shopping)
    • Cloud services (files stored online)
    • E-mail (communication)

Purpose of Innovations

Guidance

  1. Why does this computing innovation exist?
    • safety, convenience, efficiency
  2. What problems does this computing innovation solve?
    • does not have to be negative, an issue
  3. What does the computing innovation allow us to do that we could not do before?

Inputs to Programs

  1. touch/tactile
    • swipe
    • press
  2. audio
    • voice recognition (siri)
  3. visual
    • facial recognition
  4. text (including numbers)
    • passwords

Programs Receiving Input- events are triggered by some sort of action, which usually sends input to the program

  1. mouse clicks
  2. swipes
  3. taps
  4. certain entries or keys together
  5. key words/phrases
  6. physical buttons

What dees Input accomplish?

  • usually affects the output
  • Must follow a sequence or series for it to work

How does a program know what to do?

  • action triggers an event (Ring doorbell)
  • the program jumps to the code according to the event –> directs you to different spots/segments (as they are called, not necessarily in order) –> output is triggered

What is a program?

  • a collection of statements, often referred to as software
  • needs to work for a variety of inputs and situations
  • a statement is a single command
  • a code segment is a group of statements
    • can be in order or not, depending on coding language

Quiz Results

Difficult Problems

  1. Consider the following code segment.

Figure 1

Which of the following best describes the behavior of the code segment?

A) The code segment displays the value of 2(5×3) by initializing result to 2 and then multiplying result by 3 a total of five times.

B) The code segment displays the value of 2(5×3) by initializing result to 2 and then multiplying result by 5 a total of three times.

C) The code segment displays the value of 2(5^3) by initializing result to 2 and then multiplying result by 3 a total of five times.

D) The code segment displays the value of 2(5^3) by initializing result to 2 and then multiplying result by 5 a total of three times.

  • I chose B but the answer is D. I got confused with multiplication and exponents. You have the result of 5 but 3 times, and then that multiplied by 2
  1. A student wrote the following code segment, which displays true if the list myList contains any duplicate values and displays false otherwise.

Figure 1 The code segment compares pairs of list elements, setting containsDuplicates to true if any two elements are found to be equal in value. Which of the following best describes the behavior of how pairs of elements are compared?

A) The code segment iterates through myList, comparing each element to all other elements in the list.

B) The code segment iterates through myList, comparing each element to all subsequent elements in the list.

C) The code segment iterates through myList, comparing each element to the element that immediately follows it in the list.

D) The code segment iterates through myList, comparing each element to the element that immediately precedes it in the list.

  • I chose C but the answer is B. The code segment compares each element to every element after it, not just the one directly after.