Test 3 Flashcards

1
Q

All changes to the property values can be made in the __________ window at design time.

A

Properties

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

The __________ options enable you to increase or decrease the amount of blank space displayed between objects.

A

Horizontal and vertical spacing

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

__________ objects are normally used to provide descriptive text for another control.

A

Label

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

Probably the most commonly used control is the __________. It can be used to enter data or display text during run time.

A

Textbox

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

If you accidentally double-click on the form, you register the __________ event.

A

Form load

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

When a button is clicked by a user, its __________ is automatically called up.

A

Event handler method

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

To cause the cursor to be positioned in a specific TextBox, invoke the __________ method on that control.

A

Focus

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

The __________ property for the form can be set to a specific button to allow the Enter key to be associated with the button, so that pressing the Enter key is the same as clicking the button.

A

Accept button

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

It is a good idea to consistently use an appropriate prefix for the user interface elements. you might prefix buttons with __________.

A

btn

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

For both Windows applications, execution begins with the first statement in the __________ method.

A

Main

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

Most classes, including control classes such as Label, Button, and TextBox, used with Windows applications are defined in the __________ namespace.

A

System.Windows.Forms

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

Inheriting characteristics from base classes adds __________ to your program without the burden of your having to do additional coding.

A

Functionality

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

A large field of research in the field of computing is focused on __________. The research concentrates on the design and implementation of interactive computing systems for human use.

A

hci

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

With Windows applications, both the files, Form1.cs and Form1.Designer.cs, only include part of the definition for the class in their file. Thus, both include the keyword __________ in their class heading definition.

A

Partial

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

The ListBox __________ property has selection values of MultiSimple, MultiExtended, None and One.

A

SelectedMode

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

In order to add values to the ListBox at run time, invoke the Add( ) method on the __________ property.

A

Items

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

The __________ property can be set for RadioButton controls to indicate which button is initially selected.

A

Checked

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

The default event-handler method fro CheckBox objects is __________.

A

CheckChanged

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

Objects like colorDialog, fontDialog, ToolTip and MenuStrip are added to the __________ for the application when they are dragged and dropped onto the form.

A

Component tray

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

You can assign a(n) __________ to controls, such as text boxes or menu items, so that text is displayed when the cursor is rested on top of the component.

A

ToolTip

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

A(n) __________ is an underlined character in the text of a menu item or on the label of a control such as a button that enables user to click the button, without using the mouse, by pressing the Alt key incombination with the predefined character.

A

AccessKey

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

The ListBox object allows multiple options for retrieving selections. When multiple selections are made, to retrieve all of the selections, the __________ property cannot be used since it retrieves a single selection, the first one selected.

A

Text

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

All event-handler take two parameters. The first parameter, object sender, represents the source that raises the event, and the second parameter is the data for the event; thus, they normally have the same __________.

A

Signature

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

__________ controls can be used to display a list of items from which the user can make single or multiple selections. A scroll bar is automatically added to the control if the total number of items exceeds the number that can be displayed.

A

ListBox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
To add functionality to a control such as a Button or ListBox, you need to __________ for it.
Register an event
26
__________ objects have an added feature over a ListBox objects that they contain their own text box field as part of the object, but they allow only a single selection to be made.
ComboBox
27
The __________ method associated with the predefined dialog classes, like FontDialog or ColorDialog causes the dialog box to be displayed.
ShowDialog
28
Both var and __________ enables developers to not associate a specific data type to the actual data when the memory declaration for the variable is written.
Dynamic
29
A stack represents a simple __________ collection.
Last in, first out (LIFO)
30
__________ enables algorithms to be written where a number of details, including the data type can be specified later.
Generics
31
With C#, you have single inheritance, but a class can __________ mulitple interfaces.
Implement
32
__________ allows you to create a general class and then define specialized classes that have access to the members of the general class.
Inheritance
33
Classes that inherit from a base class are called __________ classes.
Derived
34
True or False: | Associating a method in your program to an event is called delegating the event.
False
35
True or False: The Items property can be used to set the initial values for a ListBox object. The Items editor is opened when you click the ellipsis to the right of the Collection property in the Properties window.
True
36
True or False: Use the Format>Align menu options to line up associated controls so controls are consistently placed in the same row or column.
True
37
True or False: | To add functionality to the ListBox control object, you register the DoubleClick( ) event handler method.
False
38
True or False: | Multiple selections cannot be made from a ListBox control object.
False
39
True or False: The Items, SelectedItems, and SelectedIndices properties are useful for retrieving selected items from the ListBox object.
True
40
True or False: | ListBox objects have an added feature in that they contain their own text box field as part of the objects.
False
41
True or False: | TabControl objects, which are placed on top of button objects, enable multiple tabs to appear on a form.
False
42
True or False: | Menus offer the advantage of requiring less real estate on the screen.
True
43
True or False: | A test plan to verify the accuracy of the application should be designed before coding the application.
True
44
True or False: | To add an icon for the application, add a PictureBox object and set the Image property to the desired .jpg image.
False
45
True or False: The Form object also has a BackgroundImage property that can be set to display a picture on the background. Select the form and then use the Properties window to browse to a location that contains the file.
True
46
True or False: | A number of objects can be wired to the same event-handler method.
True
47
True or False: | To wire a method to an event, such as a menu selection, means you associating multiple methods to the event.
False | Only associating one method.
48
True or False: | An overloaded method must have exactly the same signiture as the method it is overriding.
False | Has to have different signitures.
49
``` True or False: Partial classes enable a class to be split into two or more files and combined when the applicationis compiled and ran. ```
True
50
True or False: | For classes of animal and dog, animal would be considered the derived class.
False | Animal is the base class, dog is the derived class.
51
True or False: | Constructors, which use the same identifier as their class, are normally defined with protected access.
False
52
True or False: | When you override a method, the signatures of the methods must match.
True
53
True or False: | Protected access enables derived classes to have access to change data in the base class.
True
54
``` True or False: The reserved word base, placed in the constructor heading before the opening curly brace, is used to indicate the base class constructor should be called. ```
True
55
True or False: When you have a method that has the same name in both the base and derived classes, use the keyword super to refer to the method in the base class.
False | Use the keyword base
56
True or False: Generics enable you to identify where data will change in the code segment by putting a placeholder in the code for the type parameters.
True
57
``` True or False: Adding an abstract modifier to a class prohibits other classes from deriving from that class. ```
False | It prohibits instantiating
58
``` True or False: When a class implements an interface, the body of each of the interfaces's methods has to be written in the new class. ```
True
59
``` True or False: Multiple classes can implement the same interface, but a class can implement only one interface. ```
False
60
True or False: A sequential order exists with methods for Windows applications. The program exits after all statements have been sequentially executed.
False
61
True or False: Visual Studio automatically imports the System.Windows.Forms namespace for you when you create a Windows Application Project using IDE.
True
62
``` True or False: public class aForm : Form With the heading above, Form is the derived class. ```
False
63
True or False: Text = "An Example"; The statement above adds the text "An Example" as the first entry on the form in the bottom left-hand corner.
False. | It adds it to the title bar.
64
True or False: One of the guidelines for good design is to keep an item the same as other items, unless you are trying to call attention to that item.
True
65
True or False: One of the guidelines for good design is try to place as many controls on the form as you are able to without overlapping any.
False
66
True or False: | Avoid using bright colors (such as reds), especially for backgrounds because they can result in user eye fatigue.
True
67
True or False: In order to change the propertiy of a control during design time, select the control, move the cursor into the Properties window edit box (to the right of the property identifier), and type or select a value.
True
68
True or False: The #region is an example of a preprocessor directive. However, C# does not have the seperate preprocessing step you find with some other languages.
True
69
True or False: Instead of creating assignments in the constructor methods, Visual Studios creates a seperate InitializeComponent( ) method to build the form at runtime.
True
70
True or False: | While in Design view, you can select controls from the Toolbox window and drag and drop them onto your form container.
True
71
True or False: | It is more important to spend time designing a prototype for Windows applications than console-based applications.
True
72
True or False: | The order of when labels, buttons and controls are placed on the form does not impact anything.
False
73
True or False: Probably the most commonly used control for both input and output is the button because it adds additional functionality to an application.
False | TextBox
74
True or False: With Windows applications, you write methods called processors to indicate what shoud be done when a mouse is clicked on a button or the press of a key occurs.
False
75
True or False: | In order to change the background color for the application, you could set the BackColor property of the form.
True