Summary moc programming in c# 20483b

-
595 Flashcards & Notes
1 Students
  • This summary

  • +380.000 other summaries

  • A unique study tool

  • A rehearsal system for this summary

  • Studycoaching with videos

Remember faster, study better. Scientifically proven.

PREMIUM summaries are quality controlled, selected summaries prepared for you to help you achieve your study goals faster!

Summary - moc programming in c# 20483b

  • 1 module 1

  • What is the .NET Framework?
    CLR
    -Robust and secure environment for your managed code
    -Memory management
    -Multithreading

    Class Library
    -Foundation of common functionality
    -Extensible

    Development frameworks
    -WPF
    -Windows store
    -ASP.NET
    -WCF
  • The .NET Framework 4.5 provides three principal elements:
    The Common Language Runtime (CLR). 
    The .NET Framework class library. 
    A collection of development frameworks.
  • The CLR manages the execution of code and simplifies the development process by providing a robust and highly secure execution environment that includes:
    • Memory management.
    • Transactions.
    • Multithreading.
  • The .NET Framework provides several development frameworks that you can use to build common application types, including:
    Desktop client applications, by using Windows Presentation Foundation (WPF). 

    Windows 8 desktop applications, by using XAML. 

    Server-side web applications, by using Active Server Pages (ASP.NET) Web Forms or ASP.NET MVC. 

    Service-oriented web applications, by using Windows Communication Foundation (WCF).

    Long-running applications, by using Windows services.
  • int is how many bytes
    4
  • long is how many bytes?
    8
  • float is how many bytes?
    4
  • decimal is how many bytes
    16
  • char is how many bytes?
    2
  • bool is how many bytes?
    1
  • datetime is how many bytes?
    8
  • string is a sequence of characters using how many bytes per character?
    2
  • Visual C# is a type-safe language, which means that?
    the compiler guarantees that values stored in variables are always of the appropriate type.
  • Operators fall into the following three categories:
    • Unary. This type of operator operates on a single operand. For example, you can use the - operator as a unary operator. To do this, you place it immediately before a numeric operand, and it converts the value of the operand to its current value multiplied by –1.

    • Binary. This type of operand operates on two values. This is the most common type of operator, for example, *, which multiplies the value of two operands.

    • Ternary. There is only one ternary operator in Visual C#. This is the ? : operator that is used in conditional expressions.
  • operators table:
    Arithmetic +, -, *, /, %
    Increment, decrement ++, -
    Comparison ==, !=, <, >, <=, >=, is
    String concatenation +
    Logical/bitwise operations &, |, ^, !, ~, &&, ||
    Indexing (counting starts from element 0) [ ]
    Casting ( ), as
    Assignment =, +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=, ??
    Bit shift <<, >>
    Type information sizeof, typeof
    Delegate concatenation and removal +,
    Overflow exception control checked, unchecked
    Indirection and Address (unsafe code only) *, ->, [ ], &
    Conditional (ternary operator) ?:
  • Which rules apply to identifiers?

    An identifier can only contain letters, digits, and underscore characters.


    An identifier must start with a letter or an underscore.


    An identifier for a variable should not be one of the keywords that Visual C# reserves for its own use.
  • XAML stands for:
    Extensible Application Markup Language
  • Operators fall into the following three categories:
    Unary. This type of operator operates on a single operand. For example, you can use the - operator as a unary operator. To do this, you place it immediately before a numeric operand, and it converts the value of the operand to its current value multiplied by –1.



    Binary. This type of operand operates on two values. This is the most common type of operator, for example, *, which multiplies the value of two operands.



    Ternary. There is only one ternary operator in Visual C#. This is the ? : operator that is used in conditional expressions.
  • what are expressions?
    collections of operands and operators
  • What are operands?
    Operands are values, for example, numbers and strings. They can be constant (literal) values, variables, properties, or return values from method calls.
  • What are Operators?
    Operators define operations to perform on operands, for example, addition or multiplication. Operators exist for all of the basic mathematical operations, as well as for more advanced operations such as logical comparison or the manipulation of the bits of data that constitute a value.
  • can u use an unassigned variable?
    Visual C# does not allow you to use an unassigned variable.
  •  When the compiler sees the var keyword...
     it uses the value that is assigned to the variable to determine the type.
  • The new operator does two things:
    it causes the CLR to allocate memory for your object, and it then invokes a constructor to initialize the fields in that object. The version of the constructor that runs depends on the parameters that you specify for the new operator.
  • There are two types of conversions in the .NET Framework:

    Implicit conversion, which is automatically performed by the CLR on operations that are guaranteed to succeed without losing information.

    Explicit conversion, which requires you to write code to perform a conversion that otherwise could lose information or produce an error.
  • Visual C# prohibits implicit conversions that:
    lose precision
  • You cannot use a cast if the format of the data has to?
    physically change
  • What is "widening"
    converting a type to a more precise or wider range type i.e. int to long
  • The System.Convert class provides methods that
    can convert a base data type to another base data type. These methods have names such as ToDouble, ToInt32, ToString, and so on
  • What does the CLR handle
    Memory, exeptions, threading
  • What does types bring to you as developer
    validation, you cant store the wrong type into a certain type. Functionality, you can for example compare dates.
  • How can you exit a for loop
    break;
  • System.Convert class provides methods such as
    ToDouble, ToInt32, ToString
  • What cast exceptions can be thrown?
     InvalidCastExceptions.
  • How can you "skip" the rest of the current executed loop
    continue
  • Which arrays does C# support?
    single dimensional, multidimensional and jagged
  • If you need to manipulate a set of unlike objects or value types what can u use
    The types in System.Collections
  • Name some System namespaces
    System.IO
    System.Web
    System.Data
    System.Windows
  •  Arrays in Visual C# have the following features:
    • Every element in the array contains a value.
    • Arrays are zero-indexed, that is, the first item in the array is element 0.
    • The size of an array is the total number of elements that it can contain.
    • Arrays can be single-dimensional, multidimensional, or jagged.
    • The rank of an array is the number of dimensions in the array.
  •  You can use the ????? property of the array to determine when to stop the loop.
    Length
  • Start Debugging can be started with keyboard shortcut
    F5
  • Break All can be started with keyboard shortcut
    ctrl+alt+break
  • Stop debugging can be activated with keyboard shortcut
    shift F5
  • restart keyboard shortcut?
    Ctrl+Shift+F5
  • Step into keyboard shortcut
    F11
  • Step over keyboard shortcut
    F10
  • Step Out keyboard shortcut
    Shift F11
Read the full summary
This summary. +380.000 other summaries. A unique study tool. A rehearsal system for this summary. Studycoaching with videos.

Example questions in this summary

Which rules apply to identifiers?
1
The .NET Framework 4.5 provides three principal elements:
1
The .NET Framework provides several development frameworks that you can use to build common application types, including:
1
XAML stands for:
1
Page 1 of 149