Question: Question 1 0/1 point Console.WriteLine(How many tickets would you like to purchase?); string userInput = Console.ReadLine(); int num2 = Convert.ToInt32 (userInput); a) This code is

 Question 1 0/1 point Console.WriteLine("How many tickets would you like to

purchase?"); string userInput = Console.ReadLine(); int num2 = Convert.ToInt32 (userInput); a) This

code is missing curly braces {} needed for the code to executecorrectly Ob) This code does not conform to class standards for variables

Question 1 0/1 point Console.WriteLine("How many tickets would you like to purchase?"); string userInput = Console.ReadLine(); int num2 = Convert.ToInt32 (userInput); a) This code is missing curly braces {} needed for the code to execute correctly Ob) This code does not conform to class standards for variables and constants Oc) A semi-colon is missing where there should be one d) A semi-colon exists where there shouldn't be one 0 / 1 point Question 3 Review the following snippet of code that contains an error. int grade = Convert.ToInt32(Console.ReadLine(); If (grade = 100) Console.WriteLine("Congratulations for scoring 100%"); Select the corrected code below. int grade = Convert.ToDecimal(Console.ReadLine()); If (grade = 100) Console.WriteLine("Congratulations for scoring 100%"); int grade = Convert.ToInt32(Console.ReadLine(); If (grade == 100); Console.WriteLine("Congratulations for scoring 100%"); double grade = Convert.ToInt32(Console.ReadLine(); If (grade = 100) Console.WriteLine("Congratulations for scoring 100%"); int grade = Convert.ToInt32(Console.ReadLine()); If (grade == 100) Console.WriteLine("Congratulations for scoring 100%"); Question 4 0 / 1 point Consider this code: decimal myBankAccount = 150350.00m; const double INTEREST RATE = 0.035; Which of the following correctly calculates simple interest for 1 year on myBankAccount balance? decimal interest = myBankAccount * INTEREST RATE; int interest = myBankAccount * INTEREST_RATE; double interest = (double)myBankAccount * INTEREST_RATE; decimal interest = myBankAccount * (decimal)INTEREST RATE; 0 / 1 point Question 5 Select all the options that correctly define and initialize an array to a set of grades. A) doublell gradeValues = { 90.0, 80.0, 95.0, 85.0, 75.0, 70.0, 89.0, 97.0, 93.0, 63.0 }; OB) double gradeValues = new { 90.0, 80.0, 95.0, 85.0, 75.0, 70.0, 89.0, 97.0, 93.0, 63.0 }; C) double gradeValues = [90.0, 80.0, 95.0, 85.0, 75.0, 70.0, 89.0, 97.0, 93.0, 63.0]; D) double[] grade Values = { 90.0, 80.0, 95.0, 85.0, 75.0, 70.0, 89.0, 97.0, 93.0, 63.0 }; View Feedback Question 8 0 / 1 point Which of the following correctly computes the cost of the carpet given a square footage and the price per square footage of the carpet? OA) pricePerSquare Foot * square Footage = carpetCost; OB) int carpetCost = pricePer Square Foot * squareFootage OC) decimal carpetCost = pricePerSquare Foot * square Footage; OD) int carpetCost = pricePer Square Foot + square Footage Question 9 0 / 1 point // The programmer was told to define a constant // for the ticketing fee and set it equal to 1.5% decimal ticketingFee = .015m; // What's wrong with the above code? a) A semi-colon is missing where there should be one b) This code is missing curly braces { } needed for the code to execute correctly Oc) A semi-colon exists where there shouldn't be one d) This is not a constant e) This code does not conform to class standards for variables and constants Of) This code contains a syntax error and will not compile 0/1 point Question 10 int numTickets = Convert.ToDouble(Console.ReadLine()); a) This code does not conform to class standards for variables and constants Ob) A semi-colon exists where there shouldn't be one Oc) A semi-colon is missing where there should be one d) This code contains a syntax error and will not compile Oe) This code is missing curly braces { } needed for the code to execute correctly Question 11 0 / 1 point Which of the following correctly displays the output to 2 decimal places? O Console.WriteLine($"Numbers are {0,5:F}, {1,5:F}, and (2,5:F}", num1, num2, num3); Console.WriteLine("Numbers are {0,5:F2}, {1,5:F2}, and {2,5:C}", num1, num2, num3 Console.WriteLine($"Numbers are {num 1,0:F2}, {num 2,0:F2}, and {num3,0:C}"); Question 12 0 / 1 point In this code statement Console.WriteLine(" Price = {price, 10:F2}"); the WIDTH of the column in which price is displayed is equal to a) 10 Ob) it is variable depending on the size of the value in price Oc) 15 d) F Question 14 0 / 1 point Select all of the following which are GOOD and CORRECT declarations of constants according to our class standards and C# syntax a) const decimal ROW_1_TKT_PRICE = 125m; b) decimal ROW_1_TKT_PRICE = 125m; Oc) const ROW_1_TKT_PRICE = 125m; d) const decimal Row_1_Price = 125m; Question 15 0 / 1 point Which of the following correctly declares a variable using the correct data type which will hold the number of students in this class and also initializes the variable to 33 OA) int numStudents = 33; O B) int numStudents = 33i; OC) integer numStudents = 33; OD) double numStudents = 33

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!