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
What is a variable in Java?
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 Wayground
15 questions
Interspecific and Intraspecific Relationships in Ecosystems

Quiz
•
5th Grade - University
12 questions
O Mobilismo Geológico e a Teoria da Tectónica de Placas

Quiz
•
University
15 questions
python3 L1 MIPC

Quiz
•
University
15 questions
Enhancing Technical Skills

Quiz
•
University
13 questions
Conceitos de Termologia

Quiz
•
University
10 questions
Cours 4 : Héritage

Quiz
•
University
8 questions
FÍSICA I (EXTRA)

Quiz
•
University
15 questions
Evolution Biology

Quiz
•
12th Grade - University
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 Science
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University