Java Print Statements Warm-Up

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Emily Wagoner
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax of the print statement in Java?
System.print()
System.out.println();
System.out.print()
System.println()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between print and println in Java?
print method prints the output on a new line, while the println method prints the output on the same line
print method prints the output on the same line, while the println method prints the output on a new line
print method is used for printing integers, while the println method is used for printing strings
print method is used for printing characters, while the println method is used for printing numbers
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you format output using printf in Java?
System.out.format(format, arguments);
System.out.println(format, arguments);
System.out.printf(format, arguments);
System.out.print(format, arguments);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which escape sequence is used to print a new line in Java?
\n
\t
\n\r
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which escape sequence is used to print a tab in Java?
\t
\n
%s
\s
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which escape sequence is used to print a backslash in Java?
\\\
\\
\
%\
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which escape sequence is used to print a double quote in Java?
\'
\"
\\
""
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Looping in java

Quiz
•
9th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
10 questions
Java Code Tracing Practice A

Quiz
•
9th - 12th Grade
15 questions
computer class output upto for loop

Quiz
•
9th Grade
9 questions
Java For Loops

Quiz
•
9th - 12th Grade
15 questions
Area and Arrays

Quiz
•
10th - 12th Grade
11 questions
Python IF ELSE

Quiz
•
10th Grade
15 questions
Sentinel Controlled Repetition (Java)

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade