Q1: What equivalence relations hold for an “object.equals” method?
Reflexivity, Symmetry, Transitivity
Q2: What are the two primary purposes of Code Review?
- To ensure efficiently quality of the code that is being released
- To learn when and how to apply techniques that will improve the codes quality, consistency and maintainability.
Q3: Write a simple Robocode program that would make your robot move forward 50 pixels, spin around in a circle and then stop.
simpleRobot extends robot{
while(true){
ahead(50);
turnRight(360);
stop();
}
}
Q4: Name four available checks that checkstyle can implement, and what they do.
- Empty Block - checks for empty blocks of code
- illegal type - checks that particular class are never used
- Indention - checks correct indentation of code
- LineLength - checks for long lines
Q5: Name 3 suggestions/reasons from the reading over why you should use Git rather than SVN
- Git is distributed and delivers a complete copy of the history of the project, and in this way can be more efficient than svn
- It is faster and easier to create branches
- you can commit changes in stages
No comments:
Post a Comment