What is managed and unmanaged code

Assignment Help Computer Engineering
Reference no: EM132145095

Objective(s)

This assessment item relates to the unit learning outcomes as in the unit descriptors. This checks your understanding about basic constructs of C# programming.

Details & Problems

In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console Programs to demonstrate your ability to use C# input/output via command line, C# primitive and built-in C# types, C# operators and expression, C# conditional statements, C# loop construct, and show your ability to validate the inputs to avoid run-time errors.

Q1) What is managed and unmanaged code?

Q2) Give examples of reserved keyword, literals and data types in C#.

Q3) What is the difference between "continue" and "break" statements in C#? Explain it with example.

Q4) What will be the output / error of given program? static void Main(String[] args)
{
const int m = 100; int n = 10;
const int k = n / 5 * 100 * n; Console.WriteLine(m * k); Console.ReadLine();

}

Q5) Give the output for the set of programming code.
class Program
{
static void Main(string[] args)
{
int i;
for ( i = 0; i < 5; i++)

{
}
Console. WriteLine(i); Console. ReadLine();
}
}

Q6) Write a program that would convert temperature given in Centigrade scale to Fahrenheit - the number can be integer or real. Use the formula: F = 1.8C + 32

Q7) Given a three-digit integer as input write a C# program to determine whether the number is an Armstrong number. An Armstrong number is one for which the sum of each digit raised to the power of number of digits results in the number itself.
For a three digit number 153 = 13 + 53 + 33
Note: Confine to 3-digit examples only i.e., number values between 100 to 999.

Q8) Use Euclid's Algorithm given below to determine the LCM and HCF for given two integer numbers.
- Take in as input two numbers A and B.
- Subtract the smaller of the two numbers from the Larger Number and assign the answer to the larger number.
- The above process is repeated until both the numbers are equal, say X.
- Apparently, the residual number (X) that we have obtained is the HCF.
- LCM could then be computed using the formula (A*B)/HCF Print out your answers.

Reference no: EM132145095

Questions Cloud

What solutions need to be provided for your examples : Explain the difference between a positive and negative externality. In your analysis, make sure to provide an example of each type of externality.
What is the amount of each payment : FIN 3100 : Travis is buying a car and will finance it with a loan that requires monthly payments of $265 for the next four years.
How do human resources managers use compensation : Write a 4-5 page paper explaining the benefits of employee involvement in performance evaluations, feedback, and how performance measures are tied
Resources need to execute strategy at amazon : Does Amazon have, or can they build, the capabilities required? (Use Case: Amazon.com: The Brink of Bankruptcy Case)
What is managed and unmanaged code : ITAP1001 Software Development Fundamentals - What is managed and unmanaged code and What is the difference between "continue" and "break" statements
Effective staffing in the work place : How can human resources conduct an effective staffing in the work place?
How can employees learn through interaction : How can employees learn through interaction? Are some types of interaction best for learning in some situations but not others? Explain.
Provide a topic sentence for each paragraph : Assignment Specifications - Provide a topic sentence (major idea) for each paragraph. Use transitional words and phrases to link paragraphs
Separate departments to achieve a cohesive matrix : Do you all envision that top level management must be a bit "intrusive" into the inner workings of the separate departments to achieve a cohesive matrix?

Reviews

len2145095

10/19/2018 10:42:41 PM

You should submit the Assignmentdoc1 (doc) containing answers (description/error/output) of questions (Q1 to Q5) and document2 (doc) containing answers of questions (Q6 to Q8). The document2 should contain following headings for each problem. Overview of program Source code Screenshots for sample inputs, outputs and errors.

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd