What do you know about C # P3 programming language?
C # is an object-oriented programming language developed by Microsoft, the start of their .NET plan. Please invite the Network Administrator to learn about this topic through the quiz below.
-
Question 1: Indicate the results of the following program:
struct ValType
{
public int data;
public static void Main ()
{
ValType v = new ValType ();
Console.WriteLine (v.data);
}
}-
Compilation error
-
Error running
-
xrmh: 0
-
Other results
-
-
Question 2: Results of the following program section:
struct ValType
{
public int data;
public ValType (int i)
{
data = i;
}
public static void Main ()
{
ValType v = new ValType ();
Console.WriteLine (v.data);
}
}-
Compilation error
-
- xrmh: 0
-
Other results
-
-
Question 3: C # programming is developed by:
-
Microsoft
-
Apple
-
Next
-
-
Question 4: Does C # have multiple inheritance?
-
Is not
-
Have
-
-
Question 5: Are there any types of comments in C #
-
Annotate the line
-
Annotate XML
-
Both answers above
-
-
Question 6: What is Jagged array in C #?
-
Array
-
Array of arrays
-
Another answer
-
-
Question 7: How many ways can you pass parameters to a method?
-
2
-
3
-
4
-
5
-
-
Question 8: Can you return multiple values from a function in C #?
-
Have
-
Is not
-
-
Question 9: Can you assign a struct with null?
-
Have
-
Is not
-
-
Question 10: Does .NET support inheriting from multiple classes?
-
Have
-
Is not
-
Was this article helpful?
Your feedback helps us improve.
Reader Comments 0
Sign in with email or Google to join the discussion.