CMS and C# basics Flashcards

1
Q

What does CMS stand for?

A

Content Management System.

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

What is a CMS?

A

CMS is a software that is used to create and modify content on a website.

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

Give some examples of CMS.

A

Umbraco, wordpress, wix, sitevision, joomla

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

What is C#?

A

It is an object-oriented programming language. It is open source and cross-platform.

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

What is C# built on?

A

The .NET platform developed by microsoft

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

When was C# invented and what other languages influenced it?

A

C# was invented in 2000 and influenced by C++, Java and other early languages.

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

Why use C#?

A

You can build different software applications with one single language.

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

Name some use cases for C#:

A

Web applications, API, games, iphone and android apps, windows applications, blockchain.

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

Name and describe the four components that make up C# syntax:

A

Usings are namespaces from which we will use classes in our application.
Namespaces are a way of organizing code into different areas.
Classes are descriptions of objects used in the application.
Methods are the executable parts of the application.

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

There are several built in types in C#. Name and describe the most common types:

A
String (regular text) 
Int (whole number) 
Decimal (number with decimals) 
Double (number with decimals) 
Bool (true or false).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

There are several ways to merge strings, name them

A

+ operator
+= operator
string interpolation (similar to JS string interpolation).

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

Explain the numeric operators

A

++ (increase by one)
– (decrease by one)
+= (add to existing)
-= (remove from existing)

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

How do you add items to a list in C#?

A

Use Add() to add a single item to a list or AddRange() to add multiple items.

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

Name and describe some useful List methods in C#

A

Contains() check if the list contains a specific item

Remove() remove a specific item from the list

Clear() clears all items from the list.

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

What are the two types of conditional operators?

A

Comparison operators and Logical operators.

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

Name and describe the comparison operators

A
== (equals) 
!= (do not equal) 
> (more than) 
>= (more than or equal) 
< (less than) 
<= (less than or equal).
17
Q

Name and describe the logical operators

A

! (not)
|| (or)
&& (and)

18
Q

Name the types of loops in C#

A

For loop, While loop and Foreach loop

19
Q

What is a basic For loop?

A

for (var i = 0; i < 10; i++) {

}

20
Q

What is a basic While loop?

A
var count = 0;  
while (count < 10)
      { 
          count ++; 
}
21
Q

What is a basic Foreach loop?

A
List  cities = new() {  
“Jönköping”,  
“Gothenburg”,  
“Stockholm” 
};  

foreach (var city in cities)
{
Console.WriteLine(“Current city is {city}”);
}

22
Q

How do you break a current loop?

A

Write break; inside the loop.

23
Q

How do you continue to next item in a loop?

A

Write continue; inside the loop.

24
Q

What is LINQ?

A

LINQ stands for Language INtegrated Query. It is integrated in C# and is used to retrieve data from several different sources.