Semper Phone


  • Improve effortlessly – just by living your life
  • Learn while waiting for your apps to load
  • Recommended by 5 universities
  • Community of over 1,000,000 learners
  • 50,000+ expert-made packs, or create your own
"One of the best learning apps" - CNET
  • Apple Play Store
  • Install Semper from the Play Store
C# Programming

C# Programming

Last update 

Items (93)

  • Decleration statement

    A statement that creates a variable used to store data.

  • Expression statement

    A statement that performs calculations

  • if-then statement

    A statement that executes other statements, based on particular conditions being met.

  • for, while or do statement

    A statement that executes a group of statements one or more times.

  • white space

    One or more consecutive spaces, tabs or line breaks.

  • block

    A group of one or more statements that are enclosed in braces, beginning with a opening brace ({) and ending with a closing brace (}).

  • identifier

    A word that you make up to refer to a C# programming element by name.

  • comment

    Text that provides explanations of your code.

  • single-line comment

    A comment that begins with the sequence // and ends at the end of the line.

  • delimited comment

    A comment that spans multiple lines so it begins with the sequence /* and ends with the sequence */.

  • class

    Code that defines the behavior of an object.

  • object

    An instance of a class

  • instance variable

    A variable that any method in a class can access.

  • What 4 pieces of information do you need to declare an array?

    Type, Name, Dimensions, and Size

  • What are the four types of arrays?

    Single-Dimension, Jagged, Two-Dimensional, & Multi-Dimensional

  • This array is initialized at declaration time with explicit values.

    Single Dimension Array ex: int[] myInts= {5, 10, 15 };

  • This is an array of arrays which consists of the primary array and sub arrays. This array will only allocate memory for the size of each array in each dimension that you define.

    Jagged Array

  • In this array where each dimension is seperated by a comma and must also be instantiated by the "new" operator.

    Two-Dimensional Array

  • This array will allocate memory for every element of each dimension.

    Multi-Dimensional Array

  • A storage location for data. You can place data within them and retrieve their contents.


  • List the 5 simple types

    Boolean, Integrals, floating point, decimal & string

  • list the 5 different integral types.

    byte, short, int, long, char

  • When are floating point types used?

    when you need to perform operations requiring fractional representations.

  • when are decimal types used?

    when you need to perform financial calculations to avoid rounding errors.

  • How do you represent the verbatim literal in a string

    with the @ symbol

  • What are the three types of if statements?

    if, else if, & else

  • What type of values can a switch statement operate on

    booleans, enums, integral types, and strings.

  • What are the four types of loops?

    While, Do, for, foreach

  • This loop will check a condition and then continue to execute a block of code as long as the condition evaluates to a boolean value of true

    The While loop

  • What is the difference between the Do and While loop?

    the do loop check its condition at the end of the loop. This means that the do loop is guaranteed to execute at least one time. The while loop evaluates its expression at the beginning of the loop.

  • When are for loops appropriate?

    When you know exactly how many times you wish to perform the statements within the loop.

  • What is a struct?

    A value type. Value types hold their value in memory where they are declared.

  • What is an exception?

    An unforeseen error that happen in your programs

  • What is the number range of a byte (Byte)?

    0 to 255

  • What is the number of an sbyte (SByte)?

    -128 to 127

  • What is the number range of a short (Int16)?

    -32,768 to 32,767

  • What is the number range of a ushort (UInt16)?

    0 to 65,535

  • What is the approximate number range of an int (Int32)?

    -2 billion to over 2 billion (2,147,483,647)

  • What is the approximate number range of a uint (UInt32)?

    0 to over 4 billion

  • What is the approximate number range of a long (Int64)?

    -9 quintillion to over 9 quintillion

  • What is the number range of a ulong (UInt64)?

    0 to nearly 18.5 quintillion

  • What is the type and number range of a float (Single)?

    A non-integer with approximately 7 significant digits  Examples: 10.43223, 0.241055

  • What is the type and number range of a double (Double)?

    A non-integer with approximately 14 significant digits Example: 3.1415926535898

  • What is the type and number range of a decimal (Decimal)?

    A non-integer with up to 28 significant digits (that can represent values up to 7.9228 x 1028)

  • How many values can a char (Char) hold?

    Just one - holds a single Unicode character

  • What values can a bool (Boolean) hold?

    true or false

  • Displays text on a form


  • Template

    Determines the initial files, assembly references, code, and property settings that are added to the project.

  • Text Box

    Allows user to enter text on a form

  • Button

    Initiates form processing when clicked

  • Property

    Value that determines how the control will look and work when the form is displayed.

  • The sequence in which the controls will receive the focus when the use presses the tab key.

    Tab order

  • Dotted line indicating the current control has been selected.


  • Shortcut keys that user can use in combination with the Alt key to quickly move between individual controls on a form.

    Access keys

  • Self-contained code that combines code and data.


  • Code that defines that characteristics of an object.


  • A new class that inherits the characteristics of the form class of the .NET Class library.


  • The process of creating an object from a class.


  • An operation that an object can perform.


  • Signals sent by an object to the application telling it that something has happened that can be responded to.


  • The properties, methods, and events of an object.


  • A property or method that you can refer to directly from a class.

    Static Member

  • These work by responding to events that occur on objects.

    Event-driven application

  • A special type of methods that handles an event.

    Event handler

  • A statement generates by Visual Studio that wires the event to the event handler.

    Event wiring

  • Generated when the object is double-clicked in the form designer.

    Method declaration

  • Consists of the object name, an underscore, and the event name.

    Method name

  • Displayed by Intellisense when you start to enter a new line of code.

    Completion list

  • Ends with a semi-colon.


  • Indicated by "//"

    Single line comment

  • Allow you to move quickly between lines of code.


  • When an application encounters a runtime error, it enters _______.

    Break mode

  • To display a ________ for a property or variable, move the mouse pointer over it in the C# code.

    Data Tip

  • A __________ runs in its own window and consists of one of more windows forms that provide the user interface.

    Windows Forms application/Windows appliacation/WinForms app

  • Each windows form contain ________________ like labels, text boxes, buttons, and radio buttons.

    Windows Forms control

  • _____________ is a suite of products that includes the .NET Framework and an IDE.

    Visual Studio

  • Provides a library of code that supports all three programming languages(Visual Basic, Visual C#, Visual C++).

    .NET Framework

  • Provides files that contain pre-written code known as classes that are available to all of the .NET programming languages.

    .NET Framework class library

  • Related classes are organized into a group called a ___________.


  • Manages the execution of .NET programs by coordinating essential functions such as memory management, code execution, security, and other services.

    Common Language Runtime (CLR).

  • Contains and consists of source files


  • Contains the code after it has been translated into MSIL


  • Contain C# statements

    Source File

  • Translates the C# code for a project in Microsoft Intermediate Language

    C# compiler

  • Contains one or more project files


  • A C# project is saved with this extension.


  • A solution is saved with this extension.


  • The main visual studio workspace contains one or more __________.

    Tabbed Window

  • To develop a form, you use the ___________

    Form Designer/Form Designer Window

  • Use this to add controls to a form


  • To change the way a form looks or operates, use the _____________.

    Properties window

  • This can be accessed by double-clicking on a control or by selecting the form in the Solution Explorer and clicking the View Code button.

    Code Editor

  • Each form is defined by two C# source files where each file contains a ____________.

    Partial Class