
AP CS A Edhesive Unit 3
Authored by Anne Kohart
Computers
10th - 12th Grade
Used 26+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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];
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
9 questions
Basic Python Coding
Quiz
•
6th - 12th Grade
9 questions
Testing
Quiz
•
9th - 11th Grade
9 questions
Pemrograman OOP 2
Quiz
•
11th Grade
9 questions
Unit 7 Review (AP Comp Sci A)
Quiz
•
12th Grade
8 questions
Operadores Lógicos y la Clase String en java
Quiz
•
11th Grade
8 questions
CAT Grade 12 Module 5 AMA Quiz
Quiz
•
12th Grade
9 questions
Java Basics #1
Quiz
•
10th - 12th Grade
6 questions
Квиз
Quiz
•
7th - 11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Elijah McCoy: Innovations and Impact in Black History
Interactive video
•
6th - 10th Grade