Discount Get CIS 170 ALL WEEKS Solution ONLY $68.95 $91.93
CIS 170 Week 1 - C# [$7.99]
CIS 170 Week 2 - Calculate Shipping Charge, TV Channel to Call Si... [$15.99]
CIS 170 Week 3 - Dive Scoring Program [$9.99]
CIS 170 Week 4 - Phone Dialing Program [$9.99]
CIS 170 Week 5 - Tournament Stats Alphabetical Order [$15.99]
CIS 170 Week 6 - Password Program , Number Guessing Game [$15.99]
CIS 170 Week 7 - Contact Program [$15.99]
CIS 170 CIS 170B C# - Final Exam [$21.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CIS 170 CIS/170 CIS170 CIS170B C# Final Exam
    CIS 170 CIS/170 CIS170 CIS170B C# Final Exam

CIS 170 CIS/170 CIS170 CIS170B C# Final Exam


CIS 170 - CIS170B C# Final EXAM
1. (TCOs 1, 6) Because information in _____ is lost when the power is turned off, that type of memory is considered to be _____. (Points : 5) 
A.    auxiliary storage, nonvolatile
B.    auxiliary storage, volatile
C.    RAM, nonvolatile
D.    RAM, volatile 

2. (TCOs 1, 6) What does IDE stand for? (Points : 5) 
A.    Interior Design Environment
B.    Integrated Development Environment
C.    Integrated Design Environment
D.    Interior Development Environment 

3. (TCOs 1, 6) Which keyboard function key do we use to compile and run a C# program within Visual Studio.NET? (Points : 5) 
A.    F5
B.    F11
C.    F10
D.    F1

4. (TCOs 2, 3) A computer uses the _____ numbering system to represent and manipulate data. (Points : 5) 
A.    binary
B.    decimal
C.    hexadecimal
D.    octal

5. (TCOs 2, 3) The proper operator precedence, from first to last, is _____. (Points : 5) 
A.    subtraction, addition, and multiplication
B.    addition, subtraction, and multiplication
C.    exponentiation, division, and subtraction
D.    exponentiation, addition, and division
E.    exponentiation, division, and multiplication 

6. (TCOs 2, 3) Your C# program needs to store a single alphanumeric character the user will enter. When your program starts, the default setting for that character should be the letter A. You implement this functionality by writing _____.
(Points : 5)
A.    char myVar = A;
B.    char myVar = ‘A’;
C.    char myVar(‘A’);
D.    char myVar(A);

7. (TCO 4) The following C# code _____ compile; however, it contains a _____ error.
int x = 15, y = 10;
if (x < y);
Console.WriteLine("x is less than y"); 
A.    will, compiler
B.    will, logical
C.    will not, compiler
D.    will not, logical 
8. (TCO 4) Which part of this expression will be evaluated first?
if (b <= c && d >= e)
A.    b <= c
B.    c || d
C.    d >= e
D.    if() 

9. (TCO 5) Your program keeps asking for input from the user. If there is more input, the user types “Y” after entering the data. If there is no more input, he/she enters “N.” In this context, “Y” and “N” are used as _____.
A.    accumulators
B.    counters
C.    integer data types
D.    sentinel values

10. (TCO 5) In this code, the variable _____ is a counter and the variable _____ is an accumulator.
double sum = 0, height = 2.0, stop =10, max = 50;
int track = 0, num = 0;
while (num <= stop)
sum = sum + height * num;
if (sum <= max)
A.    num, track
B.    sum, track
C.    track, sum
D.    height, stop

11. (TCOs 7, 8) Which is a predefined C# method?
A.    Console.PrintLine();
B.    Console.Print();
C.    Math.Sum();
D.    Math.Sin();

12. (TCOs 7, 8) Which is a valid overloaded version of the following method?
float DetermineResults(float num1, float num2)
A.    float DetermineResults(double num1, float num2)
B.    float DetermineTheResults(float num1, float num2)
C.    void DetermineResults(float num1, float num2)
D.    double DetermineResults(float num1, float num2)

13. (TCOs 7, 8) Because Main() and MyFunction() store counter in _____, the output of this code will be _____.
static void Main()
int counter = 8;
Console.Write("{0} ", counter);
Console.Write("{0} ", counter);
public static void MyFunction(int counter)
Console.Write("{0} ", counter);
A.    different memory locations, 8 9 10
B.    the same memory location, 8 9 10
C.    different memory locations, 8 9 11
D.    the same memory location, 8 9 11

14. (TCOs 9, 10) Which of the following is not good programming practice?
A.    Indenting the statements in the body of each control structure
B.    Using integer types for loop control variables
C.    Left-aligning nested repetition structures
D.    Placing vertical spacing above and below control structures

15. (TCOs 9, 10) In Figure 1, objectB is a _____ and objectC is a _____.
A.    CheckBox, Form
B.    Checkbox, MenuStrip
C.    RadioButton, Form
D.    RadioButton, MenuStrip

16. (TCOs 9, 10) When the user of your flight reservation GUI selects the “checkBoxAirGhana” CheckBox, the string “AirGhana” should appear in the “listBoxOrder” ListBox. To implement this functionality, write _____ in the ckBoxAirGhana_CheckedChanged() event handler.
A.    if (ckBoxAirGhana.Checked == true)
B.    if (ckBoxAirGhana.Checked)
C.    if (ckBoxAirGhana.Checked == true)
listBoxOrder.Text = “AirGhana”;
D.    if (ckBoxAirGhana.Checked)
17. (TCOs 11, 12) To pass the entire myInfo array to the PrintElements method, replace the commented line below with _____.
static void Main()
int[] myInfo = {6,7,8,9};
//call PrintElements
public static void PrintElements(params int[] item)
for (int i=0; i<item.Length; i++)
 Console.Write("{0} ",item[i]);
A.    PrintElements(myInfo);
B.    PrintElements(myInfo[0]);
C.    PrintElements(ref myInfo);
D.    PrintElements(6,7,8,9);

18. (TCOs 11, 12) The size of an _____ must be determined when the program is written, whereas elements of an _____ can be added or deleted at runtime.
A.    ArrayList, array
B.    array, ArrayList
C.    array, array
D.    ArrayList, ArrayList

19. (TCOs 11, 12) An array that stores four days of closing stock market prices can be declared as _____.
A.    decimal price1, price2, price3, price4;
B.    decimal [] price = new price[4];
C.    decimal price[] = new decimal[4];
D.    decimal [] price = new decimal[4];

20. (TCO 13) Because your C# program needs to read data from a file one character at a time, you choose to use the _____ member of the _____ class.
A.    ReadChars(), StreamReader
B.    ReadChars(), BinaryReader
C.    ReadChar(), StreamReader
D.    ReadChar(), BinaryReader

21. (TCO 13) To print out the time a file called “timeSheet.txt” was created, write _____.
A.    Console.WriteLine(File.GetCreationTime("timeSheet.txt"));
B.    Console.WriteLine(GetFileInfo(“timeSheet.txt”);
C.    Console.WriteLine(GetCreationTime(“timeSheet.txt”);
D.    Console.WriteLine(File.FileInfo(“timeSheet.txt”);

22. (TCO 13) The following C# code will print out _____.
DirectoryInfo dir = new DirectoryInfo(".");
foreach (FileInfo fil in dir.GetFiles("*.*"))
A.    the names of all files in the current directory
B.    the names of all subdirectories of the root directory
C.    the contents of all files in the root directory
D.    the names of all subdirectories of the current directory

1. (TCO 3) Show the source code for a C# console application called “SalesTax” to display a 7% sales tax one would pay on an item that costs $150. (Note that the sales tax would be .07 times the value of the item.)
• Declare and initialize appropriate variables for tax rate and item cost.
• Include at least three descriptive comments.
• State what your program displays when it runs.
• State how you would use the debugger to check the values of your variables as your program runs.
(Points : 20)
2. (TCO 5) Describe two types of loops that can be used to write the C# code required to print every fifth integer from 0 to 500 (i.e., 0, 5, 10, 15, etc.), each on its own line. Which would be a better choice and why? Write the code using that type of loop. (Points : 20)
3. (TCO 8) Briefly describe how parameter passing by-value and by-reference are accomplished in memory. Write statement 1 to call method A below. Write statement 2 to call method B. Which method uses pass by-value? Which method uses pass by-reference?
static void Main()
double purchase = 1000.0;
double bonus;
//statement 1
//statement 2
//method A
public static double calcBonus(double purchase)
return (.03 * purchase);
//method B
public static void calcBonus(ref double bonus, ref double purchase)
bonus = purchase * .03;
(Points : 20)
4. (TCO 9) Identify an example of one of each of the following GUI design errors in Figure 2:
• missing the target audience
• misuse of color
• misalignment
How could each of the three errors be corrected to improve the user experience?
Image Description
(Points : 20)
5. (TCO 2) Although the following code compiles and runs, the programmer made some major readability errors. Describe at least three changes that would make it easier for other programmers to read and understand the code.
class Program
static void Main() //main
int a;
int Float = 10; // ints
for(int i = 0;i < Float;i++) /* loop */{
Console.Read(); //read
public static int method(int a) /*method*/ {
return (int)(Math.Pow((double)a,2.0));
(Points : 20)
6. (TCO 11) Write a C# program to store an array of integers 10 through 19. Use an appropriate loop to multiply all of the values in the list. Print out the result. (Points : 20)

My solution contain Answers for all questions in CIS170 C# Final Exam.

If you have more question or need help, please contact me via email I will help you any time.

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:

Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:

2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more