Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q1. Rearrange the following code so that it forms a correct program that prints

ID: 3649522 • Letter: Q

Question

Q1. Rearrange the following code so that it forms a correct program that prints out the letter Q: } public static void main(String[] a) { } System.out.println("Q"); public class Q { Q2. Write a complete program whose class name is Hello and that displays Hello, world on the screen. Q3. An identifier that cannot be used as a variable name is a______ Word. Q4. The rules that govern the correct order and usage of the elements of a language are called the____ of the language. Q5. An error in a program that involves a violation of language rules will be detected at _____ time. Q6. Write a complete main

Explanation / Answer

Hello,

You have posted multiple questions(62). Replying you with 25 answers. Please do post remaining new posts so that we can help you...

1) The following is the re-arranges code:

     public class Q
   {
     public static void main(String[] a)
      {
        System.out.println("Q");
      }
   }

2) Program to display output statement

       public class Hello
    {
      public static void main(String[] a)
         {
    System.out.println("Hello, World");
      }
       }

3) An identifier that cannot be used as a variable name is a Key word.

4)The rules that govern the correct order and usage of the
         elements of a language are called the Syntax of the language.

5) An error in a program that involves a violation of language rules will be detected at Compile time.

6)

          public static void main(String[] a)
         {
    System.out.println("Hello, World");
      }
7) System.out.println(" Turing, Alan");

8) System.out.println("Hello, World");

9) Character Sequence for next line ---- ' '

10) Cursor to advance forward ----- ' '

11)Character Sequence forsingle quote '

12)Character Sequence for double quote "

13)Character Sequence forsingle quote

14) Variable declaration:    int degreesCelsius ;

15) Variables declaration:

             int profitStartOfQuarter,cashFlowEndOfYear;

16) Variable declaration:    int cardsInHand = 13;

17) Variable declaration:    int drivingAge ;

       drivingAge = 17;

18) Statement: gradAge = matricAge +4;

19) System.out.println(count);

20) System.out.print(num+" "+count+" ");

21) int datum ;

        //Declaring scanner object

          Scanner input = new Scanner(System.in);

           datum =input.nextInt();

22)    int val;

          //Declaring scanner object

          Scanner stdin= new Scanner(System.in);

           datum =stdin.nextInt();

23) Variable.

24) 0

25) newRecord =oldRecord;


Hope this will help you...