
Unit #8 Test Review
Authored by Michael Courtright
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
interchange of rows into columns and columns into rows
diagonal elements
boundary elements
transpose of a matrix
2D array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
elements that are not surrounded by other elements in all four directions
diagonal elements
boundary elements
transpose of a matrix
2D array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
elements that either have the same row index and column index, or have a sum of the row index and column index that is equal to the array size – 1
diagonal elements
boundary elements
transpose of a matrix
2D array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
visualized as a grid (or table) with rows and columns with the same type of data
diagonal elements
boundary elements
transpose of a matrix
2D array
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
public static void stationery(){
String[][] item = new String[][] { {"eraser","pen"},{"pencil","ruler"}, {"charts","sheets"},{"notebook","maps"}, {"clock","flash cards"},{"diary","colored pencil"} };
int m = item.length; // number of rows
int n = item[0].length; // number of columns
for(int col = 0 ; col < n; col++){
System.out.print(item[0][col] + " ");
System.out.print(item[m-1][col] + " "); }
}
}
What will be the output of the above code segment?
pen colored pencil eraser diary
clock flash cards diary colored pencil eraser pen pencil ruler charts sheets notebook maps
eraser diary pen colored pencil
eraser pen pencil ruler charts sheets notebook maps clock flash cards diary colored pencil
eraser ruler clock colored pencil
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Consider a method defined with a String 2D array parameter.
boolean test(String[][] val)
Which of the following is the correct method call statement?
boolean b = test(String); // String is a String 2D array with values
boolean b = test(String[][]); // String is a String 2D array with values
boolean b = test(string[][]); // string is a String 2D array with values
boolean b = test(string); // string is a String 2D array with values
string = test(boolean); // string is a String 2D array with values
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
int n= arr.length;
System.out.println("left top corner: " + arr[0][0]);
System.out.println("right top corner: " + arr[0][n - 1]);
System.out.println("left bottom corner: " + arr[n - 1][0]);
System.out.println("right bottom corner: " + arr[n - 1][n - 1]);
What will be the output if the above statements are executed with a square matrix, arr?
It will print nonboundary elements.
It will print major diagonal (left to right) elements.
It will print minor diagonal (right to left) elements.
It will print boundary elements.
It will print corner elements.
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
10 questions
python
Quiz
•
10th Grade
10 questions
DTJSQuiz
Quiz
•
11th Grade
10 questions
Mecatronica 3ro IOQ 1
Quiz
•
9th - 10th Grade
13 questions
Python
Quiz
•
9th Grade
10 questions
Tool Photoshop
Quiz
•
9th - 12th Grade
12 questions
Web II: CSS Positioning
Quiz
•
9th - 12th Grade
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
10 questions
Image Representation Lesson 2
Quiz
•
9th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade