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
Q

To add functionality to a control such as a Button or ListBox, you need to __________ for it.

A

Register an event

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

__________ 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.

A

ComboBox

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

The __________ method associated with the predefined dialog classes, like FontDialog or ColorDialog causes the dialog box to be displayed.

A

ShowDialog

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

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.

A

Dynamic

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

A stack represents a simple __________ collection.

A

Last in, first out (LIFO)

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

__________ enables algorithms to be written where a number of details, including the data type can be specified later.

A

Generics

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

With C#, you have single inheritance, but a class can __________ mulitple interfaces.

A

Implement

32
Q

__________ allows you to create a general class and then define specialized classes that have access to the members of the general class.

A

Inheritance

33
Q

Classes that inherit from a base class are called __________ classes.

A

Derived

34
Q

True or False:

Associating a method in your program to an event is called delegating the event.

A

False

35
Q

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.

A

True

36
Q

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.

A

True

37
Q

True or False:

To add functionality to the ListBox control object, you register the DoubleClick( ) event handler method.

A

False

38
Q

True or False:

Multiple selections cannot be made from a ListBox control object.

A

False

39
Q

True or False:
The Items, SelectedItems, and SelectedIndices properties are useful for retrieving selected items from the ListBox object.

A

True

40
Q

True or False:

ListBox objects have an added feature in that they contain their own text box field as part of the objects.

A

False

41
Q

True or False:

TabControl objects, which are placed on top of button objects, enable multiple tabs to appear on a form.

A

False

42
Q

True or False:

Menus offer the advantage of requiring less real estate on the screen.

A

True

43
Q

True or False:

A test plan to verify the accuracy of the application should be designed before coding the application.

A

True

44
Q

True or False:

To add an icon for the application, add a PictureBox object and set the Image property to the desired .jpg image.

A

False

45
Q

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.

A

True

46
Q

True or False:

A number of objects can be wired to the same event-handler method.

A

True

47
Q

True or False:

To wire a method to an event, such as a menu selection, means you associating multiple methods to the event.

A

False

Only associating one method.

48
Q

True or False:

An overloaded method must have exactly the same signiture as the method it is overriding.

A

False

Has to have different signitures.

49
Q
True or False:
Partial classes enable a class to be split into two or more files and combined when the applicationis compiled and ran.
A

True

50
Q

True or False:

For classes of animal and dog, animal would be considered the derived class.

A

False

Animal is the base class, dog is the derived class.

51
Q

True or False:

Constructors, which use the same identifier as their class, are normally defined with protected access.

A

False

52
Q

True or False:

When you override a method, the signatures of the methods must match.

A

True

53
Q

True or False:

Protected access enables derived classes to have access to change data in the base class.

A

True

54
Q
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.
A

True

55
Q

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.

A

False

Use the keyword base

56
Q

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.

A

True

57
Q
True or False:
Adding an abstract modifier to a class prohibits other classes from deriving from that class.
A

False

It prohibits instantiating

58
Q
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.
A

True

59
Q
True or False:
Multiple classes can implement the same interface, but a class can implement only one interface.
A

False

60
Q

True or False:
A sequential order exists with methods for Windows applications. The program exits after all statements have been sequentially executed.

A

False

61
Q

True or False:
Visual Studio automatically imports the System.Windows.Forms namespace for you when you create a Windows Application Project using IDE.

A

True

62
Q
True or False:
public class aForm : Form
With the heading above, Form is the derived class.
A

False

63
Q

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.

A

False.

It adds it to the title bar.

64
Q

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.

A

True

65
Q

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.

A

False

66
Q

True or False:

Avoid using bright colors (such as reds), especially for backgrounds because they can result in user eye fatigue.

A

True

67
Q

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.

A

True

68
Q

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.

A

True

69
Q

True or False:
Instead of creating assignments in the constructor methods, Visual Studios creates a seperate InitializeComponent( ) method to build the form at runtime.

A

True

70
Q

True or False:

While in Design view, you can select controls from the Toolbox window and drag and drop them onto your form container.

A

True

71
Q

True or False:

It is more important to spend time designing a prototype for Windows applications than console-based applications.

A

True

72
Q

True or False:

The order of when labels, buttons and controls are placed on the form does not impact anything.

A

False

73
Q

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.

A

False

TextBox

74
Q

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.

A

False

75
Q

True or False:

In order to change the background color for the application, you could set the BackColor property of the form.

A

True