
B4 - More about Strings
Quiz
•
Other
•
University
•
Practice Problem
•
Easy

Ahmetcan türk
Used 7+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following write?
String str = "Hello World!" ;
str.substring(6);
System.out.println( str );
World!
Hello
Hello World!
The fragment will not compile.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine this code:
String str = "Hello World!" ;
System.out.println( str.substring(6) );
What will it write?
World!
Hello
Hello World!
The fragment will not compile.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine this code:
String str = "Hello World!" ;
System.out.println( str.length() );
What will it write?
0
10
11
12
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine this code:
String myString = "";
System.out.println( myString.length() );
What what will it write?
0
1
2
the code will not compile
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine this code:
String str = "Hello\tWorld!" ;
System.out.println( str.length() );
What will it write?
0
10
11
12
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine this code:
String str = "Hello World!" ;
What is the index of the character 'W' ?
0
5
6
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine this code:
String str = "One Fine Day" ;
String val = str.substring(4) ;
System.out.println( val );
What does the fragment print?
One Fine Day
Fine Day
Day
One Fine
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
13 questions
FLANG PRE-TEST
Quiz
•
University
11 questions
Somatosensory Test Yourself
Quiz
•
University
12 questions
Quiz one
Quiz
•
University
20 questions
E-Commerce-Quiz I
Quiz
•
University
20 questions
ICC-PRELIM EXAM 23-24 1st SEM
Quiz
•
University
15 questions
netflix
Quiz
•
University
17 questions
Basics of Programming with C
Quiz
•
University
14 questions
Open House - Parent Handbook Overview
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
