Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C# Compiler (Roslyn) takes the source code and converts into Intermediate Langua

ID: 3881187 • Letter: C

Question

C# Compiler (Roslyn) takes the source code and converts into Intermediate Language (EXE/DLL) files. o Yes O No QUESTION 3 C# language uses single r for commenting a single line of code and r y for multiple lines of codes O Yes O No QUESTION 4 Bool data type stores true or false O Yes O No QUESTION 5 Object type can only store numbers while dynamic data type can store any data type. O Yes O No QUESTION Console Read Line0 method is used for user input and Console.Write Line) method is used for writing the output O Yes O No QUESTION 7 Index of an array always starts at 0 Yes O No QUESTIONE Click Save and Submit to save and submit. Click Save All Answers to save all answers.

Explanation / Answer

Question-2:

The answer is “Yes”

The C# compiler compiles the source code written in C# and generates executable file ( .exe).

After compiling the source code, it becomes Microsoft Intermediate Language (MSIL) or commonly known as Intermediate Language(IL).

Question-3:

The answer is “NO”.

C# uses ‘//’ for single line comments and for multiple line comments the line starts with /* and ends with */.

Question-4:

The answer is “Yes”.

Bool data type is used to store true or false value.

Question-5:

The answer is “No”.

We can assign values of any other types to object type which is the base of all data types.

In other hand, dynamic types are also used to store any type of value.

The only difference between object type and dynamic type is that object type is checked during compile time whereas dynamic type is checked during run time.

Question-6:

The answer is “Yes”.

Console.ReadLine() is used ffor string input and Console.WriteLine() is used to show output on the standard input.

Question-7:

The answer is “Yes”.

Like most of the programming languages, the index of an array in C# also starts at 0.

Question-8:

The answer is “Yes”.

Array stores same type of data.

Question-9:

The answer is “No”.

Class is a blueprint of data type. It is not any type of data that we commonly know, rather it represents the attributes of the objects of this class type and what operations are performed on these objects.

Question-10:

The answer is “No”.

Structure consumes less memory than class as class needs to store the memory addresses of its objects which structure does not. Therefore, structure is more lightweight than class.