Cdn.quesba.com



(Important Note: Provide the screen shot of the program (Code) with your name and ID number as a print statement on top. Make sure that Name and ID as first line of the output screen. Explain the program as per your understanding)1-What will be the output of the following code?2-What will be the output of the following code? 3-Compare the features of C#, Python and C++ programming languages. Use Google trends to analyze the popularity of these languages among the programmers in Middle East region. Provide screenshots to justify your results.4-What is an Interface class? Explain with an example.5-Consider the program below. What is the output of the program? If the break statement is replaced with continue statement, what will be the output?6-Differentiate the following:-Function and stored procedureManaged and Unmanaged code7-Rewrite the following C# switch statement using the if-else-if statement:(Important Note: Provide the screen shot of the program (Code) with your name and ID number as a print statement on top. Make sure that Name and ID as first line of the output screen. Explain the working of all programs as per your understanding)Write a C# application to find the number of even numbers and odd numbers in an array of 10 integers. The user should enter the 10 integers from the keyboard. Print the result in the following format:Number of even numbers = AnswerNumber of odd numbers = AnswerWrite a C# application that implements a class ‘Employee’ with the following members.Six private data members ‘BasicSalary’, ‘HRA’, ’Deductions’, ‘Allowance’, ‘Insurance’ and ‘NetSalary’ of integer data type.A default constructor to display the message “Employee Pay Bill”.Four public methods, setMembers(), calcDed(), calcNet(), and disResult().setMembers() – set the values of BasicSalary as 2000, HRA as 200, Insurance as 100 and Allowance as 50.calcDed() – calculate and return the Deductions using the formulae “Deductions = Insurance + Allowance”.calcNet() – calculate and return the NetSalary using the formulae “NetSalary = BasicSalary + HRA – Deductions”.disResult() – display BasicSalary, HRA, Deductions and NetSalary.In the Main method, create an object of the ‘Employee’ class and use the object to call the methods to display the output as shown below.3-Write a C# program to find the sum of digits of a number input by the user.Name: AliID:19466560 ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download