Chapter 7 Two Truths & a Lie

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Two of the following statements are true, and one is false. Identify the false statement: a. Because the choice of colors in C# is limited, you are required to create custom colors for many GUI applications. b. When you are designing a Form, color choices appear in a list next to the BackColor and ForeColor properties in the IDE's Properties list. c. The complete name of the color pink in C# is System.Drawing.Color.Pink.

a. Because the choice of colors in C# is limited, you are required to create custom colors for many GUI applications.

Two of the following statements are true, and one is false. Identify the false statement: a. When you click an item in a menu strip, the most common result is to initiate an action. b. When you drag a MenuStrip Control object onto a Form using the Visual Studio IDE, the MenuStrip is added horizontally across the top of the Form, just below the title bar. c. The default event for MenuStrip is Click().

a. When you click an item in a menu strip, the most common result is to initiate an action.

Two of the following statements are true, and one is false. Identify the false statement: a. With a ListBox Control, the user can select only one option at a time. b. A ComboBox is similar to a ListBox, except that it displays an additional editing control that allows users to select from the list or to enter new text. c. A CheckedListBox is similar to a ListBox, with check boxes appearing to the left of each desired item.

a. With a ListBox Control, the user can select only one option at a time.

Two of the following statements are true, and one is false. Identify the false statement: a. The Control class implements basic functionality required by GUI objects that a user sees on the screen. b. Most Controls have Font and ForeColor properties. c. Every Control has Width and Height properties.

b. Most Controls have Font and ForeColor properties.

Two of the following statements are true, and one is false. Identify the false statement: a. Setting the Anchor property causes a Control to remain at a fixed distance from the side of a container when the user resizes it. b. Setting the Dock property attaches a Control to the side of a container so that the Control's size does not change when the container's size is adjusted. c. The GroupBox and Panel controls are ContainerControls.

b. Setting the Dock property attaches a Control to the side of a container so that the Control's size does not change when the container's size is adjusted.

Two of the following statements are true, and one is false. Identify the false statement: a. A PictureBox is a Control in which you can display graphics from an image file. b. The default event for a PictureBox is LoadImage(). c. The Image property of a PictureBox holds the name of a file that contains a picture.

b. The default event for a PictureBox is LoadImage().

Two of the following statements are true, and one is false. Identify the false statement: a. You use the Font class to change the appearance of printed text on Controls in your Forms. b. When designing a Control on a Form, you must select a Font from the Properties list in the IDE. c. The Font class includes several overloaded constructors.

b. When designing a Control on a Form, you must select a Font from the Properties list in the IDE.

Two of the following statements are true, and one is false. Identify the false statement: a. By using the Form Designer and the Properties window, you save time and eliminate many chances for error. b. When you use the Form Designer to drag a Label onto a Form, no constructor call is needed for the Label. c. You can use the Properties Window to set properties for a Label such as Font, Location, Size, and Text.

b. When you use the Form Designer to drag a Label onto a Form, no constructor call is needed for the Label.

Two of the following statements are true, and one is false. Identify the false statement: a. The MonthCalendar and DateTimePicker Controls allow you to retrieve date and time information. b. The default event for MonthCalendar is DateChanged(). c. The DateTimePicker Control displays a small clock when you click it.

c. The DateTimePicker Control displays a small clock when you click it.

Two of the following statements are true, and one is false. Identify the false statement: a. CheckBox objects are GUI widgets that the user can click to select or deselect an option; when a Form contains multiple CheckBoxes, any number of them can be checked or unchecked at the same time. b. RadioButtons are similar to CheckBoxes, except that when they are placed on a Form, only one RadioButton can be selected at a time—selecting any RadioButton automatically deselects the others. c. The default event for a CheckBox is xxx_CheckBoxChanged(), and the default event for a RadioButton is xxxRadioButtonChanged().

c. The default event for a CheckBox is xxx_CheckBoxChanged(), and the default event for a RadioButton is xxxRadioButtonChanged().

Two of the following statements are true, and one is false. Identify the false statement: a. A LinkLabel is a child class of Label, and it provides the additional capability to link the user to other sources. b. The default event for a Control is the method whose shell is created automatically when you double-click the Control while designing a project in the IDE. Users most likely expect to generate this event when they encounter the Control in a working application. c. When you create a LinkLabel, it appears as italicized underlined text, and when you pass the mouse pointer over a LinkLabel, the pointer changes to an hourglass.

c. When you create a LinkLabel, it appears as italicized underlined text, and when you pass the mouse pointer over a LinkLabel, the pointer changes to an hourglass.


Set pelajaran terkait

HESI case study "Neurocognitive Disorder: Alzheimer's Disease (Early Onset)"

View Set

A&P Endocrine System: Hypothalamus & Pituitary Gland

View Set

ACCT 210 chapter 9: PPE (Plant Assets) and how to record accumlated depreciation and deprciation expense

View Set

Business - Module Business Ownership

View Set

11 Steps in the Marketing Research Process

View Set

MANA 3335 (9-13) Learn it & Assignment Questions

View Set