Q.6) What does it mean if you compile your C# source code file and you only get copyright information about Microsoft as a response?
a) You have not set the path to the compiler correctly.
b) Your program has syntax errors that you must correct before you can compile the program.
c) The compiler cannot find the source code file that you are trying to compile.
d) The compiler successfully compiled your program.
Q.4) To compile a C# source code file
named MyFile.cs, what would you type at the command prompt?
a) csc.exe MyFile.exe
b) csc.exe MyFile
c) csc MyFile.cs
d) csc MyFile
Q.6) What does it mean if you compile your C# source code file and you only get copyright information about Microsoft as a response?
Answer - d) The compiler successfully compiled your program.
On successful compilation your source code you will see message like this
Microsoft (R) Visual C# Compiler version 3.6.0-4.20251.5
(910223b6)
Copyright (C) Microsoft Corporation. All rights reserved.
If there are any errors in the code then it will give error like
Program.cs(18,44): error CS1002: ; expected
Q.4) To compile a C# source code file named MyFile.cs, what would you type at the command
Answer - c) csc MyFile.cs
Standard console command to compile FIle.cs is csc File.cs.
So answer will be csc MyFile.cs
Hope this will help you. I would really appreciate if you give thumbs up. Thank you :)
Get Answers For Free
Most questions answered within 1 hours.