C# and Windows Forms Key Vocabulary

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/49

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key C# concepts and Windows Forms controls and events from the notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

50 Terms

1
New cards

Semicolon

Each C# statement ends with a semicolon.

2
New cards

Case sensitivity

C# treats myVariable and MyVariable as distinct identifiers.

3
New cards

Braces

Braces define blocks and scopes for classes methods and control structures.

4
New cards

using System;

Directive that allows access to the System namespace and basic libraries.

5
New cards

class

A container that defines a new type by grouping data and methods.

6
New cards

Main

The program entry point typically defined as static void Main().

7
New cards

Console.WriteLine

Writes text to the console and adds a new line.

8
New cards

Identifier

Names given to variables classes methods and other elements.

9
New cards

Keywords

Reserved words like int string if class cannot be used as identifiers.

10
New cards

PascalCase

Naming convention with capitalized words for class and method names.

11
New cards

camelCase

Naming convention with a lowercase first letter for variables.

12
New cards

const

Declares a constant value that cannot be changed.

13
New cards

readonly

Declares a field that can be assigned only once.

14
New cards

Implicit conversion

Automatic conversion when there is no data loss risk.

15
New cards

Explicit conversion

Casting required when converting to a smaller type or risking data loss.

16
New cards

Casting

Explicit type conversion using syntax such as (Type) value.

17
New cards

Value types

Types that store data directly such as int float bool and char.

18
New cards

Reference types

Types that store references to data such as string object arrays and classes.

19
New cards

int

Most common integer type four bytes with range minus 2 147 483 648 to 2 147 483 647.

20
New cards

long

Larger integer type for bigger numbers.

21
New cards

short

Smaller integer type for compact ranges.

22
New cards

byte

Unsigned 8 bit integer.

23
New cards

float

Floating point type using four bytes with an f suffix on literals.

24
New cards

double

Default floating point type with higher precision.

25
New cards

decimal

High precision floating type used for financial calculations.

26
New cards

f suffix

Suffix f on numeric literals to denote a float such as 3.14f.

27
New cards

bool

Boolean type with true or false values.

28
New cards

char

Unicode character type using single quotes such as 'A'.

29
New cards

string

Sequence of characters and a reference type defined with double quotes.

30
New cards

Immutability

Strings are immutable and operations return a new string.

31
New cards

Length

Property on string that returns the number of characters.

32
New cards

ToUpper

Converts a string to uppercase.

33
New cards

ToLower

Converts a string to lowercase.

34
New cards

Substring

Returns a portion of a string.

35
New cards

const double PI

Example of a constant declaration for a numeric value.

36
New cards

Modeless form

A form shown with Show that does not block interaction with other forms.

37
New cards

Modal form

A form shown with ShowDialog that blocks until closed.

38
New cards

ListBox

Control that displays a list of items for selection.

39
New cards

ComboBox

Control that shows a dropdown list and may allow text input.

40
New cards

CheckBox

Control for binary selections with multiple boxes allowed.

41
New cards

Items.Add

Adds an item to a list control items collection.

42
New cards

Items.Remove

Removes a specific item from a list control items collection.

43
New cards

Items.Clear

Removes all items from a list control.

44
New cards

SelectedIndexChanged

Event fired when the selected index changes.

45
New cards

DropDownStyle

Property that controls how a combo box displays its list.

46
New cards

SelectedItem

Property representing the currently selected item.

47
New cards

SelectedIndex

Property representing the index of the current selection.

48
New cards

Label

A control that displays text often named lblName.

49
New cards

Button

A clickable control often named btnSubmit.

50
New cards

PasswordChar

Property on a TextBox that masks input such as an asterisk.