Test your understanding of Java with the following:

What does the code int x = 3; System.out.println("The result is " + x); do?
What does the code String firstName = "Sue"; System.out.println(firstName);
do?
What does the code System.out.println(2 < 3); do?
What does the code System.out.prinltn(2 == 3); do?
What does the code Ssytem.out.println(3 >= 2); do?


It prints out, ”The result is 3”.
It prints out, ”Sue”.
It prints out ”false”.
It prints out ”false”.
It prints out ”true”.

Computer Science & Information Technology

You might also like to view...

A ____________ is a data structure in which elements are added to the end and taken off the front.

A. queue B. stack C. array D. linked list

Computer Science & Information Technology

The proper ordering of coordinates in positions is ____.

A. top, left, bottom, right B. bottom, right, top, left C. bottom, left, top, right D. top, right, bottom, left

Computer Science & Information Technology

Tabs and commas can be used as ________ in paragraphs which allow text to be converted to multiple column tables

A) floating objects B) separator characters C) leaders D) handles

Computer Science & Information Technology

Initial values for the variables in the tested expression of a while statement do not have to be initialized before the while statement is encountered.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology