Java conditional/loop/method/user input

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Indira Pothukuchi
Used 15+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(int) (Math.random()*100) generates a random number between 0 and 100, including 0 and 100
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 Wayground
20 questions
Algoritmi Java

Quiz
•
11th Grade
22 questions
C# Quiz

Quiz
•
9th - 12th Grade
21 questions
Синтаксис Python

Quiz
•
7th - 11th Grade
20 questions
Python - Iteration (For Loops)

Quiz
•
10th Grade
20 questions
Basics Python

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

Quiz
•
11th Grade
20 questions
Java Casting & Booleans

Quiz
•
10th - 12th Grade
24 questions
Javascript Basics

Quiz
•
7th Grade - 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
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th 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
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade