Java Primitive Practice

Quiz
•
Other
•
12th Grade
•
Medium
Angel Ligon
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Answer explanation
The String data type is not a primitive data type in Java; it is a reference type used to represent sequences of characters.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store whole numbers in Java?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of the int data type in Java?
-2,648 to 2,647
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store characters in Java?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a proper way to declare a variable in Java?
myInteger = 100;
char = 'a';
int myNumber = 10;
int myNumber;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a proper way to declare and initialize a variable in Java?
myInteger = 100;
char = 'a';
int myNumber = 10;
int myNumber;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following variable names follows best practices for naming a variable?
5apples
someVariable
applesnum
numApples
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
MM - JavaScript

Quiz
•
12th Grade
22 questions
Unit 1 Terms

Quiz
•
12th Grade
20 questions
Arrays

Quiz
•
9th - 12th Grade
20 questions
Examen de JavaScript

Quiz
•
12th Grade
17 questions
JavaScript and Graphics

Quiz
•
12th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
15 questions
Kuis TIK C++

Quiz
•
9th - 12th Grade
20 questions
SAINS KOMPUTER T4

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