Final Exam Questions 2006
- According to Antonio Cisternino, the two essential elements
of the .NET platform are:
- Select the correct order of the CLR model:
- compile language into CIL, then compile CIL into executable,
then execute compiled program
- compile language into CLR, compile CLR into executable,
then execute compiled program
- compile language into CLR, then compile CLR into assembly,
then convert assembly to machine, then execute machine code
- compile language into CIL, then execute the CIL
- Explain what is meant by the term jagged arrays in the context
of C#.
- According to Antonio Cisternino, ____________ are a sort of
operator "field access" overloading and are a useful
abstraction to identify the get/set methods typically used in
Java.
- Select the C# operator that allows for iterating over a collection
of objects.
1) gothrough
2) iterover
3) typeof
4) foreach
- Select the name of the stack found on the IPAQs used in class.
1) Bluecomm stack
2) Microsoft stack
3) Widcomm stack
4) HP stack
- True or False: The .NET Compact Framework does not include
classes that provide managed access to the serial port on a
smart device.
- When interoperating with native code, memory management and
data conversions may need to occur when the flow of control
passes the managed/unmanaged boundary. What is the term for
performing these conversions?
1) invoking
2) marshaling
3) passing
4) mangling
- List the 3 major advantages of ADO.NET according to the textbook.
Pick one of these 3 advantages and explain it in more detail.
- What does SURVAB stand for?
A) Super Ultimate Remote Voice Articulate Bot
B) Super Ultra Remote Voice Action Bot
C) Super Ultra Remote Voice Action Bug
D) Super Ultimate Remote Vex Action Bot
- What does CF in Microsoft CF stand for?
- (T/F) Java and C# are extremely different.
- What kind of cable / adapter is required for connecting the
Vex robot to the PDA?
A) Ethernet
B) Null-modem serial
C) Straight serial
D) Bluetooth
- To work with databases in .Net, you often use a ______ to
hold data.
A) DataSet
B) SuperTable
C) MicrosoftSet
D) Box
- (T/F) .Net 2.0 contains a SerialPort class to communicate
via serial ports.
- Making a value type into an object type in .Net is called
______.
A) Punching
B) Shuffling
C) Karate
D) Boxing
- What is Bluetooth primary meant for?
A) Cell phones
B) Gaming
C) Replacing wires
D) Accessing the internet
- What is it called when a Bluetooth device connects with another
device?
- (T/F) Bluetooth is meant for medium to long range communication
- What are the three types of IC's?
- What is the difference between StringReader/Writer and Stream
Reader/Writer?
- What is the function of MemoryStream and write a piece of
code with length limitations?
- What are the four classes the .NET Compact Framework is composed
of?
- Fill in the following table
C# |
C/C++ |
Size(Bits) |
Int |
Int |
|
Short |
|
|
|
BITE |
8 |
char |
|
|
- In reference to deploying unmanaged DLL's, what is the process
that .NET goes through?
- (T/F) Value Types are relatively easy to marshal.
- What does bitable mean?
- List the stages of the functional overview of Bluetooth.
- Small data types stored on a stack describes what kind of
data type?
- What are the two types of code used in the Common Language
Runtime of the .NET Framework?
- What are the three types of communication/data links offered
through your pocket pc?
- What are three differences of the Full .NET Framework and
the Compact .NET Framework?
- What are four controls you can use with the .NET Compact
Framework?
- What are the phases of the RUP?
- To create a piconet the ________ gives the slave its _______
and device ID
- In piconet addressing how many bits are in Active Member
Addressing (AMA)?
- What are three common metrics?
- How many different power options does Bluetooth support?
- In Bluetooth what does PAN stand for and mean?
- ___________ is a compiler trick that consists in the generation
of special names for each C++ function based on the underlying
function name and its parameter list, which helps ensure that
overloaded C++ functions have distinct names for the linker.
- From the .NET point of view, unmanaged code functions are
_____________.
- Value types are relatively simple to marshal because, as
the name suggest, they are simple types whose value can typically
be held in a few bytes of storage. Reference types, such as
strings, arrays, and structures, are more complex to marshal
because they consist of a reference to an area of memory in
the _____________
- _______________ is the most important object in the ADO .NET
hierarchy. It is a container for data being held in memory.
- (T/F) Java is essentially a subset of C#.
- In C# types are organized in _____________ while in Java
they are organized in __________
- In memory management. ____________ allocation consists in
memory areas allocated during program loading.
- You call an unmanaged DLL by using ______________
- (T/F) There is support for printing in the Pocket PC operating
system
- C# introduces the _______________ keyword to control access
to a delegate member.
- What are three common characteristics of embedded systems?
- Bluetooth is what type of communication?
a. Infrared communication
b. Long range radio frequency
c. Short range radio frequency
d. Serial communication
- What does SURVAB stand for?
- What are three common metrics of an embedded system?
- What is Moore's Law?
- The .net compact framework is______.
a. managed code
b. unmanaged code
c. assembly code
d. native code
- What are the three key embedded system technologies?
- What are the four phases of RUP?
- T/F: Bluetooth is meant to be used as a wire replacement.
- What kind of stream does the tcpclient GetStream() method
return?
a. File Stream
b. TCP Stream
c. Network Stream
d. Client Stream
- What is an embedded system and why are embedded systems important?
Include examples of embedded systems.
- What is a design metric? Why is design metric optimization
important? Give at least three examples of design metrics.
- What are some advantages and disadvantages of a Bluetooth
implementation?
- What are some features of C# and what language is it very
similar to?
- What is the function of the Stream class in .NET and what
are three basic stream operations?
- In terms of the evolution of smart mobile computing devices,
briefly describe the general trend over time of the changes
to the following: price, number of units sold, weight, CPU speed,
amount of RAM and storage, and display properties.
- What is the importance of debuggers? Provide at least two
capabilities of debuggers to support your answer.
- What are Platform Invocation Services and what are they useful
for? (Hint: involves calling DLLs)
- When using P/Invoke, the CLR handles DLL loading and conversion
of the unmanaged legacy types to CTS types (this is called by
Microsoft parameter marshalling[1]). To perform this, the CLR
:
- In regards to parameter passing, C# is:
a. Pass-by-value
b. Pass-by-variable
c. Pass-by-reference
d. Pass-by-inference
- What is reflection in C#?
- The .NET framework is a revolutionary technology, what are
some of the components that position the .NET framework as a
competitive programming platform.
- What is the difference between managed code and native code?
- What are some limitations of the .NET Compact Frameworks
Forms versus the .NET (full framework forms)
- What is remote debugging, an advantage of it, and is it supported
in .NET?
- Define NRE and the challenge of balancing NRE and per-unit
costs.
- What is Moore's Law?
- Implementing Bluetooth on the PocketPC platform can be tricky,
why?
- Declaring n-dimension arrays (hint: not an array of an array)
in one line of code is possible in:
a. Java
b. C#
c. Both
- List 4 operators that can be used on enumerated types:
- Define a 'delegate'. Is it a function pointer?
- What are three common characteristics of embedded systems?
- What are three key technologies for embedded systems?
- What is the top level in .NET?
- What is Moore's Law?
- When did Osborne go bankrupt and why?
- Does .Net have a garbage collection?
- What embedded system rule is the key to pyramid schemes?
- What does RUP stand for?
- What are the phases of the RUP?
- Which phase of the Rational Unified Process requires the
most resources?
a. Inception
b. Elaboration
c. Construction
d. Transition
- Which of the following is not a main benefit of the .NET
platform?
a. Common type system
b. Garbage collection
c. Seamless communications
d. Execution Environment
- Which of the following is NOT a type of array in C#?
a. Single Dimensional
b. Multi Dimensional
c. Mixed Dimensional
d. Jagged
- Name two methods that are automatically added for C# class
properties:
- Bluetooth is a
a. Hardware protocol
b. Software protocol
c. Both
d. Neither
- Briefly describe the function of the following ADO.NET objects
(this can be done by providing the database analoge):
a. DataSet
b. DataTable
c. DataColumn
d. DataRow
- What are some advantages of XML for data storage?
- True or False: A delegate is a pointer to a method often used
for event handling.
- Briefly describe operator overloading and give an example.
- What specifically does Platform Invoke call into allow managed
code to interoperate with native code?
- Explain what the term "marshalling parameters" refers
to.
- Fill in the blanks. The answer is the same for both blanks
and may consist of more than one word. The answer is the name
of a system within the CLR:
The core of CLR is the ________. The ________ is responsible
for compiling CLI code into machine code using JIT.
- List the three primary steps for the overall model of CLR
for executing a program. This process starts with a file from
a language, involves CIL, and ends with the execution of a program..
- True or False: C#'s Type system is common rooted in the Object
type.
- True or False: All CLR types are accessible from C# and vice-versa.
- Match the following 3 terms to the 3 statements below (Static
allocation, Automatic allocation, Dynamic allocation):
1. _____ allocates room for local variables on the stack
2. _____ consists in memory areas allocated during program loading
3. _____ makes use of a memory area called heap handled by language
runtime
- True or False: A value type is similar to a class: allow definition
of methods, properties and operators and inheritance of a value
type is allowed.
- What is a 'virtual method'? Does C# allow virtual methods?
- CLI files contain a definition of types annotated with their
description (metadata). Which of the follow statements, concerning
that metadata, are true.
A. A program can access metadata using the reflection API
B. Metadata are static and cannot be changed at runtime
C. Both
- List one advantage and one disadvantage of 'unsafe' code in
C#.
- What is the purpose of the Pinvoke mechanism?
- What is a drawback of ASP (not ASP.NET)?
- What are two of the three ways in which ASP.NET attempts to
fix the drawback of ASP?
- What is one limitation of the .NET Compact Framework (compared
to the full version of .NET framework) when writing XML web
service client applications?
- 1. What language is C# derived from?
- Which is not one of the four important exceptions of C# to
Java
a. Throws clause on methods
b. Inner classes
c. Thread synchronization
d. Class loading
- True or False: Values are objects?
- How are properties defined?
- Are the methods in C# virtual or manually decided?
- What is unsafe code and who can use it?
- What does the SDK Contain and for which platform is it used
in?
- What is P/Invoke?
- True or False: Java and C# are based off of the same basic
language?
- Label the Java code and the C# code
|
|
class A {} |
class A {} |
interface B {} |
interface B {} |
interface C {} |
interface C {} |
class D extends A implements B, C {} |
class D : B, C, D {} |