[go: up one dir, main page]

0% found this document useful (0 votes)
16 views2 pages

COMP170 Exam TWOStudy Guide V3

The COMP 170 Exam Two will cover material from Weeks 1-10, focusing on Java concepts such as static methods, control structures, data types, console input/output, and exceptions. Students are expected to demonstrate their understanding by solving complex problems using the skills learned in class. Cheating will result in severe consequences, including a zero for the exam and potential course failure.

Uploaded by

mpicazomarin7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

COMP170 Exam TWOStudy Guide V3

The COMP 170 Exam Two will cover material from Weeks 1-10, focusing on Java concepts such as static methods, control structures, data types, console input/output, and exceptions. Students are expected to demonstrate their understanding by solving complex problems using the skills learned in class. Cheating will result in severe consequences, including a zero for the exam and potential course failure.

Uploaded by

mpicazomarin7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Items to study for COMP 170 Exam TWO

in general, Weeks 1-10 of the course, textbook chapters 1 to 5 including variables, expressions (including
relational and logical operators), primitive types, classes and objects, control structures (loops and if),
methods with parameters and returns. Expect to use all we have covered about Java to read and write
programs that solve more complex problems.

 Java static methods


o Define and call static methods of all varieties
o Nest method calls inside other methods to construct good solutions to problems
o Define and use method parameters and return values correctly
o Call object methods with dot operator (.)
o Understand method overloading and when to use it
o Demonstrate basic ability to achieve good program decomposition (see text Chp 4
Procedural Design Heuristics)
 Java control structures
o Be able to use for, do, while, if statements correctly; be able to avoid standard errors
when writing them. Be able to use nested if statements correctly including if else if else if
else
o Combine control structure to implement algorithms to solve problems. Use pseudo code
to plan a solution to a problem. Be able to create well-structured programs (see case
studies in the text)
o Understand and be able to apply Fence Post Algorithms and Sentinel Loops.
 Java data
o Understand and be able to use Java primitive types in complex expressions, including
precedence and casting when necessary
o Be able to use existing Java classes to create instances (or objects) and use them in
expressions; be able to test objects for equality
o Understand how to pass data into methods and return data from methods to the calling
method.
o Be familiar with text processing using String class methods and know how to apply them
in problem solving
o Understand what it means for String objects to be “immutable” and how that affects your
programming
o Understand Boolean values, the Boolean literals, and how to evaluate expressions that
generate Boolean values; be able to use complex Boolean expressions with control
structures (if and loops)
 Console input and output
o Know the capabilities of Scanner170 and how to use Scanner170 objects in programming
o Be able to create dialogues with the user to gather input, correct errors, and show output
(including use of escape characters and line spacing)
 Java exceptions
o Have a basic understanding of what causes an exception in Java; know some of the
typical exceptions you may see when running programs.
Part A of the Exam will be given in class using the Respondus Lockdown Browser unless you receive
approval from your instructor to take it outside of class (only for very unusual circumstances, and
only with advance approval). Part B of the Exam will be done on your computer using Sakai material
and the tools used in class including your VM, IntelliJ, JShell, the online text, CodeStepByStep, etc.
You are NOT to access other materials, search answers on the web, or use anything other than the
standard class tools and materials or collaborate with others.

Cheating in any form, including supplying answers to or copying answers from websites like Chegg,
using ChatGPT or other AI tools to generate answers, or submitting anything other than your own
original work done during the time of the exam will result in a 0 for the exam and reporting of the
incident to the Dean’s office, and may cause course failure.

You might also like