
Array Part-2
Authored by PRAVEEN SHARMA
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these operators is used to allocate memory to array variable in Java?
malloc
alloc
new
new malloc
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following statements assigns the letter S to the third row and first column of a two-dimensional array named strGrid (assuming row-major order).
strGrid[0][2] = "S";
strGrid[1][3] = "S";
strGrid[3][1] = "S";
strGrid[2][0] = "S";
strGrid[0][0] = "S";
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How would you get the value 6 out of the following array
int[][] a = { {2, 4, 6, 8}, {1, 2, 3, 4}};?
a[0][3]
a[1][3]
a[0][2]
a[2][0]
a[3][1]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given the following code segment, what is the value of sum after this code executes?
4
8
9
12
10
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following code segment, what is the value of sum after this code executes?
{{2 3 3},{1 2 3},{1 1 2},{1 1 1}}
{{2 1 1},{3 2 1},{3 3 2},{3 3 3}}
{{2 1 1 1},{3 2 1 1},{3 3 2 1}}
{{2 3 3 3},{1 2 3 3},{1 1 2 3}}
{{1 1 1 1},{2 2 2 2},{3 3 3 3}}
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given the following code segment, what is the value of sum after this code executes?
4
6
9
10
20
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What are the contents of arr after the following code has been executed?
{{6, 4, 2},{2, 4, 6}}
{{3, 2, 1},{1, 4, 6}}
{{3, 2, 1},{1, 4, 8}}
{{4, 4, 2},{2, 4, 4}}
{{3, 2, 1},{2, 4, 4}}
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
20 questions
Information Management - QUIZ
Quiz
•
University
15 questions
GAME QUIZ!!
Quiz
•
University
20 questions
DIAGRAMAS UML DE CLASE
Quiz
•
University
18 questions
Lenguaje de Definición de Datos
Quiz
•
University
15 questions
Firewall and Network Security
Quiz
•
University
18 questions
PBO Inheritance Episode 2
Quiz
•
University
15 questions
DBC CHAPTER 3 - REVISION
Quiz
•
University
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
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