Accurate Solutions
Save
Practice questions for this set
Learn 1/5 Study using Learn
a) base
b) b1 has type B
Choose an answer
class B
{
f() {}
}
class D: B
{
1 solution 2
new f() {}
}
Suppose you do D d = new D(); B b1
= d; B b2 = new B();
b1.f() runs the (a) version because
When an assembly is run:
Solutions logically contain (a) that
3 translating on the fly to machine 4
logically contain (b)
code is called
, Don't know?
Terms in this set (173)
solution a collection of projects
project a collection of source files that defines a single
assembly
assembly the compiled product of the project
Assemblies come in Debug and Release versions
Solutions logically contain (a) that a) projects
logically contain (b) b) source files
It is best if solutions ______ contain Physically
projects that ______ contain source
files
When a project is compiled: Source object files
files are translated into
When a project is compiled: Object Common Intermediate Language (CIL) code
files contain
When a project is compiled: Object appropriate assembly
files are combined into
When a project is compiled: CIL code
Assemblies contain
When a project is compiled: symbolic references to shared libraries
Assemblies typically contain
When an assembly is run: It is native machine code
translated on the fly into
, When an assembly is run: called just-in-time compilation
translating on the fly to machine
code is called
When an assembly is run: When a that library is loaded into memory (if it isn't already
symbolic reference to a shared there) and execution continues
library is encountered
When an assembly is run: shared DLLs
libraries are
Interoperability across languages is Multiple languages compile to CIL code
supported:
Interoperability across languages is The language of origin is irrelevent
supported: Once compiled to CIL,
A C# iterator is a method that a) IEnumberable<T> object
returns an (a) but which contains b) "yield return" statements
(b) statements but not "return"
statements
The compiler converts the iterator a) class that provides a Current property
into a b) a MoveNext method
Iterators permit a complete a) generating
separation between the problem of b) consuming
(a) a sequence and the problem of
(b) it.
"Delegate" is the C# term for a a)value by passing it as a parameter,
method that is used as a (3 things) b) returning it as a result,
c) or storing it in a variable.
A variable that contains a delegate declared just like any other variable
must be