What is the output of the below code?
String s= "tedd";
String t = s;
s+= " smith";
System.out.println(s);
APSCA unit 3 practice questions set 3
Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Caleb Kim
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the below code?
String s= "tedd";
String t = s;
s+= " smith";
System.out.println(s);
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the below code?
String full = "The full text";
System.out.println(full.substring(5));
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the below code?
String full = "The full text";
System.out.println(full.substring(1,7));
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the below code?
String text1 = "apples";
String text2 = "apples";
System.out.println(text1.compareTo(text2));
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the below code?
String text1 = "apples";
String text2 = "ask";
System.out.println(text1.compareTo(text2));
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the below code?
String name = "Jane Smith";
System.out.println(name.substring(1).toUpperCase());
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the below code?
String text1 = "drink";
String text2 = "drain";
System.out.println(text1.compareTo(text2));
12 questions
Java Strings
Quiz
•
9th - 12th Grade
15 questions
Pre-Test Operator Javascript
Quiz
•
11th Grade
10 questions
Java Coding
Quiz
•
9th - 12th Grade
9 questions
TEST FUNCȚII EXCEL
Quiz
•
10th Grade
10 questions
Arrays
Quiz
•
10th - 12th Grade
10 questions
Java Code Tracing Practice A
Quiz
•
9th - 12th Grade
9 questions
Java For Loops
Quiz
•
9th - 12th Grade
15 questions
Java Script Quiz
Quiz
•
9th - 12th Grade
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
12 questions
Multiplying Fractions
Quiz
•
6th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology
Quiz
•
9th - 12th Grade