C# Flashcards

1
Q

A function (C#)

A

A piece of code that executes according to the code. Sometimes called events:

private void button1_Click(object sender, EventArgs e)
{
XXXXXXXXXXXXXXXx
}

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

when the equal sign (=) is used in programming it is called?

A

Assign sign

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

Assigning text in a box:

A

textBox1.Text = “insert text here”;

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

Creating a new variable in a console application:

A

int NameOfTheVariable = 8

8 could be any number. When you want to use the variable later, refer to it with the name you made, in this case “NameOfTheVariable”.

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

Making a number appear in a console application:

A

Console.Write(3)

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