Java Primitive Practice

Quiz
•
Other
•
12th Grade
•
Medium
Angel Ligon
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in Java?
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 Wayground
20 questions
Java Programming Quiz

Quiz
•
12th Grade
20 questions
Accountancy

Quiz
•
12th Grade
25 questions
Boolean Algebra 2

Quiz
•
11th - 12th Grade
22 questions
Java Primitive Unit 1-A

Quiz
•
12th Grade
20 questions
Examen de JavaScript

Quiz
•
12th Grade
24 questions
QB 64 TEST 2

Quiz
•
9th - 12th Grade
25 questions
C Programming

Quiz
•
12th Grade - University
25 questions
Asesmen Algoritma dan Pemrograman

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade