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
10 questions
Python Lists

Flashcard
•
9th - 12th Grade
7 questions
Business Card Layout

Flashcard
•
9th - 12th Grade
8 questions
java while loop

Flashcard
•
9th - 12th Grade
9 questions
STRING MANIPULATION (PYTHON)

Flashcard
•
11th - 12th Grade
13 questions
Python variables, expressions, and data types

Flashcard
•
9th - 12th Grade
10 questions
CSP Unit 3 Assessment

Flashcard
•
9th - 12th Grade
10 questions
Recursion Flashcard

Flashcard
•
9th - 12th Grade
7 questions
Java Basics #2

Flashcard
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University