HTML Questions

  1. In the given webpage code, insert an internal style sheet (using the appropriate HTML tags).
  2. Within the internal style sheet, add CSS rule to make paragraph elements (those with the <p> tag) have a text color of red.
  3.    <html>
       <head>
    
    
    
    
    
       <head>
    
    
    
    
       <body>
    
    
    
    
    
    
          <p>Some text displayed here.</p>
    
    
    
    
    
       <body>
    
    
       </html>
    		
  4. What is the dominant color in this RGB value: #ff0055:
    1. It's mostly green
    2. It's mostly blue
    3. It's mostly red.

Graph Questions

  1. A tree is a type of graph that contains a cycle (true/false).
  2. The two graphs given below are isomorphic (true/false).
  3. Describe an algorithm that, given a listing of a graph's vertices and edges, would return "true" if the graph contained a cycle and return "false" if the graph did not contain a cycle.







Internet / General Questions

  1. Briefly describe the difference between an algorithm and a program.





  2. Given 4 bits, how many unique values can you represent?

Java Questions

  1. Within the Java method below, write code that will produce an infinite loop that prints the text: "Are we there yet?" in each iteration.
       public static void noEnd() {
    
    
    
    
    
    
    
    
       }
    
  2. Fill in the code for the method evenOdd() below. The method takes in an array of int numbers. Your task is to modify this array's entries. For each entry in the array, double it if the entry's value is an even number. If the entry's value is odd, divide it in half (integer division, please).
       public static void evenOdd(int[] values){
    
    
    
    
    
    
    
    
    
    
    
       }