
CS Unit 5 Quiz Reveiw

Quiz
•
Computers
•
12th Grade
•
Medium
Chandra Batzel
Used 2+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following arrays has a length of 5?
double[] arr = new double[6];
double[] arr = {0, 1, 2, 3, 4, 5};
double[] arr = new double[]{1, 2.3, 4, 5};
All of the above
None of the above
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following are valid arrays?
I. int[] coolArray = {1, 2, 3};
II. int[] threeThings = {1.0, 2.0, 3.0};
III. int[] = {"1", "2", "3"};
I only
II only
III only
I and II
I and III
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What would be a correct way to instantiate this 2D array?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which is the correct way to construct and assign a 2D array, with 8 rows and 10 columns, to the variable popcorn?
int[8][10] popcorn;
int[8][10] popcorn = new int[8][10];
int[][] popcorn = new int[8][10];
int[8][10] popcorn = new int[][];
int[][] popcorn = new int[][](8, 10);
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
We want to create a 2D double array with 6 rows and 7 columns and assign it to connectFour. Which of these is correct?
double[][] connectFour = new double[6][7];
double[][] connectFour = new connectFour[6][7];
double[][] connectFour = double[6][7];
new double[6][7] connectFour;
double[6][7] connectFour = new double[][];
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Looking at the image, what is the value of something[1][2]?
6.8
6.1
2.3
1.3
The array does not have an element at that location.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Looking at the image, What is the value of something[2][1]?
6.8
6.1
2.3
1.3
The array does not have an element at that location.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Computer Science: Chapter 2 Test Review

Quiz
•
9th - 12th Grade
15 questions
หน่วยที่ 2 เรื่อง ( Language C )

Quiz
•
9th - 12th Grade
20 questions
Ch Coding Review

Quiz
•
9th - 12th Grade
15 questions
Java Arrays Prt 1Quiz

Quiz
•
9th - 12th Grade
15 questions
Java Fundamentals

Quiz
•
12th Grade
18 questions
JAVA string

Quiz
•
12th Grade
17 questions
Project Stem Python Unit 1 Test Review

Quiz
•
9th - 12th Grade
24 questions
Основы C#

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade