Search Header Logo

Strings In java

Authored by Arsha Arun

Computers

9th - 10th Grade

Used 38+ times

Strings In java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which type of data is used to enter the value ("Welcome")?

Text
Characters
String
Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of data is used to enter the value (1234.5)?

Integer

double

char

void

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we use the Scanner Library in java for?

Give permissions to the user

Correcting software errors

Allows user to read data

Allows the user to enter data

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To concatenate the programmer must: 

have quotations (" ")
use the plus symbol + 
escape sequences (\t\n)
use System.out.print( );

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for the following statement:

System.out.print("1"+"1");

11

2

Error Message

1+1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method to use to find length of a string?

length()

size()

long()

count()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

double

String

int

number

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?