
comp sci final
Authored by Yathin Mrudul
Other
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
51 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper syntax to initialize an empty 6x6 2D String array?
String[] array = new String[6][6];
int[][] array = new int[6][6];
String[][] array = new String[6];
String[][] array = new String[6][6];
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int[][] grid = new int[5][3]
What is the value of grid[0].length?
0
5
3
15
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A 2D array is initialized:
int [][] array = {{1,2,3},{4,5,6},{7,8,9}};
What is the result of array[0][1] + array[2][0]?
10
15
9
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A 2D double array is declared and initialized to track the terrain of a city park. Each value in the 2D array represents the height of a particular latitude and longitude above sea level. The 2D grid represents the map of the part and each entry in the grid represents the height.
With this in mind, the columns are positioned to represent Longitude in the 2D array and Latitude is represented by each row in the 2D array.
The creator of this 2D array would like to look at the height of the city park along the longitude 100.0 - which traversal method would make the most sense in order to do so?
Row-Major Order
Enhanced for loop
Column-Major Order
This isn’t possible given the 2D array.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A 2D double array terrainMap is declared and initialized to track the terrain of a city park. Each value in the 2D array represents the height of a particular latitude and longitude above sea level. The 2D grid represents the map of the part and each entry in the grid represents the height.
With this in mind, the columns are positioned to represent Longitude in the 2D array and Latitude is represented by each row in the 2D array.
Which of the following would be a correct way to write the traversal for this 2D array?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A 2D double array terrainMap is declared and initialized to track the terrain of a city park. Each value in the 2D array represents the height of a particular latitude and longitude above sea level. The 2D grid represents the map of the part and each entry in the grid represents the height.
With this in mind, the columns are positioned to represent Longitude in the 2D array and Latitude is represented by each row in the 2D array.
Which of the following would be the correct way to print out all the indices that are more than 5 feet above sea level?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be a correct way to instantiate this 2D array?
int[][] table = { 1, 0, 10, 0, 3, 8, 38, 0 };
int[][] table = { {1, 0, 10, 0}, {3, 8, 38, 0} };
int[][] table = { {1}, {0}, {10}, {0}, {3}, {8}, {38}, {0} };
int[][] table = { "1, 0, 10, 0", "3, 8, 38, 0" };
int[][] table = new int[1, 0, 10, 0][3, 8, 38, 0];
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
51 questions
Quizizz GDCD GK2
Quiz
•
11th Grade
51 questions
KNOWLEDGE KNOCK OUT LEVEL 2
Quiz
•
9th - 12th Grade
50 questions
Minecraft
Quiz
•
2nd Grade - Professio...
47 questions
Sejarah Kependudukan Jepang
Quiz
•
1st - 12th Grade
50 questions
IPS 8 (PERDAGANGAN NASIONAL DAN INTERNASIONAL)
Quiz
•
KG - University
50 questions
PKKR XI PAS
Quiz
•
11th Grade
50 questions
PAS PKK Kelas XI Gasal 20/21
Quiz
•
11th Grade
50 questions
Law Chapter 6: How Contracts Come to an End (Test Review)
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade