What is a variable?
Pre-Assessment: Java Basics

Quiz
•
Computers
•
Professional Development
•
Hard
Danny Casimero
Used 7+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
A location in memory with a name and a type
A keyword in Java programming
A method to print output
A loop in a program
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How do you declare a variable in Java?
Using a keyword "declare"
By assigning a value directly without declaration
By specifying its type and giving it a name
By using quotation marks around the value
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which primitive type is used for numbers with decimal places in Java?
int
double
char
boolean
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the default type of a literal number in Java?
double
float
int
long
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the output of the following code:
System.out.println("Hello"+5+3); ?
Hello53
8
Hello8
there is an error
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
In Java, which of the following is NOT a primitive data type?
char
double
string
boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the result of the expression
2 + 3 * ( 4 % 5 )
in Java?
14
20
4
10
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Java Basics

Quiz
•
Professional Development
22 questions
Quiz sobre Estruturas de Repetição e Vetores

Quiz
•
Professional Development
20 questions
Programming Knowledge Quiz (Easy)

Quiz
•
5th Grade - Professio...
15 questions
Introduction to PHP

Quiz
•
Professional Development
20 questions
CodeMonkey

Quiz
•
1st Grade - Professio...
16 questions
Flutter Test

Quiz
•
Professional Development
20 questions
DSP_Midterm Quiz

Quiz
•
Professional Development
20 questions
Assessment 1

Quiz
•
Professional Development
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