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
20 questions
Arrays

Quiz
•
9th - 12th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
20 questions
Primitive Types

Quiz
•
10th Grade - University
16 questions
Java 1.1 to 2.1

Quiz
•
12th Grade
25 questions
C Programming

Quiz
•
12th Grade - University
20 questions
Java Basics Quiz

Quiz
•
12th Grade
23 questions
HTML Pop QUIZ

Quiz
•
9th - 12th Grade
15 questions
MM - JavaScript

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University