What is a variable in Java?
Java-I-ch02_quiz01

Quiz
•
Science
•
University
•
Hard
Sreng Vichet
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A) A storage location in memory
B) A data type in Java
C) A method that performs calculations
D) A reserved word in Java
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct declaration of a variable in Java?
A) int num = 100;
B) 100 = int num;
C) num int = 100;
D) int 100 = num;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code?
10
20
30
40
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to find the remainder after division in Java?
/
#
%
++
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3
5
8
15
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type should be used to store a number with a decimal in Java?
int
double
char
boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
3
3.3333
3.0
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
It субботник

Quiz
•
University
8 questions
PROGRAMACION I

Quiz
•
University
15 questions
Python Skills

Quiz
•
1st Grade - Professio...
10 questions
code

Quiz
•
University
6 questions
Repaso 1

Quiz
•
University
10 questions
C++ Array Quiz

Quiz
•
University
7 questions
Entrada de Información en JavaScript

Quiz
•
11th Grade - University
10 questions
Algoritmos #1

Quiz
•
University
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