C# Programming Quiz 4 | Test your CSharp Programming Concepts | Coding Quiz

0%
0 votes, 0 avg
56
Created on By jd

C# Programming

C# Programming Quiz 4

This Quiz will test your basic programming knowledge in C#.

1 / 6

Category: C# Programming

What is the output of the following code snippet?

2 / 6

Category: C# Programming

What is the outcome of the following code snippet?

3 / 6

Category: C# Programming

What is the output of the following code snippet?

4 / 6

Category: C# Programming

Which of the following statement is correct about the C# code snippet given below?

5 / 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

6 / 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; }

Your score is

The average score is 46%

0%


Up ↑

%d bloggers like this: