APSCA unit 3 practice questions set 3

APSCA unit 3 practice questions set 3

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Computer Quiz(Java)(16-10-2020)

Computer Quiz(Java)(16-10-2020)

9th Grade

10 Qs

String Handling in Java

String Handling in Java

10th Grade

8 Qs

Java Code Questions

Java Code Questions

9th - 12th Grade

10 Qs

String Warm Up

String Warm Up

8th - 12th Grade

12 Qs

String

String

10th - 12th Grade

10 Qs

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Java ArrayLists

Java ArrayLists

10th Grade

11 Qs

APSCA unit 3 practice questions set 3

APSCA unit 3 practice questions set 3

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

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));

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?