Which of the following can be used for decimal values?
Java Quiz 1: Introduction

Quiz
•
Computers
•
6th - 12th Grade
•
Easy
Jerry Xiao
Used 254+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
int
String
long
double
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In Java a string is a:
Long strand of thread
A series of objects arranged in a line.
Group of visible symbols contained in "quotes".
A series of objects arranged in a line.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is the correct way to create a String in Java?
"Hello, World" = String message;
String message = "Hello, World!";
message = Hello, World!;
String = "Hello, World!"
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is acceptable as a variable name in Java for int type?
myInt
myint!
4isMyFavoriteInt
my int
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will the following statement display when run?
System.out.println(5+2*4-1);
12
27
5+2*4-1
11
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will the following statements display when run?
String str1="Hello";
String str2="Goodbye";
String str3=str1+str2;
System.out.println(str3+str1);
"str3+str1"
"HelloGoodbyeHello"
"HelloHelloGoodbye"
"Hello GoodBye Hello"
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Variable names can start with an underscore.
True
False
Create a free account and access millions of resources
Similar Resources on Quizizz
9 questions
Quiz sobre a aula passada!

Quiz
•
9th - 12th Grade
13 questions
String Manipulation

Quiz
•
9th - 11th Grade
10 questions
Типы данных

Quiz
•
7th Grade
11 questions
Python for Class 7

Quiz
•
7th - 8th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
10 questions
(Posttest) Tipe Data Javascript

Quiz
•
10th Grade
15 questions
002_Java Methods

Quiz
•
12th Grade - University
11 questions
Python Quiz

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
6 questions
Final Exam: Monster Waves

Quiz
•
6th Grade