Chapter 4 Flashcards

1
Q

What is difference between byte code and instruction set

A

both are same thing but instruction set is compiler dependent.

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

What is JAVA virtual machine

A

Byte code to instruction set is called Java virtual machine. It gives plate form independence. It also controls memory allocation.

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

What is JIT

A

Just in time compilation means only compile the part which is necessary

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

What is garbage collection

A

It deletes such memory locations which are not referred

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

What is COM

A

component object model, Microsoft component based programming. Its basic purpose is OLE (object linking and embedding)

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

What are ActiveX controls

A

These are com objects

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

What is clean room implementation

A

We take a program, reverse engineer it and write its specifications. And then write a program from scratch by following these specifications. In this way, we are not copying anything and no illegal activity and copyright problem. C# is a clean room implementation of JAVA by microsoft.

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

C# is strict Boolean. What is strict Boolean

A

Either it takes true or false

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

Is C# totally garbage collected

A

Yes

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

Does C# have multiple inheritance

A

No

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

What are 2 common types in C#

A
  1. Value type (No referential identity)

2. Reference type (Referential identity and referential identity get compared)

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

What is boxing and unboxing

A

int foo = 42; // value type
object bar = foo; // foo is boxed
int foo2 = (int)bar; // unbox back

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