

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
6 questions
macam-macam hardware Komputer
Presentation
•
10th Grade
8 questions
Pengantar Pemrograman Dasar
Presentation
•
10th Grade
8 questions
Percobaan presentasi
Presentation
•
10th Grade
9 questions
TIPE DATA PEMROGRAMAN
Presentation
•
10th Grade
9 questions
Perangkat Keras Komputer (hardware)
Presentation
•
10th Grade
9 questions
Multiple Alleles/Blood Typing
Presentation
•
9th Grade
6 questions
ԵՐԿՐԱՉԱՓՈՒԹՅՈՒՆ
Presentation
•
2nd - 3rd Grade
8 questions
China Rebellion and Revolution
Presentation
•
9th - 10th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade