
FCPC - Array - PAct3

Quiz
•
Computers
•
University
•
Hard
ALVIN CERTEZA
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is FALSE about arrays on Java
A java array is always an object
Arrays in Java are always allocated on heap
Length of array can be changed after creation of array
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the length of the following array: byte[] data = { 12, 34, 9, 0, -62, 88 };
1
6
5
12
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
class Demo1
{
public static void main(String args[])
{
int i[] = new int[10];
System.out.println(i[10]);
}
}
0
Out-of-bounds exception
Garbage Value
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
_________________ is a collection of elements used to store the same type of data.
Array
Case
Switch
Loop
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the first index of an array?
1
2
3
0
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int [] nums = {2, 3, 5, 8, 9, 11};
How would you access the fourth element in nums?
nums[4]
nums(4)
nums[3]
nums(3)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
An array declaration can optionally omit the new specifier and explicit size setting if it contains a comma-delimited _______________ inside a set of _______________ after the assignment operator, which will imply its size.
initialization list, parentheses
initialization list, curly braces
parameter list, parentheses
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
C++ Array Quiz

Quiz
•
University
11 questions
Java Quiz 3 - Array

Quiz
•
University
20 questions
Linux 3-4

Quiz
•
University
10 questions
Programming for Problem Solving

Quiz
•
University
15 questions
Array Java

Quiz
•
University
12 questions
Array

Quiz
•
University
10 questions
Java Basics

Quiz
•
University
10 questions
Struktur Data

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University