Rearrange the following code so that it forms a correct program that prints out the letter Q:
  • public static void main( String [] args ) { System.out.println( "Gershwin, George" ); System.exit( 0 ); }
  • public static void main( String [] args ) { System.out.println( "Hello, world" ); System.exit( 0 ); }
  • public class Hello{ public static void main( String [] args ) { System.out.println( "Hello, world" ); System.exit( 0 ); }}
  • public class Q {public static void main(String[] a) {System.out.println("Q"); }}
Write a complete main method that prints Hello, world to the screen.
  • public static void main( String [] args ) { System.out.println( "Gershwin, George" ); System.exit( 0 ); }
  • int profitStartOfQuarter;int cashFlowEndOfYear;
  • System.out.println( "Hello, world" );
  • public static void main( String [] args ) { System.out.println( "Hello, world" ); System.exit( 0 ); }
Suppose your name was Alan Turing. Write a statement that would print your last name , followed by a comma, followed by a space and your first name .
  • System.out.println(num + " " + cost + "\n");
  • System.out.println( "Hello, world" );
  • System.out.println( "Turing, Alan" );
  • System.out.println(count);
Suppose your name was George Gershwin. Write a complete main method that would print your last name , followed by a comma, followed by a space and your first name .
  • int profitStartOfQuarter;int cashFlowEndOfYear;
  • public static void main( String [] args ) { System.out.println( "Hello, world" ); System.exit( 0 ); }
  • System.out.println( "Turing, Alan" );
  • public static void main( String [] args ) { System.out.println( "Gershwin, George" ); System.exit( 0 ); }
Write a statement that prints Hello, world to the screen.
  • System.out.println(count);
  • System.out.println( "Turing, Alan" );
  • System.out.println( "Hello, world" );
  • System.out.println(num + " " + cost + "\n");
Declare an integer variable named degreesCelsius.
  • int degreesCelsius;
  • int profitStartOfQuarter;int cashFlowEndOfYear;
  • System.out.println(count);
  • import javax.swing.JOptionPane;
Write a complete program whose class name is Hello and that displays Hello, world on the screen.
  • public class Hello{ public static void main( String [] args ) { System.out.println( "Hello, world" ); System.exit( 0 ); }}
  • public class Q {public static void main(String[] a) {System.out.println("Q"); }}
  • public static void main( String [] args ) { System.out.println( "Hello, world" ); System.exit( 0 ); }
  • public static void main( String [] args ) { System.out.println( "Gershwin, George" ); System.exit( 0 ); }
A compiler translates source code into_______
  • public class Hello{ public static void main( String [] args ) { System.out.println( "Hello, world" ); System.exit( 0 ); }}
  • executable code
  • int degreesCelsius;
  • public class Q {public static void main(String[] a) {System.out.println("Q"); }}
The standard name of the Java compiler is
  • import javax.swing.JOptionPane;
  • int degreesCelsius;
  • syntax
  • javac
0 h : 0 m : 1 s

Answered Not Answered Not Visited Correct : 0 Incorrect : 0