String and Math Methods AP CSA

String and Math Methods AP CSA

10th Grade

10 Qs

quiz-placeholder

Similar activities

Java Arrays Quiz Review

Java Arrays Quiz Review

9th - 10th Grade

10 Qs

Printing in Java

Printing in Java

9th - 12th Grade

8 Qs

CSP-Selection and Iteration

CSP-Selection and Iteration

9th - 12th Grade

10 Qs

Question Type: Pseudocode

Question Type: Pseudocode

10th - 12th Grade

8 Qs

Unit 8 - Searching and Sorting

Unit 8 - Searching and Sorting

9th - 12th Grade

15 Qs

For Loop Method

For Loop Method

10th - 12th Grade

10 Qs

C++ - Loops and Random Numbers

C++ - Loops and Random Numbers

9th - 12th Grade

14 Qs

Boolean and If-Else Practice

Boolean and If-Else Practice

9th - 12th Grade

11 Qs

String and Math Methods AP CSA

String and Math Methods AP CSA

Assessment

Quiz

Computers

10th Grade

Hard

Created by

David Guy

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

ABCD

BCDE

BCEF

BCDEF

ABCDEF

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

3

4

5

6

7

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Consider the following code segment.

What is printed when the code segment is executed?

comp

c o m p

comp com co c

comp omp mp p

comp comp comp comp

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Consider the following code segment.

What is the value of num when the code segment is executed?

3

4

5

6

7

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Use the image for the question.

Media Image
Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following statements assigns a random integer between 1 and 10, inclusive, to rn ?

Media Image
Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Consider the following code segment, which is intended to assign to num a random integer value between min and max, inclusive. Assume that min and max are integer variables and that the value of max is greater than the value of min.

Which of the following could be used to replace /* missing code */ so that the code segment works as intended?

Media Image
Media Image
Media Image
Media Image
Media Image

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?