C# Programming Flashcards

1
Q

Write out an {empty} For loop

A

for [int i = 0, __.length> i,i++]
{ }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Write out an {empty} conditional statement

A

if ( __ = = 0)
{ }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Write out an {empty} Function that returns a string

A

static string functionName(parameter)
{ }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Random number generation

A

Random rnd = new Random();
Int variable = rnd.next(min,max+1);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Arrays

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly