AP CS A Edhesive Unit 3

Quiz
•
Computers
•
10th - 12th Grade
•
Hard
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];
Similar Resources on Wayground
8 questions
ง33202 เรื่อง ภาษาซีเบื้องต้น

Quiz
•
12th Grade
6 questions
Topic 6.1 Video 2

Quiz
•
11th Grade
8 questions
Topics 7 & 8 - Static Methods/Variables and Null Keyword

Quiz
•
12th Grade
7 questions
AP Comp (POP Quiz)

Quiz
•
9th - 12th Grade
9 questions
C# Variables and Data Types

Quiz
•
8th Grade - University
6 questions
Java while loops

Quiz
•
10th - 12th Grade
8 questions
CAI710: WQ1

Quiz
•
12th Grade
9 questions
Microsoft Excel

Quiz
•
10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade