- Describe the stepwise refinement technique.
- Describe the ABC technique.
- Why does drawing a picture help (in the context of problem-solving)?
- What is the definition of an algorithm?
- Why can't the steps in an algorithm require judgment?
- How many cases must Ruby handle to find the next crumb (assuming no gaps)?
- How many cases must Ruby handle to find the next crumb (assuming gaps)?
- What are the six steps in programming?
- What are varibles used for? If you have no idea, you might want to read this.
- What are the two types of variables we have used?
- Declare a varible named foo, of type int.
- Declare a variable named s, of type String.
- Store 17 in foo.
- Store "17" in s.
- What is the MyReader class used for?
- What are the two MyReader messages you must use to read a file?
- What are the two messages you send to TextFields?
- What are events in Java?
- How to you get NetBeans to write actionPerformed for a Button you have in the Form Designer?
- How do you convert a String to an int?
- How to you convert an int to a String?
- What is the value (in decimal) of the following binary numbers? 0, 1, 101, 1001, 10101, 110, 111, 10000000
- What are the following numbers written in binary? 1, 10, 2, 4, 8, 17, 255
- What's wrong with this code? How could you fix it?
while (!frontIsBlocked()) {
if (nextToACoin()) {
takeCoin();
}
}
- What's wrong with this code? How could you fix it?
while (!nextToACoin()) {
takeCoin();
}
- What's wrong with this code? It is supposed to take a coin and turn left if it is next to a coin. How could you fix it?
if (nextToACoin())
takeCoin();
turnLeft();