Java Basics Review (And Strings)

Java Basics Review (And Strings)

9th - 12th Grade

40 Qs

quiz-placeholder

Similar activities

INF Fase E Asessmen Sumatif Akhir

INF Fase E Asessmen Sumatif Akhir

10th Grade

40 Qs

Sumatif Tengah Sem2  Informatika 11F

Sumatif Tengah Sem2 Informatika 11F

11th Grade

40 Qs

All About Computers

All About Computers

9th - 12th Grade

40 Qs

UTS1 XII TKJ B Teknologi Layanan Jaringan

UTS1 XII TKJ B Teknologi Layanan Jaringan

12th Grade

40 Qs

End of rotation - Cryptography and Networks

End of rotation - Cryptography and Networks

8th - 9th Grade

41 Qs

Quarter 2 Quiz 2

Quarter 2 Quiz 2

12th Grade

35 Qs

PROGRAMMING(MIDTERM EXAM)

PROGRAMMING(MIDTERM EXAM)

12th Grade

35 Qs

MYOB Asyiik

MYOB Asyiik

11th Grade

40 Qs

Java Basics Review (And Strings)

Java Basics Review (And Strings)

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Nathan Lyson

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The keyword "method" is another name for

an object

a class

a function

a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is incorrect?

int count = 50.0;

int salary = 50_000;

int salary = 50_00;

all of these are incorrect

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is at the end of a line of code?

#
;
)
>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a comment look like in Java?

//comment
\\comment
==comment
\comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method to use to find length of a string?

length()

size()

long()

count()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type gets returned from length() method in String class?

double

String

int

number

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";


What is the correct way to find the length of "txt" string?

int len = length(txt);

float len = txt.length();

int len = txt.length();

double len = length(txt);

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?