

Syntax
Presentation
•
Computers
•
9th - 10th Grade
•
Hard
Marisol Rio
Used 1+ times
FREE Resource
1 Slide • 9 Questions
1
Syntax & Some String Q's
review q's

2
Multiple Choice
What is the output by the code below?
System.out.print("ac" );
a\tc
a c
atc
a\c
ac
3
Multiple Choice
What is the output by the code below?
System.out.print("ab\\\\ab" );
ab\ab
ab
ab\\ab
bab
abb
4
Multiple Choice
What is the output by the code below?
System.out.println( 3 + "\t" + 3 );
6
3 3
6 6
3" "3
3 3
5
Multiple Choice
What is output by the following code?
System.out.println(7 + "" + 5);
345
39
75
12
there is no output due to compile error
6
Multiple Choice
Consider the following code segment.
String s = "dogfood";
System.out.println( s.substring(0,3) );
food
dog
dogs
ood
gfo
7
Multiple Choice
Consider the following code segment.
String s = "dogfood";
System.out.println( s.length() );
3
7
4
5
6
8
Multiple Choice
Consider the following code segment.
String s = "dogfood";
System.out.println( s.substring(4) );
food
dog
dogs
ood
dr who
9
Multiple Choice
Consider the following code segment.
String s = "dogfood";
System.out.println( s.indexOf( "cat" ) );
3
2
-1
4
0
10
Multiple Choice
What is output by the code below?
String s = "abac-adae-bfbg-bhbi";
int index = s.indexOf("ae");
System.out.println( index );
8
-1
6
7
there is no output due to a syntax error
Syntax & Some String Q's
review q's

Show answer
Auto Play
Slide 1 / 10
SLIDE
Similar Resources on Wayground
10 questions
FORMATIF 1
Presentation
•
10th Grade
11 questions
For loops
Presentation
•
8th - 10th Grade
7 questions
Pelatihan FPD
Presentation
•
KG
7 questions
Chapters 1-2 Review
Presentation
•
9th Grade
11 questions
Arcs and Central Angles of a Circle
Presentation
•
9th - 10th Grade
10 questions
Cara Kerja Komputer ( Bab II ) Kelas 10
Presentation
•
10th Grade
10 questions
Defining class and object
Presentation
•
10th Grade
7 questions
M3 L5 (Monday 1/4) Exponential Growth
Presentation
•
9th - 10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade