INFO5060 - Exam Flashcards

1
Q

Assemblies contain compiled code in what format?

A

Common Intermediate Language (CIL)

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

What are assemblies?

A

.NET components

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

What translates CIL to machine code at runtime?

A

Common Language Runtime (CLR)

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

What file extension does a library have?

A

.dll

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

What is reflection?

A

Obtaining assembly metadata at runtime

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

What is the high-level metadata about an assembly called?

A

Manifest

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

ildasm.exe

A

CIL Disassembler used to view assembly metadata

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

What are the 2 scenarios for assembly binding?

A
  1. CLR learns about required library from manifest
  2. CLR instructed to load library from client code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you redirect the CLR to look for a library somewhere other than the client folder?

A

.json configuration

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

Where is the library assembly loaded into memory?

A

It shares the dedicated memory of the client that calls it.

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

Can 2 executables share the same library?

A

No, each gets its own copy in memory.

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

What is included in a signed assembly?

A

Fully-qualified or strong name (encrypted signature)

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

What is meant by “lifetime of managed objects is nondeterministic”?

A

Don’t know when it will be released or destroyed because it is handled by the garbage collector

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

What are 2 examples of unmanaged resources?

A
  1. Files
  2. Database connections
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you deal with unmanaged resources?

A

Dispose pattern

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

What interface is implemented to finalize unmanaged objects?

A

IDisposable

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

How do you specify a Finalize method?

A

Destructor (~)

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

What is early binding?

A

Client gets type information at design time
(adding a reference)

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

What is late binding?

A

Client gets type information at runtime

20
Q

gRPC

A

Google Remote Procedure Call

21
Q

What is an advantage of gRPC over WCF?

A

gRPC is platform agnostic

22
Q

What do gRPC use to implement contracts?

A

Protocol Buffers

23
Q

What is the file type for a Protocol Buffer?

A

proto

24
Q

What is another way to say Protocol Buffer?

A

protobuf

25
Q

What keyword is used to declare a protobuf’s interface?

A

service

26
Q

What keyword is used to define a method in a protobuf?

A

rpc

27
Q

What keyword is used to declare an object in a protobuf?

A

message

28
Q

What keyword is used to declare an array in a protobuf?

A

repeated

29
Q

What keyword is used to declare a stream in a protobuf?

A

stream

30
Q

What is the alternative to a uint32 datatype in protobuf?

A

fixed32

31
Q

What kind of instancing does gRPC use?

A

per-call

32
Q

Why is it best to design stateless service objects with gRPC?

A

New service object is made with each call

33
Q

WCF

A

Windows Communication Foundation

34
Q

SOA

A

Service-Oriented Architecture

35
Q

What else is SOA known as?

A

The Service Model

36
Q

What is the premise behind the service model?

A

Separates the code that implements the service from the code that describes how the client will use and access it

37
Q

ABCs of WCF

A

Address
Binding
Contract

38
Q

What is the address service endpoint in WCF? (Where)

A

Location and Name

39
Q

What is the binding endpoint in WCF? (How)

A

Transport protocol

40
Q

What is the contract endpoint in WCF? (What)

A

Interface or class describing messages

41
Q

What are the 2 types of WCF contracts?

A
  1. ServiceContract
  2. DataContract
42
Q

What attribute is used to decorate the WCF interface?

A

[ ServiceContract ]

43
Q

What attribute is used to decorate the WCF interface methods?

A

[ OperationContract ]

44
Q

What attribute is used to select a context mode?

A

[ ServiceBehaviour(params) ]

45
Q

What is a duplex channel?

A

Supports client-to-server and server-to-client rpc