PU - Day 1 assessment - Kalpana's batch

PU - Day 1 assessment - Kalpana's batch

Professional Development

10 Qs

quiz-placeholder

Similar activities

PU - Day 1 - Assessments - Slot 2 - Mahendran class

PU - Day 1 - Assessments - Slot 2 - Mahendran class

Professional Development

10 Qs

String and List

String and List

Professional Development

14 Qs

AWS Booster Python Day 1

AWS Booster Python Day 1

Professional Development

10 Qs

Javascript - Revisão 01 - PGATS 2025

Javascript - Revisão 01 - PGATS 2025

Professional Development

15 Qs

Desafío Java fácil

Desafío Java fácil

Professional Development

10 Qs

POST TEST PEMBEKALAN CHAMPION DPK PPNI RSAB HK

POST TEST PEMBEKALAN CHAMPION DPK PPNI RSAB HK

Professional Development

10 Qs

IT

IT

6th Grade - Professional Development

11 Qs

PythonDS

PythonDS

Professional Development

13 Qs

PU - Day 1 assessment - Kalpana's batch

PU - Day 1 assessment - Kalpana's batch

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

training atomm

Used 1+ times

FREE Resource

AI

Enhance your content

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are incorrect?
a) String is a class
b) Strings in java are mutable
c) Every string is an object of class String
d) Java defines a peer class of String, called StringBuffer, which allows string to be altered

A

B

C

D

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about StringBuffer is true?
a) StringBuffer is immutable
b) StringBuffer is synchronized
c) StringBuffer cannot be converted to a String
d) StringBuffer is a subclass of String

A

B

C

D

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?
String str = "Hello";
str.concat(" World");
System.out.println(str);
a) Hello World
b) Hello
c) Compilation error
d) Runtime error

D

B

C

A

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods can be used to compare two strings in Java?
a) compareTo()
b) equalsIgnoreCase()
c) both a and b
d) none of the above

C

B

A

D

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Java program?

  1. class string_class

  2. {

  3. public static void main(String args[])

  4. {

  5. String obj = "I LIKE JAVA";

  6. System.out.println(obj.charAt(3));

  7. }

  8. }

K
L
I
A

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?
String str = "Java";
str = str + " Programming";
System.out.println(str);
a) Java Programming
b) Java
c) Compilation error
d) Runtime error

B

A

C

D

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about StringBuilder is true?
a) StringBuilder is synchronized
b) StringBuilder is mutable
c) StringBuilder cannot be converted to a String
d) StringBuilder is a subclass of String

D

C

B

A

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?

Discover more resources for Professional Development