Chapter 5 Flashcards

1
Q

What is compiler of c sharp

A

csd (c sharp compiler)

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

What console.readln do

A

It gets all input and returns a string

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

What is escape character

A

\

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

What is verbatim character

A

It is @. It uses at the start of string. When we use it, it disables functionality of \ and take it as a string

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

What are 2 types of multidimensional arrays

A
  1. Jagged Array (arrays of arrays)

2. multidimensional arrays

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

If I do not give size of an array what C# do

A

It allocated its size by itself by checking the array length.

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

The modifier of method ‘static’ do what

A

It makes static class method and there is no need to instance

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

What is ref qualifier

A

Value is passing through reference. And if it modifies the value then value will be modified.

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

What is out

A

It becomes out parameter. The method which changes value of that parameter. It sends out the changed value to sender. We use it in case of when we need to return multiple parameters.

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