1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
string length of the string “computer science”
“computer science”.Length
position of “m” in “computer science”
“computer science”.IndexOf(“m)
output ‘Programs’ from the string t = “Computer Programs”
Console.WriteLine(t.Sunstring(9, 8));
in a substring what does the 1st number in the brackets show
the 1st letter wanted
in a substring what does the 2nd number in the brackets show
length of the word wanted - can omit if want everything after a certain point
how do you declare an array ( call it array1 and it should hold 5 numbers)
int [ ] array1 = new int [ 5 ];
assign the values 2,4,6,8,10 to array1
array1 = new int [ ] {2, 4, 6, 8, 10};
how to find length of a 1 dimensional array called primes
primes.Length
how to find length of a 2D array called t
t.GetLength
assign a value to a field in a record - the field name is model, the record name is myCar and the value to assign is “Fiesta”
myCar.model = “Fiesta”;