home—info—lects—labs—exams—hws
D2L—tutor/PIs—zoom (snow day)
Object120 + its docs—java.lang docs—java.util docs
exam01 topics
- The following standard built-in types in Java, and when to use them (give an example):
int,
double,
boolean,
char,
String.
-
Terms:
type
,
signature
,
argument
,
parameter
,
-
Examples, syntax, and why we use each of the following:
-
calling a function
e.g.: write an expression that calls to substring;
write a call to buffetPrice;
write n expression
-
function signature (that is, declaring a function)
-
the return statement
-
the syntax of if-else; if-else-if.
-
How to declare a variable.
-
How to initialize a variable.
- While loops
- How to compile (javac, java)
- naming conventions
(name a function for ____________;
class-name (starts with a _________) , named-constant (ALL_CAPS)).
To practice:
solve any of the suggested problems on recent lecture,
or any of those suggested at the bottom of a recent lab.
(The lab problems, if you include main
interactively reading
from a Scanner,
will use 2-3 functions total.
Think about how to break the problem down into a helper functions.)
You will be provided with the summary documentation for any built-in Java methods
you might need
(String, java.util.Scanner, java.util.Random).
home—info—lects—labs—exams—hws
D2L—tutor/PIs—zoom (snow day)
Object120 + its docs—java.lang docs—java.util docs
 This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland radford.edu |
 |