Deck 2: Introduction to Visual C#

Full screen (f)
exit full mode
Question
Programmers commonly use ____________ in their code to create a sense of visual organization.

A) different font colors
B) documentation comments
C) blank lines and indentation
D) bold images, such as photos
Use Space or
up arrow
down arrow
to flip the card.
Question
The ____________ shows a description of the 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) Debug dialog box
B) Crash pop up
C) Error List window
D) Just In Time debugger
Question
The ____________ file contains an application's start-up code, which executes when the application runs.

A) Main.cs
B) Code.cs
C) Program.cs
D) Source.cs
Question
Which one of the following Button control names is a legal C# identifier?

A) _DisplayOption5Button
B) Exit!Button
C) *Clear*Button*
D) delete Record Button
Question
The ____________ naming convention gets its name because the uppercase characters that appear in a name are sometimes reminiscent of a camel's humps.

A) camelCase
B) Pascal
C) Hungarian notation
D) CaMeL style
Question
A ____________ is a small pop-up window, also known as a dialog box, that displays a message.

A) standard window
B) pop up
C) banner
D) message box
Question
A ____________ is a declared block in a program between braces {…} that holds classes.

A) method
B) program
C) namespace
D) list
Question
A(n) ____________ event occurs on a control when the user clicks the mouse on a control while the program is running.

A) Action
B) Click
C) Live
D) Mouse
Question
An easy way to switch between the Designer and the code editor is to click the ____________ for the desired window. This only works if both the code file and designer file have already been opened.

A) icon
B) tab
C) button
D) bounding box
Question
When learning computer programming, it is traditional to start by learning to write a ____________ program.

A) Simple
B) Hello World
C) Pseudocode
D) K&R Style
Question
A(n) ____________ is a logical container in a program that holds methods (as well as other program elements).

A) event
B) namespace
C) queue
D) class
Question
Which one of the following Button control names is not a legal C# identifier?

A) _calculateTotalButton
B) printSalesReportButton
C) clear_customer_names_button
D) 1stPlayerStartButton
Question
When you enter a statement into the code editor, Visual Studio analyzes it, and if a syntax error is found, it is ____________.

A) automatically corrected
B) underlined with a jagged line
C) crossed out
D) highlighted
Question
To close an application's form in code, you use the statement ____________.

A) me.Quit();
B) this.Close();
C) form.Exit();
D) app.Stop();
Question
The PictureBox control's ____________ property determines whether the image stored in the control will cause the control to be shrunk or expanded.

A) DisplayMode
B) Visible
C) SizeMode
D) Render
Question
The file named ____________ contains code associated with a form named Form1.

A) Form1.cs
B) MainForm.cs
C) Control.cs
D) Window.cs
Question
A(n) ____________ is a method that executes when a specific event (such as clicking the mouse) takes place while an application is running.

A) action sequencer
B) feature coordinator
C) event handler
D) incident manager
Question
The ____________ directives appearing at the top of a C# source code file indicate which namespaces the program will use. Usually, these namespaces belong to the .NET Framework.

A) include
B) namespace
C) public
D) using
Question
A(n) ____________ is a sequence of one or more programming statements (code) that performs some operation.

A) algorithm
B) method
C) class
D) namespace
Question
Code containers, such as namespaces, classes, and methods, use ____________ to enclose code.

A) braces ({})
B) asterisks (**)
C) parentheses (())
D) brackets ([])
Question
When a(n) ____________ appears around an object in the Visual Studio Designer, it indicates that the object is selected and is ready for editing.

A) sizing handle
B) editing icon
C) bounding box
D) frame
Question
A control's ____________ property identifies the control in the application's code and in the Visual Studio environment.

A) Text
B) Source
C) Tag
D) Name
Question
Which one of the following statements correctly display the text "Hello" in a message box?

A) Messagebox("Hello")
B) MessageBox.Show("Hello");
C) msgbox(Hello);
D) msgbox.show(Hello)
Question
In C# code, ____________ are required to indicate the beginning and the end of a string.

A) single quotation marks, such as (')
B) double quotation marks, such as (")
C) parentheses
D) semicolons
Question
A file that contains program code is called a ____________.

A) source code file
B) program file
C) C# file
D) cs file
Question
Selecting the ____________ button in the Properties window causes the items in the window to be displayed in logical groups.

A) Grouped
B) Categorized
C) Ordered
D) Type
Question
The ____________ property can be used to change a form's width and height, measured in pixels.

A) Area
B) Resolution
C) Size
D) Rectangle
Question
The Visual Studio ____________ window shows a scrollable list of controls that you can add to a form.

A) Collection
B) Bank
C) Toolbox
D) Shelf
Question
____________ allow you to resize a selected object in the Visual Studio Designer by clicking and dragging the mouse when the mouse cursor becomes a two-headed arrow.

A) Bounding boxes
B) Sizing handles
C) ToolTips
D) Properties
Question
To delete a control, you can select it on a form and then press the ____________ key on the keyboard.

A) Delete
B) Z
C) Tab
D) X
Question
If you want your code to execute a method, write a statement known as a(n) ____________.

A) event handler
B) executor statement
C) initialization routine
D) method call
Question
Just as a period marks the end of a sentence, a ____________ marks the end of a programming statement in C#.

A) space
B) underscore
C) semicolon
D) period
Question
In programming we use the term ____________ to mean a sequence of characters that could be enclosed in quotation marks "…".

A) statement
B) thread
C) word
D) string
Question
A Button control has a ____________ property that holds a string to be displayed on the face of the button.

A) Text
B) Name
C) Description
D) Face
Question
When selected in the Properties window toolbar, the ____________ button causes the items in the Properties window to be displayed in alphabetical order.

A) Arrange
B) Ascending
C) Descending
D) Alphabetical
Question
To run an application in Visual Studio, press the ____________ button on the keyboard or click the Start Debugging button on the toolbar.

A) Enter
B) F5
C) Tab
D) Shift
Question
In the design window, you can click and drag a control to a new location when the mouse cursor is positioned inside the control and the mouse cursor becomes a ____________.

A) two-headed arrow
B) four-headed arrow
C) hand icon
D) scissor icon
Question
The ____________ property of a form determines the text that is displayed in a form's title bar.

A) Title
B) Caption
C) Name
D) Text
Question
When you select an object in the Visual Studio Designer, the object's size, color, text, and other characteristics are displayed in the ____________ window.

A) Designer
B) Editing
C) Object
D) Properties
Question
Control names are also known as ____________, the same term used for variables in programs.

A) tags
B) identifiers
C) values
D) labels
Question
The Label control can be found in the ____________ group of the Toolbox.

A) Common Controls
B) Containers
C) Data
D) Components
Question
When a piece of data such as 23 or "Hello" is written into a program's code, it is called a ____________.

A) constant
B) sentinel
C) value
D) literal
Question
Each Label control has a ____________ property that allows you to display a rectangle around the control's text.

A) Border
B) FrameStyle
C) Frame
D) BorderStyle
Question
In code, you use a(n) ____________ to store a value in a control's property.

A) string literal
B) assignment statement
C) dialog box
D) constant
Question
Label controls have a(n) ____________ property that affects the way they can be resized.

A) Resize
B) AutoSize
C) SizeMode
D) Redraw
Question
In C#, the equal sign (=) is known as the ____________.

A) equality operator
B) parity operator
C) assignment operator
D) transfer operator
Question
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) prototyping
B) design time
C) visual planning
D) application progression
Question
A ____________ property can be set to one of two possible values:

A) Boolean
B) Binary
C) Singular
D) Toggle
Question
Which of the following statements would display the number 25 in a Label control named ouputLabel?

A) outputLabel.Text = 25;
B) outputLabel.Text = "25";
C) outputLabel(25);
D) outputLabel = "25";
Question
The ____________ can be accessed from the Properties window by clicking the ellipses (…) appearing next to the Font property's value.

A) Text designer
B) Font dialog box
C) Text editor
D) Font selector
Question
____________ is a feature of Visual Studio that provides automatic code completion as you write programming statements.

A) IntelliSense
B) AutoComplete
C) Snippet
D) CodeHelper
Question
The ____________ property allows you to set the font, font style, and size of a control's text.

A) Appearance
B) Text
C) Font
D) Graphics
Question
You can use a(n) ____________ control to display a graphic image on a form.

A) Image
B) Graphics
C) Texture2D
D) PictureBox
Question
When you want to display text on a form but not allow the user to change the text, you use a ____________.

A) String control
B) Label control
C) Text control
D) Font control
Question
Which of the following statements would clear the text displayed in a Label control named cityLabel?

A) cityLabel.Text = "empty";
B) cityLabel.Text = "none";
C) cityLabel.Text = "clear";
D) cityLabel.Text = "";
Question
A Label control's ____________ property can be used to change the alignment of text within the Label.

A) TextPosition
B) DisplayFont
C) TextAlign
D) HorizontalAlign
Question
The standard notation for referring to a control's property in code is:

A) ControlName.PropertyName
B) ControlName->PropertyName
C) ControlName::PropertyName
D) ControlName
Question
Which one of the following is not a valid setting for a Label control's BorderStyle property?

A) FixedSingle
B) None
C) Fixed3D
D) FixedDouble
Question
The time during which an application is executing is referred to as ____________.

A) up time
B) execution
C) run time
D) instancing
Question
When a string is written into a program's code, it is called a(n) ____________.

A) string literal
B) typed string
C) encoded string
D) string constant
Question
When you write the values true or false in code, they must be written in all lowercase letters.
Question
Once you have created a PictureBox control, you use its ____________ property to specify the image it will display.

A) Picture
B) Image
C) Source
D) Display
Question
____________ are used by professional programmers to embed extensive documentation in a program' source code.

A) Line comments
B) Block comments
C) Documentation comments
D) Embedded comments
Question
____________ is a term that refers to an image's width to height ratio.

A) Area
B) Bounding box
C) Aspect ratio
D) UV map
Question
____________ is the default value of the PictureBox control's SizeMode property.

A) AutoSize
B) Normal
C) Zoom
D) StretchImage
Question
The indentation of statements inside methods, classes, and namespaces is a convention that virtually all programmers follow.
Question
A line comment does not have to occupy an entire line, so a line comment can appear after an executable statement.
Question
When a PictureBox control's SizeMode property is set to ____________, the image is uniformly resized to fit the PictureBox without losing its original aspect ratio.

A) Normal
B) Zoom
C) CenterImage
D) StretchImage
Question
When a method executes, the statements in the method always execute in the order that they appear, from the beginning of the method to the end of the method.
Question
Assuming an application has a PictureBox control named profilePictureBox, which one of the following assignment statements will hide the PictureBox from the user at run time?

A) profilePictureBox.Visible = False;
B) profilePictureBox.Visible = false;
C) profilePictureBox.Invisible = True;
D) profilePictureBox.Invisible = true;
Question
Comments are short notes intended for the compiler to read and interpret.
Question
A(n) ____________ can occupy multiple consecutive lines in a program. It starts with /* (a forward slash followed by an asterisk), and ends with */ (an asterisk followed by a forward slash).

A) line comment
B) block comment
C) short comment
D) documentation comment
Question
When you use the Properties window to change a control's Visible property at design time, the control will become invisible in the Designer.
Question
A(n) ____________ appears on one line in a program and begins with two forward slashes (//).

A) line comment
B) short comment
C) block comment
D) documentation comment
Question
Most controls have a(n) ____________ property that determines whether the control can be seen by the user at run time.

A) Enabled
B) Invisible
C) Show
D) Visible
Question
Block comments make it easier to write long explanations because you do not have to mark every line with a comment symbol.
Question
A control's Visible property cannot be modified in code.
Question
____________ are short notes placed in a program's source code, explaining how the program works.

A) Sketches
B) Tags
C) Comments
D) Labels
Question
In C#, there are three types of comments: line comments, block comments, and compilation comments.
Question
Writing comments should be avoided, especially for large and complex programs.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/131
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Introduction to Visual C#
1
Programmers commonly use ____________ in their code to create a sense of visual organization.

A) different font colors
B) documentation comments
C) blank lines and indentation
D) bold images, such as photos
C
2
The ____________ shows a description of the 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) Debug dialog box
B) Crash pop up
C) Error List window
D) Just In Time debugger
C
3
The ____________ file contains an application's start-up code, which executes when the application runs.

A) Main.cs
B) Code.cs
C) Program.cs
D) Source.cs
C
4
Which one of the following Button control names is a legal C# identifier?

A) _DisplayOption5Button
B) Exit!Button
C) *Clear*Button*
D) delete Record Button
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
5
The ____________ naming convention gets its name because the uppercase characters that appear in a name are sometimes reminiscent of a camel's humps.

A) camelCase
B) Pascal
C) Hungarian notation
D) CaMeL style
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
6
A ____________ is a small pop-up window, also known as a dialog box, that displays a message.

A) standard window
B) pop up
C) banner
D) message box
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
7
A ____________ is a declared block in a program between braces {…} that holds classes.

A) method
B) program
C) namespace
D) list
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
8
A(n) ____________ event occurs on a control when the user clicks the mouse on a control while the program is running.

A) Action
B) Click
C) Live
D) Mouse
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
9
An easy way to switch between the Designer and the code editor is to click the ____________ for the desired window. This only works if both the code file and designer file have already been opened.

A) icon
B) tab
C) button
D) bounding box
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
10
When learning computer programming, it is traditional to start by learning to write a ____________ program.

A) Simple
B) Hello World
C) Pseudocode
D) K&R Style
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
11
A(n) ____________ is a logical container in a program that holds methods (as well as other program elements).

A) event
B) namespace
C) queue
D) class
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
12
Which one of the following Button control names is not a legal C# identifier?

A) _calculateTotalButton
B) printSalesReportButton
C) clear_customer_names_button
D) 1stPlayerStartButton
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
13
When you enter a statement into the code editor, Visual Studio analyzes it, and if a syntax error is found, it is ____________.

A) automatically corrected
B) underlined with a jagged line
C) crossed out
D) highlighted
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
14
To close an application's form in code, you use the statement ____________.

A) me.Quit();
B) this.Close();
C) form.Exit();
D) app.Stop();
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
15
The PictureBox control's ____________ property determines whether the image stored in the control will cause the control to be shrunk or expanded.

A) DisplayMode
B) Visible
C) SizeMode
D) Render
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
16
The file named ____________ contains code associated with a form named Form1.

A) Form1.cs
B) MainForm.cs
C) Control.cs
D) Window.cs
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
17
A(n) ____________ is a method that executes when a specific event (such as clicking the mouse) takes place while an application is running.

A) action sequencer
B) feature coordinator
C) event handler
D) incident manager
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
18
The ____________ directives appearing at the top of a C# source code file indicate which namespaces the program will use. Usually, these namespaces belong to the .NET Framework.

A) include
B) namespace
C) public
D) using
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
19
A(n) ____________ is a sequence of one or more programming statements (code) that performs some operation.

A) algorithm
B) method
C) class
D) namespace
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
20
Code containers, such as namespaces, classes, and methods, use ____________ to enclose code.

A) braces ({})
B) asterisks (**)
C) parentheses (())
D) brackets ([])
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
21
When a(n) ____________ appears around an object in the Visual Studio Designer, it indicates that the object is selected and is ready for editing.

A) sizing handle
B) editing icon
C) bounding box
D) frame
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
22
A control's ____________ property identifies the control in the application's code and in the Visual Studio environment.

A) Text
B) Source
C) Tag
D) Name
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
23
Which one of the following statements correctly display the text "Hello" in a message box?

A) Messagebox("Hello")
B) MessageBox.Show("Hello");
C) msgbox(Hello);
D) msgbox.show(Hello)
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
24
In C# code, ____________ are required to indicate the beginning and the end of a string.

A) single quotation marks, such as (')
B) double quotation marks, such as (")
C) parentheses
D) semicolons
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
25
A file that contains program code is called a ____________.

A) source code file
B) program file
C) C# file
D) cs file
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
26
Selecting the ____________ button in the Properties window causes the items in the window to be displayed in logical groups.

A) Grouped
B) Categorized
C) Ordered
D) Type
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
27
The ____________ property can be used to change a form's width and height, measured in pixels.

A) Area
B) Resolution
C) Size
D) Rectangle
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
28
The Visual Studio ____________ window shows a scrollable list of controls that you can add to a form.

A) Collection
B) Bank
C) Toolbox
D) Shelf
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
29
____________ allow you to resize a selected object in the Visual Studio Designer by clicking and dragging the mouse when the mouse cursor becomes a two-headed arrow.

A) Bounding boxes
B) Sizing handles
C) ToolTips
D) Properties
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
30
To delete a control, you can select it on a form and then press the ____________ key on the keyboard.

A) Delete
B) Z
C) Tab
D) X
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
31
If you want your code to execute a method, write a statement known as a(n) ____________.

A) event handler
B) executor statement
C) initialization routine
D) method call
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
32
Just as a period marks the end of a sentence, a ____________ marks the end of a programming statement in C#.

A) space
B) underscore
C) semicolon
D) period
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
33
In programming we use the term ____________ to mean a sequence of characters that could be enclosed in quotation marks "…".

A) statement
B) thread
C) word
D) string
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
34
A Button control has a ____________ property that holds a string to be displayed on the face of the button.

A) Text
B) Name
C) Description
D) Face
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
35
When selected in the Properties window toolbar, the ____________ button causes the items in the Properties window to be displayed in alphabetical order.

A) Arrange
B) Ascending
C) Descending
D) Alphabetical
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
36
To run an application in Visual Studio, press the ____________ button on the keyboard or click the Start Debugging button on the toolbar.

A) Enter
B) F5
C) Tab
D) Shift
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
37
In the design window, you can click and drag a control to a new location when the mouse cursor is positioned inside the control and the mouse cursor becomes a ____________.

A) two-headed arrow
B) four-headed arrow
C) hand icon
D) scissor icon
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
38
The ____________ property of a form determines the text that is displayed in a form's title bar.

A) Title
B) Caption
C) Name
D) Text
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
39
When you select an object in the Visual Studio Designer, the object's size, color, text, and other characteristics are displayed in the ____________ window.

A) Designer
B) Editing
C) Object
D) Properties
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
40
Control names are also known as ____________, the same term used for variables in programs.

A) tags
B) identifiers
C) values
D) labels
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
41
The Label control can be found in the ____________ group of the Toolbox.

A) Common Controls
B) Containers
C) Data
D) Components
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
42
When a piece of data such as 23 or "Hello" is written into a program's code, it is called a ____________.

A) constant
B) sentinel
C) value
D) literal
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
43
Each Label control has a ____________ property that allows you to display a rectangle around the control's text.

A) Border
B) FrameStyle
C) Frame
D) BorderStyle
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
44
In code, you use a(n) ____________ to store a value in a control's property.

A) string literal
B) assignment statement
C) dialog box
D) constant
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
45
Label controls have a(n) ____________ property that affects the way they can be resized.

A) Resize
B) AutoSize
C) SizeMode
D) Redraw
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
46
In C#, the equal sign (=) is known as the ____________.

A) equality operator
B) parity operator
C) assignment operator
D) transfer operator
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
47
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) prototyping
B) design time
C) visual planning
D) application progression
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
48
A ____________ property can be set to one of two possible values:

A) Boolean
B) Binary
C) Singular
D) Toggle
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following statements would display the number 25 in a Label control named ouputLabel?

A) outputLabel.Text = 25;
B) outputLabel.Text = "25";
C) outputLabel(25);
D) outputLabel = "25";
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
50
The ____________ can be accessed from the Properties window by clicking the ellipses (…) appearing next to the Font property's value.

A) Text designer
B) Font dialog box
C) Text editor
D) Font selector
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
51
____________ is a feature of Visual Studio that provides automatic code completion as you write programming statements.

A) IntelliSense
B) AutoComplete
C) Snippet
D) CodeHelper
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
52
The ____________ property allows you to set the font, font style, and size of a control's text.

A) Appearance
B) Text
C) Font
D) Graphics
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
53
You can use a(n) ____________ control to display a graphic image on a form.

A) Image
B) Graphics
C) Texture2D
D) PictureBox
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
54
When you want to display text on a form but not allow the user to change the text, you use a ____________.

A) String control
B) Label control
C) Text control
D) Font control
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following statements would clear the text displayed in a Label control named cityLabel?

A) cityLabel.Text = "empty";
B) cityLabel.Text = "none";
C) cityLabel.Text = "clear";
D) cityLabel.Text = "";
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
56
A Label control's ____________ property can be used to change the alignment of text within the Label.

A) TextPosition
B) DisplayFont
C) TextAlign
D) HorizontalAlign
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
57
The standard notation for referring to a control's property in code is:

A) ControlName.PropertyName
B) ControlName->PropertyName
C) ControlName::PropertyName
D) ControlName
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
58
Which one of the following is not a valid setting for a Label control's BorderStyle property?

A) FixedSingle
B) None
C) Fixed3D
D) FixedDouble
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
59
The time during which an application is executing is referred to as ____________.

A) up time
B) execution
C) run time
D) instancing
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
60
When a string is written into a program's code, it is called a(n) ____________.

A) string literal
B) typed string
C) encoded string
D) string constant
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
61
When you write the values true or false in code, they must be written in all lowercase letters.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
62
Once you have created a PictureBox control, you use its ____________ property to specify the image it will display.

A) Picture
B) Image
C) Source
D) Display
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
63
____________ are used by professional programmers to embed extensive documentation in a program' source code.

A) Line comments
B) Block comments
C) Documentation comments
D) Embedded comments
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
64
____________ is a term that refers to an image's width to height ratio.

A) Area
B) Bounding box
C) Aspect ratio
D) UV map
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
65
____________ is the default value of the PictureBox control's SizeMode property.

A) AutoSize
B) Normal
C) Zoom
D) StretchImage
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
66
The indentation of statements inside methods, classes, and namespaces is a convention that virtually all programmers follow.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
67
A line comment does not have to occupy an entire line, so a line comment can appear after an executable statement.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
68
When a PictureBox control's SizeMode property is set to ____________, the image is uniformly resized to fit the PictureBox without losing its original aspect ratio.

A) Normal
B) Zoom
C) CenterImage
D) StretchImage
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
69
When a method executes, the statements in the method always execute in the order that they appear, from the beginning of the method to the end of the method.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
70
Assuming an application has a PictureBox control named profilePictureBox, which one of the following assignment statements will hide the PictureBox from the user at run time?

A) profilePictureBox.Visible = False;
B) profilePictureBox.Visible = false;
C) profilePictureBox.Invisible = True;
D) profilePictureBox.Invisible = true;
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
71
Comments are short notes intended for the compiler to read and interpret.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
72
A(n) ____________ can occupy multiple consecutive lines in a program. It starts with /* (a forward slash followed by an asterisk), and ends with */ (an asterisk followed by a forward slash).

A) line comment
B) block comment
C) short comment
D) documentation comment
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
73
When you use the Properties window to change a control's Visible property at design time, the control will become invisible in the Designer.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
74
A(n) ____________ appears on one line in a program and begins with two forward slashes (//).

A) line comment
B) short comment
C) block comment
D) documentation comment
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
75
Most controls have a(n) ____________ property that determines whether the control can be seen by the user at run time.

A) Enabled
B) Invisible
C) Show
D) Visible
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
76
Block comments make it easier to write long explanations because you do not have to mark every line with a comment symbol.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
77
A control's Visible property cannot be modified in code.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
78
____________ are short notes placed in a program's source code, explaining how the program works.

A) Sketches
B) Tags
C) Comments
D) Labels
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
79
In C#, there are three types of comments: line comments, block comments, and compilation comments.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
80
Writing comments should be avoided, especially for large and complex programs.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 131 flashcards in this deck.