write my assignment 2882

1. Variables

Choose One

Which one of the following choices is NOT a correct way to declare and define a variable that we have discussed in class?

  • string comicTitle = “Spiderman”;
  • int numOfCats = 10;
  • decimal totalCost = 4.50;
  • double milesDriven = 350.25 ;

2. Assignment Operators

Choose One • 7 points

What value would be output after the following code runs?

1int score = 5;2score +=5;3score -=2;4score /=2;5score–;67Console.WriteLine(score);

C#

  • 3
  • 4
  • 5
  • Not enough information given

3. Arrays

Choose One

Given the following code what value would be output?

1

 
"Not answered?"
Get the Answer