(int) (Math.random()*100) generates a random number between 0 and 100, including 0 and 100
Java conditional/loop/method/user input

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Indira Pothukuchi
Used 13+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following represents a single line comment in Java?
/* Comment */
<!-- Comment -->
// Comment
# Comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following represents a multi-line comment in Java?
<!-- Comment >
// Comment
/* Comment */
# Comment
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public static _____ statement(int x, int y){
String z = "x is: " + x + "and y is: " + y;
return z }
What should the return type be?
void
int
double
String
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public static ________ average(int x, int y){
return (double) x / y;
}
What should the return type be?
void
int
double
String
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This is an example of a non-return method.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The name of this method is ....
Oddsum
int Oddsum
int Oddsum (int number)
return totaloddsum
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
SKT4-1.3: PEMBOLEH UBAH, PEMALAR DAN JENIS DATA

Quiz
•
10th - 11th Grade
23 questions
AP CSA Unit One Review

Quiz
•
11th Grade
20 questions
class xi science and management sec d

Quiz
•
12th Grade
20 questions
Variables and Loops Review

Quiz
•
9th - 12th Grade
20 questions
Java For Loop basic syntax

Quiz
•
9th - 12th Grade
20 questions
Computer 10 | Introduction to Java

Quiz
•
9th - 12th Grade
20 questions
Basics Python

Quiz
•
8th - 10th Grade
20 questions
C# Intro

Quiz
•
9th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University