
java String StringBuffer

Quiz
•
Computers
•
University
•
Hard

A Vijay Kumar
Used 16+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following print?
System.out.println( "And yet, it moves!".charAt(0) );
A
n
!
The statement is incorrect.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following print?
String str = "And yet, it moves!"
System.out.println( str.charAt( str.length() ) );
A
n
!
The statment is incorrect.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following fragment:
String cat = "Hello"
cat += " ";
cat += "World" ;
How many objects are constructed?
0
1
2
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following fragment:
String world = "World!";
StringBuffer buf = new StringBuffer( "Hello" );
buf.append(' ');
buf.append( world );
How many StringBuffer objects are constructed?
0
1
2
3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which phrase best describes a String object after it has been constructed?
Changeable
Write Only
Read Only
Inaccessible
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character of a StringBuffer has index 0?
leftmost
rightmost
no character
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After a StringBuffer has been constructed, how many characters may be added to it?
No more after it has been constructed.
Only as many as the original capacity.
As many as needed; it will grow in size if necessary.
A new StringBuffer must be constructed each time characters are added.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quizz Programación 2

Quiz
•
University
19 questions
JavaScript

Quiz
•
University
12 questions
MS Core Java Quiz-2 2023

Quiz
•
University
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
13 questions
Object oriented programming in java

Quiz
•
University
11 questions
Basics of JAVA

Quiz
•
University
18 questions
Java Como Programar - Deitel - Cap 1 e 2

Quiz
•
University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
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
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University