Chapter 2 quiz 3 Flashcards

Exam Study

1
Q

When a(n) __________ appears around an object in the Visual Studio Designer, it indicates that the object is selected and ready for editing

A

bounding box

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

Which of the following statements would display the number 25 in a Label control named outputLabel?

A

outputLabel.Text = “25”;

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

Which of the following statements would clear the text displayed in a Label control named cityLabel?

A

cityLabel.Text = “”;

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

Assuming an application has a PictureBox control named profilePictureBox, which of the following assignment statements will hide the PictureBox from the user at runtime?

A

profilePictureBox.Visible = false;

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

Once you have created a PictureBox control, you use its __________ property to specify the image it will display

A

Image

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

__________ is a term that refers to an image’s width to height ratio

A

Aspect ratio

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

__________ are short notes placed in a program’s source code that explain how the program works.

A

Comments

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

A(n) __________ appears on one line in a program and begins with two forward slashes ( // ).

A

line comment

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

Which of the following are used by professional programmers to embed extensive documentation in a program’s source code?

A

documentation comments

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

The __________ property can be used to change a form’s width and height

A

Size

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

A control’s __________ property identifies the control in the application’s code and in the Visual Studio environment

A

Name

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

A file that contains program code is called a __________.

A

source code file

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

Just as a period marks the end of a statement, a(n) __________ marks the end of a programming statement in C#.

A

semicolon

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

When you have a project open in Visual Studio, the time during which you build the GUI and write the application’s code is referred to as __________.

A

design time

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