AP CSA 5.3 (Comments)

AP CSA 5.3 (Comments)

10th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

11 - IF ELSE

11 - IF ELSE

11th Grade

10 Qs

Quiz Algoritmos y Front End

Quiz Algoritmos y Front End

10th Grade

10 Qs

Nested For Loops

Nested For Loops

10th - 12th Grade

6 Qs

APCS Unit 8

APCS Unit 8

12th Grade

10 Qs

APCSA Final

APCSA Final

12th Grade

10 Qs

Computer Science AP

Computer Science AP

12th Grade

10 Qs

Operators in C

Operators in C

9th - 12th Grade

10 Qs

Строки. Преобразование типов данных

Строки. Преобразование типов данных

10th 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 13+ 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