Chapter 2 quiz 1 Flashcards
Exam Study
Which of the following is not a legal C# identifier?
1stPlayerStartButton
Which of the following Button control names is a legal C# identifier?
_DisplayOption5Button
The __________ shows a description of an error, the name of the source code file containing the error, the error’s line number and column number, and the name of the project
Error List window
To close an application’s form in code, use the __________ statement
this.Close();
When you enter a statement into the code editor, Visual Studio analyzes it and, if a syntax error is found, it is __________.
underlined with a jagged line
A __________ is a declared block in a program between braces ( {…} ) that holds classes
namespace
A(n) __________ is a logical container in a program that holds methods and other program elements
class
If you want your code to execute a method, write a statement known as a(n) __________.
method call
The __________ directives that appear at the top of a C# source code file indicate which namespaces the program will use
using
Which of the following statements correctly displays the text Hello in a message box?
MessageBox.Show(“Hello”);