Java Primitive Practice

Quiz
•
Other
•
12th Grade
•
Medium
Angel Ligon
Used 4+ 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
15 questions
DDKTKJ

Quiz
•
9th - 12th Grade
17 questions
Basic Integration

Quiz
•
12th Grade - University
15 questions
ISEED Mencari Bakat 3

Quiz
•
1st - 12th Grade
15 questions
MM - JavaScript

Quiz
•
12th Grade
20 questions
Arrays

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

Quiz
•
9th - 12th Grade
16 questions
Java 1.1 to 2.1

Quiz
•
12th Grade
15 questions
Formatting Tables Quiz

Quiz
•
5th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade