Complete the code to declare an array of integers with size 5.
int[] numbers = new int[1];The correct syntax to declare an array of size 5 in Java is using square brackets with the size inside: new int[5].
Complete the code to create a new node for a singly linked list with value 10.
Node node = new Node([1]);The node value should be an integer 10, not a string or null.
Fix the error in the code to link two nodes in a singly linked list.
node1.[1] = node2;prev or other incorrect field names.The correct field to link nodes in a singly linked list is next.
Fill both blanks to create an array and access its third element.
int[] arr = new int[1]; int value = arr[2];
The array is created with size 5 using [5]. The third element is at index 2, accessed with [2].
Fill all three blanks to create a linked list node, assign value 7, and link to null.
Node node = new Node([1]); node.[2] = [3];
next.next.Create a node with value 7, set its next pointer to null to mark the end of the list.
