AP CSA 5.3 (Comments)

AP CSA 5.3 (Comments)

10th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

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

AP Computer Science A Unit 5

AP Computer Science A Unit 5

10th - 12th Grade

5 Qs

IGCSE Computer Science - Chapter 9: Problem-Solving and Design

IGCSE Computer Science - Chapter 9: Problem-Solving and Design

9th - 10th Grade

10 Qs

Ch 5 Practice

Ch 5 Practice

9th - 12th Grade

10 Qs

APCSA - Unit 3

APCSA - Unit 3

9th - 12th Grade

10 Qs

Break the fear

Break the fear

11th - 12th Grade

10 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