Question 1
Question
A(n) __________ is the thin dotted line that encloses an object in the Designer .
Answer
-
selection marker
-
control binder
-
bounding box
-
object container
Question 2
Question
The small squares that appear on the right edge, bottom edge, and lower-right cor-
ner of a form’s bounding box are called __________.
Answer
-
sizing hooks
-
form edges
-
bounding tags
-
sizing handles
Question 3
Question
__________ is the name of the blank form that Visual Studio initially creates in a new project.
Question 4
Question
The __________ property holds the text that is displayed on the face of the button.
Question 5
Question
A file that contains program code is called a(n) __________.
Answer
-
destination code file
-
executable file
-
machine language file
-
source code file
Question 6
Question
A namespace is container that holds __________.
Answer
-
methods
-
names
-
spaces
-
classes
Question 7
Question
A(n) __________ is a method that executes when a specific event takes place while an application is running.
Answer
-
action process
-
event handler
-
runtime procedure
-
event method
Question 8
Question
The statement MessageBox.Show("Hello World") ; is an example of a(n) __________.
Answer
-
method call
-
namespace
-
Click event
-
event handler
Question 9
Question
In programming we use the term string to mean __________.
Question 10
Question
A(n) __________ marks the end of a programming statement in C#.
Answer
-
semicolon
-
period
-
hyphen
-
underscore
Question 11
Question
A piece of data that is written into a program’s code is a(n) ___________.
Answer
-
identifier
-
specifier
-
keyword
-
literal
Question 12
Question
The time during which you build the GUI and write the application’s code is referred to as __________.
Answer
-
run time
-
design time
-
code time
-
planning
Question 13
Question
The time during which an application is executing is referred to as __________.
Answer
-
go time
-
design time
-
execution
-
run time
Question 14
Question
When you want to display text on a form, you use a __________ control.
Answer
-
Button
-
PictureBox
-
Label
-
TextBox
Question 15
Question
The __________ property allows you to set the font, font style, and size of the control’s text.
Question 16
Question
A __________ property can be set to one of two possible values: True or False.
Answer
-
Boolean
-
Logical
-
Binary
-
Dual
Question 17
Question
Label controls have a(n) __________ property that controls the way they can be resized.
Answer
-
Stretch
-
AutoSize
-
Dimension
-
Fixed
Question 18
Question
The __________ property can be used to change the text’s alignment in the label.
Answer
-
TextPosition
-
AutoAlign
-
TextCenter
-
TextAlign
Question 19
Question
In code, you use a(n) __________ to store a value in a control’s property.
Answer
-
Click event
-
method call
-
assignment statement
-
Boolean value
Question 20
Question
The equal sign ( = ) is known as the __________.
Answer
-
equality symbol
-
assignment operator
-
equality operator
-
property position
Question 21
Question
The standard notation for referring to a control’s property in code is __________.
Answer
-
ControlName . PropertyName
-
ControlName = PropertyName
-
PropertyName . ControlName
-
PropertyName = ControlName
Question 22
Question
__________ is a feature of Visual Studio that provides automatic code completion as you write programming statements.
Answer
-
AutoCode
-
AutoComplete
-
IntelliSense
-
IntelliCode
Question 23
Question
You can use a(n) __________ control to display a graphic image on a form.
Answer
-
Graphics
-
PictureBox
-
Drawing
-
ImageBox
Question 24
Question
Once you have created a PictureBox control, you use its __________ property to specify the image that it will display.
Answer
-
Image
-
Source
-
DrawSource
-
ImageList
Question 25
Question
The PictureBox control’s __________ property specifies how the control’s image is to be displayed.
Answer
-
RenderMode
-
DrawMode
-
SizeMode
-
ImageMode
Question 26
Question
__________ is the image’s width to height ratio.
Answer
-
Aspect ratio
-
Size ratio
-
Projection ratio
-
Area ratio
Question 27
Question
Most controls have a __________ property that determines whether the control is visible on the form at run time.
Answer
-
Render
-
Viewable
-
Visible
-
Draw
Question 28
Question
A(an) __________ appears on one line in a program.
Answer
-
inline comment
-
line comment
-
forward comment
-
block comment
Question 29
Question
A __________ can occupy multiple consecutive lines in a program.
Answer
-
block comment
-
square comment
-
multiline comment
-
machine comment
Question 30
Question
Programmers commonly use blank lines and indentations in their code to create a sense of __________.
Answer
-
logic
-
visual organization
-
documentation
-
program flow
Question 31
Question
To close an application’s form in code, you use the statement __________.
Answer
-
Close();
-
Close.This();
-
Close()
-
this.Close();
Question 32
Question
Changing an object’s Text property also changes the object’s name.
Question 33
Question
When a form is created, its Text property is initially set to the same value as the form’s name.
Question 34
Question
The form’s title is displayed in the bar along the top of a form.
Question 35
Question
C# source code files always end with the .cs extension.
Question 36
Question
You add your own code to the Progam.cs file as you develop an application.
Question 37
Question
C# code is organized as methods, which are contained inside classes, which are con-
tained inside namespaces.
Question 38
Question
When you double-click a control in the Designer , Visual Studio not only creates an empty event handler, but it also writes some code that you don’t see, elsewhere in the project that is necessary for the event handler to properly function.
Question 39
Question
A Label control’s Text property is initially set to the same value as the Label control’s name.
Question 40
Question
When a Label control’s AutoSize property is set to True, you cannot manually change the size of the control by clicking and dragging its bounding box.
Question 41
Question
By default, a label’s text is aligned with the bottom and right edges of the label’s bounding box.
Question 42
Question
Label controls are useful for displaying output while an application is running.
Question 43
Question
The assignment operator assigns the value that appears on its left side to the item that appears on its right side.
Question 44
Question
PictureBox controls also have a BorderStyle property that works just like a Label control’s BorderStyle property.
Question 45
Question
PictureBox controls also have a BorderStyle property that works just like a Label control’s BorderStyle property.
Question 46
Question
Buttons are the only controls that can respond to Click events.
Question 47
Question
The Visible property is a Binary property, which means it can be set only to the values 1 and 0.
Question 48
Question
When you write the values true or false in code, they must be written in all lowercase letters.
Question 49
Question
In C# there are three types of comments: line comments, block comments, and documentation comments.
Question 50
Question
To close an application’s form in code, you use the statement Close.This();
Question 51
Question
The Visual Studio code editor examines each statement as you type it, and reports any syntax errors that are found.