Šī pārlūkprogramma vairs netiek atbalstīta.
Jauniniet uz Microsoft Edge, lai izmantotu jaunāko līdzekļu, drošības atjauninājumu un tehniskā atbalsta sniegtās priekšrocības.
Which of the following can be used to access the third element in an array?
myArray[3].
myArray[3]
myArray[2].
myArray[2]
myArray{3}.
myArray{3}
Which of the following choices describes the correct way to create a new integer array with three elements?
int[] myArray = new int[3];.
int[] myArray = new int[3];
int[] myArray = new int[2];.
int[] myArray = new int[2];
int myArray = new int[3];.
int myArray = new int[3];
Which of the following foreach statements is syntactically correct?
foreach
foreach (int value in values).
foreach (int value in values)
foreach (int value of values).
foreach (int value of values)
foreach (int value with values).
foreach (int value with values)
You must answer all questions before checking your work.
Vai šī lapa palīdzēja?
Vai nepieciešama palīdzība saistībā ar šo tēmu?
Vai vēlaties izmēģināt lietotni Ask Learn, lai noskaidrotu vai palīdzētu jums apgūt šo tēmu?