Which of the following correctly defines and instantiates an array that can store 18 integers? A. int[] array;, B. int[] array = new int[18];, C. int[] array = new int[19];, D. int[18] array;, E. None of these
❄⛄AP CSA - Unit 6 Review

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
int[] array = new int[18];
2.
FLASHCARD QUESTION
Front
What is the output of this code segment?
int[ ] array = {33 ,14 ,37 ,11 ,27 };
System.out.println(array[array.length]);
Back
index out of bounds exception
3.
FLASHCARD QUESTION
Front
What are the values in a after multAll(3) executes?
Back
{3, 9, -15, -6}
4.
FLASHCARD QUESTION
Front
What is the output of the following code?
Back
15
5.
FLASHCARD QUESTION
Front
What is the output?
Back
14
6.
FLASHCARD QUESTION
Front
What is output by the code at right?
Back
72
7.
FLASHCARD QUESTION
Front
What values are stored in arr after the following code segment has been executed? Options: A. 2 1 4 3 6 5 7 5, B. 1 3 2 5 4 7 6 8, C. 2 1 4 3 6 5 8 7, D. 1 3 2 5 4 7 6 6, E. 2 1 4 3 6 5 7 8
Back
1 3 2 5 4 7 6 6
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Java Loops

Flashcard
•
9th - 12th Grade
10 questions
AP CSP Semester Exam Review

Flashcard
•
9th - 12th Grade
9 questions
Python Review 5/23

Flashcard
•
9th - 12th Grade
9 questions
Python Review 5/23

Flashcard
•
9th - 12th Grade
9 questions
Java For Loops

Flashcard
•
9th - 12th Grade
12 questions
Arrays Test Review

Flashcard
•
9th - 12th Grade
7 questions
CodeHS 2.8 Functions to 2.12 User Input Review

Flashcard
•
9th - 12th Grade
13 questions
Unit 5 Flashcard AP CSP

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade