AP CS A Edhesive Unit 3

AP CS A Edhesive Unit 3

10th - 12th Grade

4 Qs

quiz-placeholder

Similar activities

Review Quiz B1 - Working with Numbers

Review Quiz B1 - Working with Numbers

11th Grade - University

8 Qs

Uvod u Python i jednostavne tipove podataka

Uvod u Python i jednostavne tipove podataka

9th - 12th Grade

9 Qs

Ingreso de datos Pyton - Segundo 31-04-spt

Ingreso de datos Pyton - Segundo 31-04-spt

12th Grade

7 Qs

Delphi Revision Part 2

Delphi Revision Part 2

8th - 10th Grade

7 Qs

Типы данных

Типы данных

9th - 12th Grade

9 Qs

Delphi Revision Part 1

Delphi Revision Part 1

9th - 10th Grade

6 Qs

Оператор з передумовою

Оператор з передумовою

8th - 10th Grade

9 Qs

PYTHON

PYTHON

12th Grade

8 Qs

AP CS A Edhesive Unit 3

AP CS A Edhesive Unit 3

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Anne Kohart

Used 26+ times

FREE Resource

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given String str. How do you find the length of the string?

Use a for loop to count the elements

str.length;

str.length();

str[0].length();

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given and array of 7 integers called nums. How do you access the LAST element?

nums[7]

nums[nums.length] - 1

nums[nums.length - 1]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these correctly assigns initializes a max so that the max value in an array can be found?

int max = 0;

int max = Integer.MAX_VALUE;

int max = Integer.MIN_VALUE;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you find the sum in an array?

Given

int sum = 0;

int [] nums = {1,2,23,4,5445,7}

for (i = 0; i < nums.length; i++)

sum +=nums;

nums[i] += sum;

sum += nums[i];

sum = nums[0]+nums[1];