
Java Array

Quiz
•
Computers
•
12th Grade
•
Medium
Samantha Hendrix
Used 3+ times
FREE Resource
38 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below? int[] array = {33,14,37,11,27}; out.println(array[0]);
27
11
33
There is no output due to a syntax error.
There is no output due to a runtime exception.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below? int[] array = {33,14,37,11,27}; out.println(array[array.length-1]);
27
11
33
There is no output due to a syntax error.
There is no output due to a runtime exception.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below? int[] array = {33,14,37,11,27}; out.println(array[array.length]);
14
11
33
There is no output due to a runtime exception.
There is no output due to a syntax error.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below? int[] array = {33,14,37,11,27,4,6,2,6}; out.println(array.length);
10
9
11
5
8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below? int[] array = {7,8,10,11,4,3}; array[array[0]/2]=15; array[array[4]+1]=9; array[array.length/2-1]=5; array[1]=array[0]+4; out.println(array[2]);
7
11
5
15
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below? int[] array = {7,8,10,11,4,3}; array[array[0]/2]=15; array[array[4]+1]=9; array[array.length/2-1]=5; array[1]=array[0]+4; out.println(array[0]);
7
11
5
15
9
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below? int[] array = {7,8,10,11,4,3}; array[array[0]/2]=15; array[array[4]+1]=9; array[array.length/2-1]=5; array[1]=array[0]+4; out.println(array[5]);
7
11
5
15
9
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Python Programming (non-OO) Final Review

Quiz
•
9th - 12th Grade
40 questions
Python Revision Years 8&9 IGCSE

Quiz
•
9th - 12th Grade
40 questions
PAT INFORMATIKA GENAP 2023

Quiz
•
9th - 12th Grade
41 questions
Y11 Programming Basics Pt1 Homework

Quiz
•
12th Grade
34 questions
Project STEM AP CS A Unit 1

Quiz
•
9th - 12th Grade
35 questions
[AP CSP] Programming with Conditionals [If, Elif, Else]

Quiz
•
9th Grade - University
40 questions
Robotics Final Study Guide

Quiz
•
9th - 12th Grade
36 questions
Ulangan Harian Bersama

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade