
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
JAVA
Quiz
•
10th Grade
8 questions
blox fruit
Quiz
•
12th Grade
9 questions
Test Excel
Quiz
•
10th - 12th Grade
9 questions
Python Basics Quiz for KS3
Quiz
•
11th Grade - University
8 questions
Programlama Temelleri-Python
Quiz
•
8th - 11th Grade
9 questions
THAM SỐ CỦA HÀM
Quiz
•
10th Grade
9 questions
N5 SDD
Quiz
•
10th - 12th Grade
8 questions
Python String Manipulation - and toast!
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade