Problem Set A
1
.
Research how high-level languages have portability restrictions and how some languages handle portability. For example, compare C# and Java on Linux platforms.
2
.
What is the tradeoff between C# being fully compiled and Java running on the JVM?
3
.
Research for loops. Write a for loop that matches the functionality of the following while loop:
int main ()
{
int iter = 0;
while(iter < 10)
{
iter++;
printf("%d", iter);
}
}
4
.
In C/C++, data types can be returned from a function or used as an output parameter by passing the object by reference using a pointer. Write a piece of code that demonstrates two functions with the same performance, but one that returns a data type and one that uses an output parameter.
5
.
Research what a style guide and coding standard are. Review a sample coding standard for at least three different languages. Are the style guides and coding standards the same for each language? How could the style guides and coding standards lead to well-structured code?
6
.
Describe how inheritance can simplify the design of a software application. Can inheritance add to the complexity of the software?
7
.
You are designing a real-time software application, so timing of computations is critical. How could you develop a solution that takes less time to execute? What safety considerations do you need to design around?
8
.
Research preprocessor definition uses. How can an organization have a common baseline of code but deliver only certain modules of code in a delivery.