1. (TCO 8) Because Main() and testMeth() store myVar in _____, the output of this code will be _____.
static void
Main(){
int myVar = 6;
Console.Write("{0} ", myVar);
myVar++;
testMeth(ref myVar);
myVar++;
Console.Write("{0} ", myVar);
Console.Read();}
public static void testMeth(ref int myVar){
Console.Write("{0} ", myVar);
myVar++;}
different memory locations, 6 7 8
the same memory location, 6 7 8
different memory locations, 6 7 9
the same memory location, 6 7 9

2. (TCO 7) Which is not a Predefined C# XXXXX?
Console.GetLine();
Console.Read();
Math.Abs();
Math.Cos();

3. (TCO 7) Which is not a valid name for a method or function?
MyMod5
mod_1
mod_@7
MyMod_7

4. (TCO 8) Which is a correct heading for a method that accepts three doubles and returns their sum?
public static void Add(double num1, num2, num3);
public static Add(double num1, double num2, double num3);
public static double Add(double num1, double num2, double num3);
public static sum Add(double num1, double num2, double num3);


    • 11 years ago
    A+ answers
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      13.doc