Ask Question
11 August, 22:32

A comment on more than one line needs what characters placed where in order to be ignored by the program?

forward slash and star at the beginning of the comment and a star and foward slash at the end

two forward slashes following the comment

two forward slashes at the beginning of the comment

forward slash and star at the beginning of the comment

+4
Answers (2)
  1. 11 August, 23:05
    0
    The correct answer is "forward slash and star at the beginning of the comment and a star and foward slash at the end ".
  2. 12 August, 01:40
    0
    Answer: Forward slash and star at the beginning of the comment and a star and forward slash at the end. ( / * This is a comment * / )

    The best explanation of this would be:

    1 / / This is a comment

    2 System. out. print ("Good Job");

    This type of comment where two forward slashes at the beginning make everything that is written on the line a comment.

    1 System. out. print ("Good Job"); / /This line will print Good Job.

    2 System. out. print ("Terrific"); / /This line will print Terrific.

    This type of comment is generally used when you would want to keep track of what a certain line of code will do.

    1 / *

    2 System. out. print ("Good Job");

    3 System. out. print ("Terrific");

    This type of comment will make everything starting from line 1 into a comment and not execute the rest as code.

    1 / *

    2 System. out. print ("Good Job");

    3 System. out. print ("Terrific"); * /

    4 System. out. print ("Magnificent");

    This type of comment will turn lines 1, 2, and 3 into comments and will execute only the code in line 4.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A comment on more than one line needs what characters placed where in order to be ignored by the program? forward slash and star at the ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers