C# Programming Quiz 4 | Test your CSharp Programming Concepts | Coding Quiz 0% 0 votes, 0 avg 54 Created on April 11, 2022 By jdC# Programming C# Programming Quiz 4 This Quiz will test your basic programming knowledge in C#. 1 / 6 Category: C# Programming Ben a Jr. Programmer in the Shopping App Development team has written the following code, and he is getting compilation errors at Line 1 and Line 2 as mentioned below. Help him identify the right option to replace the code on Line 1 and Line 2.Choose the correct option:a. private int CategoryId { get; set; }private string CategoryName { get; set; }b. public int CategoryId {private get; set; }public string CategoryName {private get; set; }c. public int CategoryId { get; set; }public string CategoryName { get; set; }d. int CategoryId {private get; set; }string CategoryName {private get; set; } Option b Option c Option d Option a 2 / 6 Category: C# Programming What is the output of the following code snippet? Book ID : 1001 , Book Name :Malgudi Days Book ID : 102, Book Name :null Book ID : 102, Book Name :Malgudi Days Book ID : 1001, Book Name :null 3 / 6 Category: C# Programming What is the outcome of the following code snippet?Choose the correct option:a. Thank you for shopping Ross !Message sent at 12:00 AM on Tuesday, March 1, 2016b. Compilation Errorc. Thank you for shopping Ross !d. Thank you for shopping Ross !Message sent at 12:00 AM on Monday, February 29, 2016 Option d Option a Option b Option c 4 / 6 Category: C# Programming Which of the following statement is correct about the C# code snippet given below? A non-static class cannot have a static constructor MethodOne() can initialize productCount as well as quantity quantity can be initialized in MethodTwo() productCount cannot be initialized in MethodOne() 5 / 6 Category: C# Programming What is the outcome of the following code snippet? HelloJoey is printed Compilation error in line 2: Index out of bounds Hello is printed Compilation error in line1: It is read only 6 / 6 Category: C# Programming What is the output of the following code snippet? 55 55 20 50 60 10 50 50 20 50 55 15 Your score is The average score is 47% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Share this:TweetWhatsAppEmailTelegramMorePrintShare on TumblrPocketLike this:Like Loading... Related You must log in to post a comment.