Chapter 2 quiz 1 Flashcards

Exam Study

1
Q

Which of the following is not a legal C# identifier?

A

1stPlayerStartButton

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following Button control names is a legal C# identifier?

A

_DisplayOption5Button

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

Error List window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To close an application’s form in code, use the __________ statement

A

this.Close();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When you enter a statement into the code editor, Visual Studio analyzes it and, if a syntax error is found, it is __________.

A

underlined with a jagged line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A __________ is a declared block in a program between braces ( {…} ) that holds classes

A

namespace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A(n) __________ is a logical container in a program that holds methods and other program elements

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If you want your code to execute a method, write a statement known as a(n) __________.

A

method call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The __________ directives that appear at the top of a C# source code file indicate which namespaces the program will use

A

using

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following statements correctly displays the text Hello in a message box?

A

MessageBox.Show(“Hello”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly