Chapter 2 Flash Cards - Part 2
Chapter 2 Flash Cards - Part 2
Keyboard
How do you Show the
Length of a String
Length of a String
Length of a String
IndexOf() method
How do you Concatenate a
String to another String
Concatenation
Concatenation
You concatenate strings by using the + operator. For string literals and
string constants, concatenation occurs at compile time; no run-time
concatenation occurs. For string variables, concatenation occurs only at
run time.
How do you Loop through a
String
Loop through a String
Loop through a String
In C#, a function is a way of packaging code that does something and then
returns the value
What is A Subroutine or
Function Argument
Arguments
Arguments
Functions and subroutines operate similarly but have one key difference. A function is
used when a value is returned to the calling routine, while a subroutine is used when
a desired task is needed, but no value is returned.
What is A Subroutine or
Function Parameter
Parameters
Parameters
Parameters are the input for a function that are necessary for it to execute and produce a
result. Parameters are variables defined by name and type. They are specified in the function's
declaration.
What is a Function Return
Value
Return Values
Return Values