String and Math Methods AP CSA

String and Math Methods AP CSA

10th Grade

10 Qs

quiz-placeholder

Similar activities

AP Computer Science Principles Big Idea 2

AP Computer Science Principles Big Idea 2

9th - 12th Grade

9 Qs

Computer Science Principles

Computer Science Principles

9th - 12th Grade

9 Qs

CodeHS 2.10 While Loops

CodeHS 2.10 While Loops

9th - 12th Grade

10 Qs

CSP-Selection and Iteration

CSP-Selection and Iteration

9th - 12th Grade

10 Qs

Pseudocode APCSP

Pseudocode APCSP

10th - 12th Grade

8 Qs

Array List

Array List

9th - 12th Grade

13 Qs

Programming Variables

Programming Variables

10th Grade

10 Qs

AP CS Principles Review

AP CS Principles Review

9th - 12th Grade

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