C# Flashcards

1
Q

C# pronounced as

A

C-Sharp

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

It is an object-oriented programming language provided by Microsoft that runs on .Net Framework.

A

C#

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

different types of secured and robust applications that we can develop:

A

Window applications
Web applications
Distributed applications
Web service applications
Database applications etc.

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

Who Developed C#

A

Anders Hejlsberg

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

The development of C# started in the _________

A

late 1990s

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

It was influenced by several programming languages like

A

c++
Java
Delphi

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

History: In order

A

1999
2000
2002
2003
2007
2010
2012
2015
2019
2020

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

Anders Hejlsberg and his team at Microsoft began developing C#

A

1999

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

C# was officially announced in July 2000 at the Professional Developers Conference (PDC) hosted by Microsoft.

A

2000

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

C# 1.0 was released in 2002 alongside the .NET Framework 1.0, featuring basic language constructs, garbage collection, properties, and events.

A

2002

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

Generics, anonymous methods, and iterators, enhancing productivity and expressiveness

A

2003

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

C# 3.0 introduced Language Integrated Query (LINQ) along with lambda expressions, extension methods, etc,

A

2007

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

C# 4.0 was released with .NET Framework 4.0,

A

2010

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

C# 5.0 was released with .NET Framework 4.5, which brought asynchronous programming support.

A

2012

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

These versions introduced various features such as string interpolation, expression-bodied members, pattern matching, tuples, etc.

A

2015

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

Reference types, asynchronous streams, default interface methods, and more, aiming to improve safety, performance, and productivity.

A

2019

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

Records, init-only properties, top-level statements, and pattern matching enhancements, for productivity and code clarity.

A

2020

18
Q

IDE IN C#

A
  1. Visual Studio Code
  2. Rider
  3. Tutorialspoint
19
Q

8 Basic Syntax in C#

A
  1. The using keyword
  2. The class keyword
  3. Member variables
  4. Member Functions
  5. Statements
  6. Identifier
  7. Comments
  8. Console.WriteLine() and ReadLine()
20
Q
  • is the first statement in any C# program.
  • It is used for including the namespaces in the program.
  • A program can include multiple using statements.
A

USING KEYWORD

21
Q
  • is used for declaring a class.
  • Inside the class, you can define various members such as fields, properties, methods, constructors, and more.
A

CLASS KEYWORD

22
Q
  • are declared within a class and are used to store data associated with instances of that class.
  • It holds state information for objects of the class.
A

Member variables

23
Q

are declared within the class.

A

Member Functions

24
Q

are a set of statements that perform a specific task.

A

Functions

25
Q

is a source code instruction that declares a type or instructs the program to do something.

A

Statement

26
Q

A simple statement is terminated by a __________

A

semicolon (;)

27
Q

are names that you choose for variables, functions, classes, methods, and so on.

A

Identifiers

28
Q

TRUE OR FALSE: The alphabetic (a through z, A through Z) and underscore (_) characters can appear at any position.

A

true

29
Q

Digits can appear in the first position but everywhere else.

A

false (it cannot)

30
Q

3 types of comments in c#

A
  1. Single-line comments
  2. Delimited comments
  3. Documentation comments
31
Q

___________ method is used to print text to the console while Console.

A

Console. WriteLine()

32
Q

is used to read the complete string until the user presses the Enter key or a newline character is found.

A

ReadLine()

33
Q

Data types in c#

A
  1. Int
  2. float
  3. char
  4. long
  5. bool
  6. string
  7. double
34
Q

Stores whole numbers from -2,147,483,648 to 2,147,483,647

A

Int

35
Q

Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits

A

Float

36
Q

Stores a single character/letter, surrounded by single quotes

A

char

37
Q

Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

A

long

38
Q

True or false: You need to put ā€œLā€ at the end of a data type long.

A

True

39
Q

Stores true or false values

A

bool

40
Q

Stores a sequence of characters, surrounded by double quotes

A

String

41
Q

Stores fractional numbers. Sufficient for storing 15 decimal digits

A

double