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
Data Analytics Unit 3 Quiz

Quiz
•
University
10 questions
Q3 Física

Quiz
•
7th Grade - University
15 questions
Introduction to Data Analysis Quiz

Quiz
•
12th Grade - University
13 questions
Processing Quiz

Quiz
•
University
9 questions
Kuizi 8.1

Quiz
•
University
15 questions
Большое Повторение C#

Quiz
•
5th Grade - University
8 questions
PROGRAMACION I

Quiz
•
University
10 questions
2021_DASPRO_PERTEMUAN2

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade