Strings In java

Strings In java

9th - 10th Grade

35 Qs

quiz-placeholder

Similar activities

UH-2 PPLG 3

UH-2 PPLG 3

10th Grade

40 Qs

REKAYASA PERANGKAT LUNAK KELAS X

REKAYASA PERANGKAT LUNAK KELAS X

10th Grade

40 Qs

TIN HỌC 10: ÔN TẬP LẬP TRÌNH PYTHON

TIN HỌC 10: ÔN TẬP LẬP TRÌNH PYTHON

10th Grade

36 Qs

Python программалоо тили

Python программалоо тили

7th - 11th Grade

30 Qs

Paper 01 - OCR - 1.1

Paper 01 - OCR - 1.1

10th Grade

33 Qs

Ôn Tập Chuong III - Tin 11

Ôn Tập Chuong III - Tin 11

6th Grade - University

40 Qs

Internet Ethics

Internet Ethics

9th Grade

40 Qs

SIMKOMDIG

SIMKOMDIG

KG - University

40 Qs

Strings In java

Strings In java

Assessment

Quiz

Computers

9th - 10th Grade

Practice Problem

Medium

Created by

Arsha Arun

Used 37+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?