Questions from Starting Out With Java


Q: 11. This is a named storage location in the computer’

11. This is a named storage location in the computer’s memory. 1. class 2. key words 3. variable 4. operator 12. The Java compiler generates ___. 1. machine code 2. byte code 3. source code 4. HTML...

See Answer

Q: 1. Every complete statement ends with___. 1. period

1. Every complete statement ends with___. 1. period 2. parenthesis 3. semicolon 4. ending brace 2. The following data: 72 ‘A’ “Hello World” 2.8712 Are example of ___. 1. variables 2. literals 3. stri...

See Answer

Q: 11. Which Scanner class method would you use to read a

11. Which Scanner class method would you use to read a string as input? 1. nextString 2. nextLine 3. readString 4. getLine 12. Which Scanner class method would you use to read a double as input? 1. n...

See Answer

Q: Write code that creates a Circle, with a radius of 30

Write code that creates a Circle, with a radius of 30, and then creates a TranslateTransition object to animate it. The duration of the animation is 5 seconds. When the animation is played, the Circle...

See Answer

Q: 1. The if statement is an example of a ___.

1. The if statement is an example of a ___. 1. sequence structure 2. decision structure 3. pathway structure 4. class structure 2. This type of expression has a value of either true or false. 1. bina...

See Answer

Q: What will the following code segments print on the screen?

What will the following code segments print on the screen? int freeze = 32, boil = 212; freeze = 0; boil = 100; System.out.println(freeze + "\n"+ boil + "\n");

See Answer

Q: What will the following code segments print on the screen?

What will the following code segments print on the screen? System.out.print("I am the incredible”) ; System.out.print("computing\nmachine”) ; System.out.print("\nand I will\namaze\n)” ; System.out.pri...

See Answer

Q: What will the following code segments print on the screen?

What will the following code segments print on the screen? int a, x = 23; a = x % 2; System.out.println(x + "\n" + a);

See Answer

Q: The following is program expressed as English statements. What would it

The following is program expressed as English statements. What would it display on the screen if it was actual program? The variable x starts with the value 0. The variable y starts with the value 5....

See Answer

Q: What is the difference between a syntax error and a logical error

What is the difference between a syntax error and a logical error?

See Answer