Questions from Starting Out With Java


Q: In the following program segment, which variable is the loop control

In the following program segment, which variable is the loop control variable (also known as the counter variable) and which is the accumulator? int a, x = 0, y = 0; while (x < 10) { a = x * 2; y += a...

See Answer

Q: Why should you be careful when choosing a sentinel value?

Why should you be careful when choosing a sentinel value?

See Answer

Q: Why is the computer used by so many different people, in

Why is the computer used by so many different people, in so many different professions?

See Answer

Q: Write code that creates a ListView control named snackListView. Add the

Write code that creates a ListView control named snackListView. Add the following strings to the ListView: “cheeseâ€, “olivesâ€, “crackersâ€.

See Answer

Q: List the five major hardware components of a computer system.

List the five major hardware components of a computer system.

See Answer

Q: Internally, the CPU consists of what two units?

Internally, the CPU consists of what two units?

See Answer

Q: Describe the steps in the fetch/decode/execute cycle.

Describe the steps in the fetch/decode/execute cycle.

See Answer

Q: What is a memory address? What is its purpose?

What is a memory address? What is its purpose?

See Answer

Q: Explain why computers have both main memory and secondary storage.

Explain why computers have both main memory and secondary storage.

See Answer

Q: What does the term multitasking mean?

What does the term multitasking mean?

See Answer