26-generate random number + java

26-generate random number + java

Professional Development

43 Qs

quiz-placeholder

Similar activities

Final Test 20000-1209

Final Test 20000-1209

Professional Development

41 Qs

English File Intermediate Plus Revision Grammar

English File Intermediate Plus Revision Grammar

10th Grade - Professional Development

40 Qs

Quantitative Aptitude and Verbal Ability Quiz

Quantitative Aptitude and Verbal Ability Quiz

Professional Development

45 Qs

Unit 3: Living life to the full

Unit 3: Living life to the full

Professional Development

40 Qs

Memos, Emails, and Writing Concisely

Memos, Emails, and Writing Concisely

12th Grade - Professional Development

42 Qs

Accounting II 2024

Accounting II 2024

Professional Development

45 Qs

15.Mocking Introduction

15.Mocking Introduction

Professional Development

40 Qs

10.Command line arguments + java

10.Command line arguments + java

Professional Development

48 Qs

26-generate random number + java

26-generate random number + java

Assessment

Quiz

English

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number in Java?
Import
Random
Instance
nextInt()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number from 1 to 100 in Java?
Code
Random
Minimum
Maximum

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number from 1 to 5 in Java?
Values
Formula
Math
Random

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number between 1 and 50 in Java?
Math
Random
Instance
nextInt()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random number from 1 to 10 in Java?
ThreadLocalRandom
nextInt()
current()
parameters

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate a random 10-digit number in Java?
Code
Argument
nextInt()
Format

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you generate 20 random numbers in Java?
Code
Unique
nextInt()
Array

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?