BASIC JAVA

BASIC JAVA

11th Grade

50 Qs

quiz-placeholder

Similar activities

Project STEM Unit 1 Review

Project STEM Unit 1 Review

9th - 12th Grade

49 Qs

SAINS KOMPUTER TINGKATAN 4 BAB 1

SAINS KOMPUTER TINGKATAN 4 BAB 1

3rd Grade - University

50 Qs

software dev

software dev

9th - 12th Grade

50 Qs

Basic Java with CodeHS

Basic Java with CodeHS

9th - 12th Grade

50 Qs

Ujian Pengesanan Sains Komputer Ting 4 2021 September

Ujian Pengesanan Sains Komputer Ting 4 2021 September

11th Grade

50 Qs

PTS - Informatika 11 MIA

PTS - Informatika 11 MIA

11th Grade

45 Qs

Coding Midterm

Coding Midterm

9th - 12th Grade

54 Qs

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

1st - 12th Grade

52 Qs

BASIC JAVA

BASIC JAVA

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Sir. Amoyo

Used 16+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Scanner class method that closes the scanner?

void remove()

void close()

nextLong()

String next()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Scanner class method that resets the scanner?

nextFloat()

int radix()

Scanner skip(String pattern)

short nextShort()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Scanner class method is used to read th Integer value from the user?

next()

nextInteger()

nextInt()

readInt()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Scanner class method is used to read long value from the user?

long()

nextLong()

nextValue()

none of the choices

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Scanner class method is used to read string value from the user?

next()

nextString()

nextLine()

none of the choices

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct syntax to declare Scanner class object?

Scanner X = new Scanner (System.in);

Scanner X = Scanner( );

Scanner X = new( );

Scanner X = new Scanner (System.in)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Scanner class method is used to read boolean value from the user?

next()

readBoolean()

nextBoolean()

none of the choices

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?