Answer:
b. When an array is created, the number of elements must be placed in square brackets following the type of element being stored.
Explanation:
In Java an uninitialized array contains null values. Thus statement c is true as well.
Also generally for initializing and displaying array elements a for loop is used. Hence statement d is also correct.
In Java syntax for declaring an array is as follows:
Array declaration:
type [] array_name ;
Array instantiation(memory allocation):
type [] array_name = new array_name [size of array];
From the above it can be seen that the statement a is true and statement b is false as number of elements in array are not mentioned after the type.
Hence the correct answer is b.
, identify and describe a scenario where it would be
The correct answer is C. A die
Answer:
C. Denial of Service
Explanation:
Denial of service error occurs when the legitimate users are unable to access the system. They are then unable to access the information contained in the system. This can also be a cyber attack on the system in which user are stopped from accessing their personal and important information and then ransom is claimed to retrieve the attack. In such case system resources and information are temporarily unavailable to the users which disrupts the services.