Graphic Design & Digital Media

Study Guide for Test #3

 

Chapters covered

What to study

Graphic design principles

Your notes

Chapter 9 Arrays

- All pages

Chapter 11 debugging

- All pages

Chapter 15 Images

- pages 301-316

Chapter 17 Text

- Pages 361-376.  Skip Text mosaic

Chapter 18 Data Input

- Pages 383-385

FORMAT OF TEST:

The test will be a combination of short answer questions, essays, multiple choice, writing functions, and debugging code errors.

The questions will be phrased just like the questions on Test 1.

 

Here are examples of all types of questions

  • List and describe two of the troubleshooting mechanisms described in chapter 11. In your answer, be sure to discuss why the method works well.  Also, give examples and/or tell how the troubleshooting methods work.
  • What is the purpose of using the principle of Harmony in designs? Also, state TWO strategic ways in which Harmony can be used to produce an effective graphic design.
  • List and give an example of the types of form in graphic design.
  • In order to place text on screen, you have to follow a series of 5 steps. List each of them. Write a code example for two of them.  
  • What is the name of the class for loading and displaying images?
  • Briefly explain the purpose of indexOf() versus substring()
  • Explain how the alpha value works in tinting.  That is, what is the range of numbers? What is the highest and the lowest? In the following code, which is the alpha?

    tint(0, 255, 0, 127)
  • How is textWidth() different from the length() of a string
  • Write the code to create a variable with the name xSpeed and assign a random values between 1.5 and 3.5  (Notice that the values contain decimals.)
  • Define an array.
  • Declare and initialize an integer array that has 500 elements. The name of the array is theValues

 


  1. Which is the correct syntax for filling an array element
    • stuff[0] = 1.6;
    • stuff{0} = 1.6;
    • stuff(0) = 1.6;
    • stuff0  =  1.6;
  2. Which is the correct syntax for interating through all elements in an array
    • for (int n = 0; n< values.length; n++) { }
    • for (int n = 0; n< values.width; n++) { }
    • for (int n = 0; n< values.length(); n++) { }
    • for (int n = 0; n< values.width(); n++) { }
  3. The _____  array function is used to expand the size of an array by one  element while adding data to the new position
    • subset()
    • concat()
    • splice()
    • append()
  4. When the Debugger is enabled, the program can pause at _______ to see the current variable value.
    • Breakpoints
    • Bugs
    • Stoppers
    • varStops
  5. You use ______ to convert a variable type from one type to another.
    • mocking
    • casting
    • copying
    • emulating
  6. The rotate() function takes one argument, an angle measured in _______.
    • degrees
    • pixels
    • inches
    • radians