C# Flash Cards

abstract method
A method that includes no implementation details (no method body) in the declaration. Abstract method declarations are permitted only in abstract classes.
What is an Array
A data structure that allows multitude values to be stored under a single identifier.
ASP.NET
The Microsoft programming frame work that enables the creation of applications that run on a Web server and deliver functionality through a browser, such as Internet Explorer
camelCase
A naming convention used for variable and object identifiers in C#. The first letter of the identifier is lowercase and the first letter of each subsequent concatenated word is capitalized (i.e., amountDue). Also called Hungarian notation.
What is C#?
Answer: C# (pronounced C sharp) is a modern, object-oriented programming language designed by Microsoft to build a wide range of applications that run on the .NET Framework.
What is .NET Framework?
Answer: The .NET Framework is a software framework developed by Microsoft that includes a large library of pre-built code and tools for developing and running applications on Windows.
What are the data types in C#?
Answer: C# supports various data types such as integer, float, double, char, string, boolean, etc.
What is the difference between value types and reference types in C#?
Answer: Value types store data directly on the stack, whereas reference types store a reference to the data on the heap.
What is a namespace in C#?
Answer: A namespace is a way of organizing code by grouping related classes and other types into a single logical unit.
What is a class in C#?
Answer: A class is a blueprint or template for creating objects that define a set of related methods, properties, and events.
What is an object in C#?
Answer: An object is an instance of a class that has its own set of values for the class's properties and fields.
What is inheritance in C#?
Answer: Inheritance is a mechanism in C# where one class can inherit the properties and methods of another class.
What is polymorphism in C#?
Answer: Polymorphism is a feature of object-oriented programming that allows objects of different classes to be treated as if they were objects of the same class.
What is an interface in C#?
Answer: An interface is a blueprint for a set of methods, properties, and events that a class can implement to provide specific behavior.
What is a constructor in C#?
Answer: A constructor is a special method in a class that is used to create and initialize objects of that class.
What is a destructor in C#?
Answer: A destructor is a special method in a class that is used to clean up resources used by objects of that class before they are destroyed.
What is an exception in C#?
Answer: An exception is an error condition that occurs during program execution and disrupts the normal flow of control.
What is a try-catch block in C#?
Answer: A try-catch block is a language construct in C# that is used to handle exceptions by enclosing the code that may throw an exception in a try block and catching any thrown exceptions in a catch block.
What is a delegate in C#?
Answer: A delegate is a type that represents a method signature, allowing methods to be passed as parameters or assigned to variables.
What is a lambda expression in C#?
Answer: A lambda expression is a shorthand syntax for defining anonymous functions in C#.
What is LINQ in C#?
Answer: LINQ (Language Integrated Query) is a set of language features in C# that provides a consistent way to query and manipulate data from different sources, such as databases, XML files, and collections.
What is a generic in C#?
Answer: A generic is a type or method that is parameterized with one or more type parameters, allowing it to work with a wide range of data types.
What is a collection in C#?
Answer: A collection is a data structure that holds a group of elements, typically of the same type.
What is a list in C#?
Answer: A list is a type of collection in C# that stores a sequence of elements and allows them to be accessed by index.
What is a dictionary in C#?
Answer: A dictionary is a type of collection in C# that stores a set of key-value pairs, where each key is associated with a unique value.
What is a foreach loop in C#?
Answer: A foreach loop is a language construct in C# that is used to iterate over the elements in a collection.
What is a List<T>
The List<T> is a collection of strongly typed objects that can be accessed by index and having methods for sorting, searching, and modifying list. It is the generic version of the ArrayList that comes under System.Collections.Generic namespace.