Ovido
Taal
  • Engels
  • Spaans
  • Frans
  • Portugees
  • Duits
  • Italiaans
  • Nederlands
  • Zweeds
Tekst
  • Hoofdletters

Gebruiker

  • Inloggen
  • Account aanmaken
  • Upgrade naar Premium
Ovido
  • Startpagina
  • Inloggen
  • Account aanmaken

c# chapter 7 part 1

A limitation of the foreach loop structure when used with arrays is ____?

it offers read only access

BinarySearch( ) is ____?

a method in the Array class

Given an array declaration of int anArray[1000], which of the following would be a valid call to a DisplayContents( ) method to send the full array into the method as an argument?

DisplayContents(anArray)

Given an array declared to hold 100 values, the smallest index that can be used with the array is ____?

0

If an array named num is dimensioned to hold 10 values, how would you store 50 in the 5th physical location?

num[4] = 50;

If you do not know how many entries will be stored with the array, you could dimension it ____?

large enough to hold the maximum number of entries

If you try to access the array using a negative index value, ____?

a runtime error will be generated

int [ ] anArray = new int [10];
int [ ] anotherArray = {6, 7, 4, 5, 6, 2, 3, 5, 9, 1};?

Array.Copy(anotherArray, 0, anArray, 0, 10);

int [ ] anArray = new int [10];
int [ ] anotherArray = {6, 7, 4, 5, 6, 2, 3, 5, 9, 1};?

45

int [ ] score = {86, 66, 76, 92, 95, 88};
for (int i = score.Length-1; i > -1; i--)

{

total += score[i];

}

Using the declaration above for score, what is added to total during the first iteration?

88

The index is also referred to as the ____ of the array?

subscript

To declare and instantiate memory for 4 exam scores that range in value from 0 to 100, the following declaration could be made ____?

int [ ] examScore = new examScore[4];

When two or more arrays have a relationship such that you are able to use the same subscript or index to refer to related elements in the arrays, you have ____ arrays?

parallel

Which of the following can be used to return an index of an item in an array?

LastIndexOf( )

Which of the following is a valid example of calling a method and sending it an array argument?

DisplayArrayContents(anArray);

Quiz
c# chapter 5 part 3
respiratory system
c# chapter 5 part 2
c# chapter 5 part 1
c# chapter 6 part 2
c# chapter 6 part 1
java chapter 14 part 3
java chapter 14 part 2
angie
java chapter 14 part 1
java chapter 13 part 2
java chapter 13 part 1
java chapter 12 part 2
java chapter 12 part 1
java 2 chapter 11 part 2
java 2 chapter 11 part 1
21st Reviewer
ANAT actions + trajet
UE4
UE4
UE4
Tyska glosor
Elektromagnatism begrepp
prov kapitel 1!
Avicultura
pompeo e crasso
interrogativos
concetti fondamentali del codice civile
Diritto privato
christmas memory verse.
PSP, Les Anxiolytiques
surfer girl
Kemins grunder
PR2 REVIEWER
ue3
Clara
Duits Schritt 50
UCSP REVIEWER
Ausiàs March
russo 1
Verbi
statistica
german 32
IWBRS
GW
Lengua temas 3 y 13
respiratory system
Ordi Pedia
Guess That Quote!
IPHP REVIEWER