C# Flashcards

1
Q

String Concatenation

A

“Hello” + var

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

String Formatting

A

String.format(“Hello {0}”, var)

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

String Interpolation

A

$”Hello {name}”

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

Verbatim Strings

A

verbatim string starts with @ and tells the compiler to take the string literally and ignore any space or escape characters; great for file paths

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

Escape Characters

A

\n : next line

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

class

A

blueprint of an object; has properties and methods

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

class example AUDI

A

properties: doors, wheels; abilities: drive, light; inheritence: A5 < Audi < Car

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

diff between class and instance / member variables

A

class variables are static and belong to the class; instance variables belong to instantiated objects of the class

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

Intellisense

A

IDE’s autofill dropdown when writing code

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

full specification constructor vs partial specification constructor

A

all instance variables are defined in constructor vs not all instance variables are defined

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

Encapsulation

A

Core principle of OOP; Hiding of data and restriction of access within a class from its outside environment; for example, can be done by using private keyword and using getters and setters; reduces complexity (parts of the class don’t need to know about certain state of the object); c# uses properties for controlled access (can autogen)

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

python virtual env (create and activate command)

A

python -m venv .env ; .env/Scripts/activate

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

pip install modules command

A

pip install -r [file name + ext]

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

Hugging Face and NLP

A

field of linguistic + ML: voice-to-text, translation etc.

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

ML

A

teaching computers on task without explicit instructions; one popular method is giving computer large amount of data and with signals, it will teach itself to predict the goal of the task; the result is a model which takes input similar to trained data and returns what it thinks is the expected answer

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

OOP Principles

A

Abstraction, polymorphism, inheritance, encapsulation

16
Q

Encapsulation

A

What: info hiding, data and method bundling
Benefit: better decoupling, access restriction

17
Q

Polymorphism

A

What: substitutability, dynamic runtime behavior
Benefit: extensibility

18
Q

Inheritance

A

What: reuse behavior > duplicate code
Benefit: spend time coding efficiently to solve similar problems

19
Q

Abstraction

A

contract to concretion
What: model concepts
Benefit: simplify api usage

20
Q

transformers / transformer library

A

ML models that are self-supervised trained on large amounts of data; transformer library is an api that has a wide selection of transformer models

21
Q

encoding / decoding

A

encode: translate text to numbers; decode: translate numbers to text

22
Q

tokenizer

A

converts text to rectangles to send to tensor, has a vocabulary (e.g. english), has encode decode methods

23
Q

.NET framework vs .NET core

A

.NET framework is microsoft only

24
Q

what is framework

A

reusable design platform

25
Q
A
26
Q
A
27
Q
A