Chapter 10 Flashcards

1
Q

What are anonymous methods

A

They do not have name but there body exists.

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

Where we use anonymous methods

A

Where we want to use function address/delegates.

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

How we use anonymous methods

A

btnHello.Click +=
delegate {
Message.Show(“Hello”);
}

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

What is nullable value type

A

Such type which can contain values or can also null

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

How we can declare nullable value type

A

DateTime? startDate;

int? unitsInStock = 5;

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

What is the meaning of this statement

A

int availableUnits = unitInStock ?? 0;

If there is null in unitInstock then use value after ?? otherwise use value of untiInStock

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

What is XML

A

Extendable markup language - A language in which we can represent many things in structured way in a specific format. This file is readable both for human and machine.

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

What are 2 types of tags in XML

A

Tag with body

Tag without body

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

What is xPAth language

A

xPAth language is the language that read nodes from XML

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

What does XMLdoument do

A

It treats with complete document as a whole

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

What does xmlReader and xmlWriter do

A

It read and write XML docs node by node

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