String and Math Methods AP CSA

String and Math Methods AP CSA

10th Grade

10 Qs

quiz-placeholder

Similar activities

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

Code.org APCSA Unit

Code.org APCSA Unit

9th - 12th Grade

10 Qs

AP CSP Review

AP CSP Review

9th - 12th Grade

10 Qs

AP CSP Exam Review: Big Idea 3

AP CSP Exam Review: Big Idea 3

8th - 10th Grade

15 Qs

Pseudocode Conditionals

Pseudocode Conditionals

10th - 12th Grade

10 Qs

CS Principles

CS Principles

9th - 12th Grade

10 Qs

AP CSP Unit 2 Review

AP CSP Unit 2 Review

9th - 12th Grade

10 Qs

Python Lists

Python Lists

9th - 12th Grade

15 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?