Answer:
This question required option (See Explanation)
Explanation:
Required
How to declare 2D array
Using Java as a programming language of reference, the syntax to declare a 2D array is:
Data-Type [][] Array-Name = new Data-Type[Rows][Column]
From the question, the data type is String. So, the syntax becomes
String [][] Array-Name = new String[Rows][Column]
Assume the array name is: myArray; The above becomes
String [][] myArray= new String[Rows][Column]
<em>I will not assume values for Rows and Column, but it is worth saying that Rows and Columns are positive integers greater than 1 to make the array a 2 D array</em>
Answer:
Center Processing Unit ....
A USB drive is portable and can be used.
Answer:
phrase[2:5]
Explanation:
Given:
The above code segment
Required
Which instruction returns 'u a'
First, we need to get the index of u in the phrase:
u is at the third position but in programming, index starts at 0.
So, u is at index 2
Next, we need to get the index of a in the phrase:
a is at index 4
One of the ways to return a sub string from a string in python is ![string[start:stop+1]](https://tex.z-dn.net/?f=string%5Bstart%3Astop%2B1%5D)
Where:
----- index of u
----- index of a
phrase ---- The string variable
So, the instruction that returns 'u a' is: ![phrase[2:5]](https://tex.z-dn.net/?f=phrase%5B2%3A5%5D)
<em>Where 5 = 4 + 1</em>