
PU - Day 1 assessment - Kalpana's batch
Quiz
•
Professional Development
•
Professional Development
•
Hard
training atomm
Used 1+ times
FREE Resource
Enhance your content
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?
class string_class
{
public static void main(String args[])
{
String obj = "I LIKE JAVA";
System.out.println(obj.charAt(3));
}
}
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
POST TEST PEMBEKALAN CHAMPION DPK PPNI RSAB HK
Quiz
•
Professional Development
10 questions
PU - Day 1 - Assessments - Slot 2 - Mahendran class
Quiz
•
Professional Development
10 questions
AWS Booster Python Day 1
Quiz
•
Professional Development
15 questions
Javascript - Revisão 01 - PGATS 2025
Quiz
•
Professional Development
10 questions
Java Summer Internship Quiz-11
Quiz
•
Professional Development
9 questions
Quiz - 2
Quiz
•
Professional Development
10 questions
A360 Cookbook and Packages
Quiz
•
Professional Development
11 questions
JSON YAML
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade