Java Printing Quiz

Quiz
•
Computers
•
8th Grade
•
Hard
Elisa Lovejoy
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper syntax for the print method for printing in Java?
print()
println()
printf()
display()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to print variables and literals in Java?
print()
println()
printf()
display()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? int x = 5; System.out.print(x);
5
0
null
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? String name = "John"; System.out.println("Hello, " + name);
Hello, John
Hello, name
Hello, null
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to print the value of a variable in Java?
System.out.print(variable)
System.out.print("variable")
System.out.print('variable')
System.out.print("'variable'")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? int a = 10; int b = 20; System.out.println(a + b);
1020
30
Error
null
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? System.out.print(10 + "20");
1020
30
Error
null
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Programming

Quiz
•
7th - 9th Grade
10 questions
Introduction To Java: Hello World

Quiz
•
7th - 12th Grade
10 questions
Programming Basics

Quiz
•
8th Grade
10 questions
Wiz 3 Assessment Python

Quiz
•
6th - 8th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
10 questions
Control Structures in Java

Quiz
•
8th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade