
array read and access
Quiz
•
Computers
•
University
•
Medium
ZURAIDAH Moe
Used 5+ times
FREE Resource
Enhance your content
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Grace is a computer science student who needs to create an array of student ids for her project. The ids she needs to include are 115331, 450055, 555641, 875560, and 987555.
int [ ] id = new {115331, 450055, 555641, 875560, 987555};
int [5] id = {115331, 450055, 555641, 875560, 987555};
int [ ] id = {115331, 450055, 555641, 875560, 987555};
int [ ] id = new int [5];
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Hannah is working on a Java project where she needs to create an array of subject codes for her classes. The subject codes are S, M, C, P, I, and K. How should she declare this array in Java?
char [ ] code = {'S', 'M', 'C', 'P', 'I' and 'K'};
char [ ] code = {S, M, C, P, I, K};
char [ ] code = {"S", "M", "C", "P", "I", "K"};
char [ ] code = {'S', 'M', 'C', 'P', 'I', 'K'};
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Java code to display the size of an array name studentname[ ] which contains the names of students in a class, including Abigail, Charlotte, and Harper.
System.out.println("The size is " + studentname[ index ]);
System.out.println("The size is " + studentname.length);
System.out.println("The size is " + length.length);
System.out.println("The size is " + studentname);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Java code to display all elements of array studentname[ ].
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Java code to read elements into array studentname[ ].
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Java code to read elements into array customerid[ ].
None of the above is the right answer.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A code segment to identify the largest element in an array.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
ข้อสอบย่อยวิชา จาวาเว็บ ครั้งที่ 6
Quiz
•
University
10 questions
0xDebug - Python
Quiz
•
University
15 questions
WizQuiz
Quiz
•
University
10 questions
Quiz 1 - AK2 Section
Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ
Quiz
•
University
10 questions
KIỂU DỮ LIỆU CÓ CẤU TRÚC
Quiz
•
11th Grade - University
10 questions
Programming in C
Quiz
•
University
15 questions
Quiz Struktur Data
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University