{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
Test: First Console Program in C# Explained

9. Which of the following can be used in .NET/C# to write some text to a command window?



Results
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: Console.WriteLine("Hello, World!");; Console.Write("Hello, World!");;
Explanation
The Console class (which is in the System namespace) has several static methods (methods that can be executed right on the class name, instead of having to create an instance of the class). One of these static methods is WriteLine(), which writes the supplied string to the console. You can also use the method Write(), which does not put a newline character at the end of the string as WriteLine() does.
Take the Test
Take the complete test on this topic. You will be able to review answers to questions and get a test score.

Take the Test


Question 9 of 10


Test is Based on this Article
icon-first-console-solution-explorer.jpg
This article explains writing the first console application using .NET Framework and C#. The console applications do not have any graphical user interfaces. These are also called command line applications. These are the applications that run in the good old DOS window (or Command Window, as it is called nowadays).
This test has questions on developing first console (shell) based programs using the C# programming language.

More Articles With Similar Tags
icon-first-web-new-project.jpg
This article explains and dissects the pieces involved in creating the first web program in C# using the Web Project method (as opposed to the Web Site method).
How do you develop an ASP.NET program using the Web Project model?
icon-first-web-site-solution-explorer.jpg
This article explains and dissects the pieces involved in creating the first web program in C# using the Web Site method (as opposed to the Web Program method).
What is involved in developing a web-based program using the C# programming language with Web Site - Solution as the model.
This test has questions on developing first console (shell) based programs using the C# programming language.
                                                                                                                                                                                                             
About  Contact  Privacy Policy  Site Map