C# Programming Quiz 4 | Test your CSharp Programming Concepts | Coding Quiz Jagdish Kumawat 4 years ago 0% 0 votes, 0 avg 65 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 d Option c Option b Option a 2 / 6 Category: C# Programming What is the outcome of the following code snippet? Compilation error in line1: It is read only HelloJoey is printed Compilation error in line 2: Index out of bounds Hello is printed 3 / 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 productCount cannot be initialized in MethodOne() quantity can be initialized in MethodTwo() MethodOne() can initialize productCount as well as quantity 4 / 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, 2016 b. Compilation Error c. Thank you for shopping Ross ! d. Thank you for shopping Ross ! Message sent at 12:00 AM on Monday, February 29, 2016 Option b Option d Option c Option a 5 / 6 Category: C# Programming What is the output of the following code snippet? 55 55 20 50 50 20 50 60 10 50 55 15 6 / 6 Category: C# Programming What is the output of the following code snippet? Book ID : 102, Book Name :Malgudi Days Book ID : 1001, Book Name :null Book ID : 102, Book Name :null Book ID : 1001 , Book Name :Malgudi Days Your score isThe average score is 45% LinkedIn Facebook VKontakte 0% Restart quiz {{#message}}{{{message}}}{{/message}}{{^message}}Your submission failed. The server responded with {{status_text}} (code {{status_code}}). Please contact the developer of this form processor to improve this message. Learn More{{/message}}{{#message}}{{{message}}}{{/message}}{{^message}}It appears your submission was successful. Even though the server responded OK, it is possible the submission was not processed. Please contact the developer of this form processor to improve this message. Learn More{{/message}}Submitting… Share this:Tweet Share on Reddit (Opens in new window) Reddit Share on WhatsApp (Opens in new window) WhatsApp Email a link to a friend (Opens in new window) Email Share on Telegram (Opens in new window) Telegram More Print (Opens in new window) Print Share on Tumblr C# Programming Quiz 2 | Test your CSharp Programming Concepts | Coding QuizDateApril 7, 2022In relation toCSharpC# Programming Quiz 3 | Test your CSharp Programming Concepts | Coding QuizDateApril 8, 2022In relation toCSharpC# Programming Quiz 5 | Test your CSharp Programming Concepts | Coding QuizDateApril 12, 2022In relation toCSharp