AP CSA 5.3 (Comments)

AP CSA 5.3 (Comments)

10th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

AP Computer Science Principles Arrays

AP Computer Science Principles Arrays

9th - 12th Grade

6 Qs

L.5. PYTHON - VARIABLES AND OPERATORS - 1

L.5. PYTHON - VARIABLES AND OPERATORS - 1

12th Grade

10 Qs

ArrayList

ArrayList

10th - 12th Grade

11 Qs

AP Computer Science A Unit 5 Section 2 (Constructors)

AP Computer Science A Unit 5 Section 2 (Constructors)

10th - 12th Grade

5 Qs

PLTW Computer Science

PLTW Computer Science

10th - 12th Grade

5 Qs

Advanced Java Study Guide

Advanced Java Study Guide

11th - 12th Grade

10 Qs

Thu Hà

Thu Hà

11th Grade

10 Qs

Python IF ELSE

Python IF ELSE

10th Grade

11 Qs

AP CSA 5.3 (Comments)

AP CSA 5.3 (Comments)

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Herman Galioulline

Used 12+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

I only

III only

I and II only

II and III only

I, II, and III

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

num1 > 0, num2 > 0

num1 >= 0, num2 >= 0

num1 >= num2

num2 >= num1

No precondition is required.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

/* Precondition: m <= n */

/* Precondition: n <= m */

/* Precondition: m >= 0 and n >= 0 */

/* Precondition: m <= 0 and n <= 0 */

/* Precondition: m <= 0 and n >= 0 */

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

/* Precondition: 0 <= oldString.length() */

/* Precondition: 0 < j and 0 < k */

/* Precondition: 0 <= j and 0 <= k */

/* Precondition: j <= k */

/* Precondition: 0 <= j <= k <= oldString.length() */

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

/* Precondition: 0 < n < str.length() - 1 */

/* Precondition: 0 <= n <= str.length() - 1 */

/* Precondition: 0 <= n <= str.length() */

/* Precondition: n > str.length() */

/* Precondition: n >= str.length() */

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

0 <= index < phrase.length()

0 <= index < key.length()

0 <= index < phrase.length() + key.length()

0 <= index < phrase.length() - key.length()

0 <= index < phrase.length() - index