FUNDAMENTALS OF COMPUTER

DATABASE FUNDAMENTALS

BASICS OF BIG DATA

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What does the print command do?
A
Outputs a hard copy of a program to a printer
B
Outputs a message on screen
C
Print a hard copy of a flow chart to a printer
D
Prints out the the commands line by line on the screen
Explanation: 

Detailed explanation-1: -The print() function prints the specified message to the screen, or other standard output device. The message can be a string, or any other object, the object will be converted into a string before written to the screen.

Detailed explanation-2: -The print command allows users to print a text file to a line printer, in the background.

Detailed explanation-3: -Output using print() function. The simplest way to produce output is using the print() function where you can pass zero or more expressions separated by commas. This function converts the expressions you pass into a string before writing to the screen. Returns: It returns output to the screen.

Detailed explanation-4: -It prints an empty line, just as you have said. It will leave a blank line in the output.

Detailed explanation-5: -print(): print() method in Java is used to display a text on the console. This text is passed as the parameter to this method in the form of String. This method prints the text on the console and the cursor remains at the end of the text at the console.

There is 1 question to complete.