CPSC 110 Spring 2012 Quiz 1 (20 points)
Answer Key

  1. The following questions apply to the App Inventor code block shown to the right.

    1. What type of App Inventor component does this block apply to?
      1. A drawing canvas
      2. A circle
      3. A text box
      4. A button

    2. The x and y slots are examples of _____.
      1. global variables
      2. arguments
      3. properties
      4. procedures

    3. The global dotsize element is an example of a _____.
      1. global variable
      2. argument
      3. propertie
      4. procedure

    4. What does this block do and what effect will it have on the app?




  2. The following questions are from our reading assignments.

    1. Which of the following are examples of cloud computing? Circle all that apply.
      1. Creating a mobile app using App Inventor for Android.
      2. Writing a term paper using Microsoft Word.
      3. Creating a web site using Google Sites.
      4. Maintaining one's Facebook site.
      5. Creating an Excel spread sheet to figure your taxes.


    2. Moore's Law ____________.
      1. is the observation that the number of transistors that can be placed on a computer chip doubles roughly every two years.
      2. is a growth rate that is unseen in other areas of technology -- e.g., air travel.
      3. has led to exponential growth in computer processing speeds.
      4. all of the above.

     

  3. Suppose you have an App that has a button named "Click Me!" as shown on the right. When the button is clicked the app is supposed to change the button's Text property to display a message.

    According to the following code blocks, what message will be displayed as the button's Text when it is clicked? Explain





  4. The following questions are about bit strings or binary sequences.

    1. Suppose you and your friend design a code that a sequence of 5 horizontal (_) or vertical (|) lines to send messages to each other. For example, a typical message might be: _|||_. Another might be _|_|_. How many different messages can you represent with this scheme? Explain.




    2. Suppose you are using an even parity scheme to transmit data between you and your friend and you receive the bit string 0110 0111. Was the transmission ok or did it contain an error? Explain.




    3. Suppose you are using an odd parity scheme and you are going to transmit the following data string: 000 1101. What value would you set the parity bit to? Explain.