Search Header Logo

String and Math Methods AP CSA

Authored by David Guy

Computers

10th Grade

Used 16+ times

String and Math Methods AP CSA
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?