To Exam Info

IT 212 -- Final Review Guide

Bring to Final:

Final Exam Format

Definitions:

Builtin Methods

Java Keywords and Methods

Java if Statements

if(condition) {
    action;
}


if(condition) 
{
    action1;
}
else
{
    action2;
}


if(condition1)
{
    action1;
}
else if(condition2)
{
    action2;
}
else 
{
    default action;
}

Java Loops

while(condition) 
{
    action;
}

for(initialization; condition; iteration) 
{
    action;
}

Concatenation vs. String.format for Java Output

// Concatenation
System.out.println(name + " " + gender + " " + age);

// String.format
System.out.println(String.format("%s %c %d",
    name, gender, age);
    
// or
// String.format
System.out.printf("%s %c %d", name, gender, age);  

Java User Defined Methods

public static returnDatatype methodName(param1, ... , paramn) {
    // body of method
    // return output; // (if not void)
}

Be Able To

  1. Answer multiple choice questions giving reasons to explain your choices.
  2. Construct a variable trace and predict the output for a Python script. This may involve classes and objects.
  3. Find errors in a Python script.
  4. Convert a traditional test script to a unit test script.
  5. Explain what a method does.
  6. Explain which strings a regular expression accepts.
  7. Predict the output of a Python expression that uses the regular expression methods search, sub, and split from the re module.
  8. Find errors in Java source code. You will be given the equivalent Python script for comparison.
  9. Predict the output of a Java program.
  10. Explain the difference between an interpreted script and a compiled program.
  11. Understand the similarities and differences between Python and Java.