Visual Basic Interface Design Practice Quiz (24 questions)

All questions and answers

1. A developer has defined the purpose of an event-driven program with a graphical user interface. What should the developer do next in the design process?

Implement the program logic
Test the program
Choose the project name
Design the user interface

Design the user interface

Explanation

After defining the program’s purpose, the next design step is to design its user interface. Starting implementation or testing skips that step, while choosing a project name is not the stated next step.

2. In a latte-selection application, a user clicks Mocha and then clicks Select Latte. What should the application display and communicate?

A mocha latte picture and a flavored-latte selection notice
A pumpkin spice latte picture and a flavored-latte selection notice
A mocha latte picture and a notice that no flavor was selected
A pumpkin spice latte picture and a notice that no flavor was selected

A mocha latte picture and a flavored-latte selection notice

Explanation

Clicking Mocha displays the mocha latte picture, and clicking Select Latte informs the user that a flavored latte was selected. The pumpkin spice image confuses the button choices, while saying no flavor was selected contradicts the application’s confirmation behavior.

3. In Visual Studio, what does a project represent?

The development environment used to create programs
A single program created using Visual Studio
A reusable interface component placed on a window
A single window used to build and display a program

A single program created using Visual Studio

Explanation

A project is equivalent to a single program created using Visual Studio. A form is a window, a control is an interface component, and Visual Studio is the development environment.

4. A developer is creating a Visual Basic Windows Desktop project and the project-type choices are not already selected. Which sequence should the developer follow?

Choose New Project, select Windows Desktop and Windows Forms Application, enter a name, and choose OK
Choose New Project, enter a name, select Windows Desktop and Windows Forms Application, and choose OK
Choose New Project, select Windows Desktop and Console Application, enter a name, and choose OK
Choose Open Project, select Windows Desktop and Windows Forms Application, enter a name, and choose OK

Choose New Project, select Windows Desktop and Windows Forms Application, enter a name, and choose OK

Explanation

Creating the project involves choosing New Project, selecting Windows Desktop and Windows Forms Application when needed, entering a project name, and choosing OK. Naming the project before selecting its type changes the sequence; Open Project and Console Application select a different task or project type.

5. A developer is building a program in the Visual Studio design workspace and wants to know which object represents the window that will appear when the program runs. What should the developer identify?

The Windows Form object
The Toolbox
The work area
The project

The Windows Form object

Explanation

A Windows Form object is the window used to build the program and display it when it runs. The work area is where the design tab appears, the Toolbox provides controls, and the project represents the program.

6. In a Windows Form, which property holds the value shown in the window’s title bar?

Text
Size
Name
Location

Text

Explanation

The form’s Text property supplies the value displayed in its title bar. Name identifies the object, Size describes its dimensions, and Location describes its position.

7. A developer needs a Windows Form to have a size of 730 by 700. Which values should they enter in the form’s Size property in the Properties window?

700, 730
0, 0
730, 700
Latte Selection

730, 700

Explanation

The form’s Size property is set by entering 730, 700 in the Properties window. Reversing the values swaps the dimensions, while “Latte Selection” is title-bar text and 0, 0 represents position values.

8. A developer wants to place a new Label object near the top of a form. What should they do?

Drag the Label from Solution Explorer to the desired spot and release the mouse button
Change the form’s Text property to the desired spot and press Enter
Drag the Label from Common Controls to the desired spot and release the mouse button
Select the Label in the Properties window and press Enter

Drag the Label from Common Controls to the desired spot and release the mouse button

Explanation

A Label is added by dragging the Label component from the Toolbox’s Common Controls tab onto the form and releasing the mouse button. Solution Explorer is not the component source, and changing a property does not add a control.

9. A developer wants to change a selected label’s font, style, and size. Which action should they take?

Edit the label’s (Name) property, enter the font, style, and size, then press Enter
Open the Text property’s ellipsis button, choose the font, style, and size, then choose OK
Edit the label’s Text property, enter the font, style, and size, then press Enter
Open the Font property’s ellipsis button, choose the font, style, and size, then choose OK

Open the Font property’s ellipsis button, choose the font, style, and size, then choose OK

Explanation

The label’s Font property opens a Font dialog through its ellipsis button, where the font, style, and size can be selected before choosing OK. Text changes displayed wording, while (Name) changes the control’s identifier.

10. You need to rename a selected PictureBox using the Properties window. Which sequence should you follow?

Enter the name in the value column for Size, then press Enter
Enter the name in the value column for (Name), then select another property
Enter the name in the value column for Text, then press Enter
Enter the name in the value column for (Name), then press Enter

Enter the name in the value column for (Name), then press Enter

Explanation

The PictureBox is named by editing its (Name) property’s value and pressing Enter. Editing Text confuses the displayed text with the object name; leaving the property without pressing Enter omits the confirmation step; editing Size changes dimensions instead.

11. A form needs a second PictureBox placed at a location of your choice. What should you do?

Select the existing PictureBox and duplicate it at the new location
Drag another PictureBox component from the Toolbox onto the form and release it
Edit the existing PictureBox’s Size property to create another object
Drag a Label component from the Toolbox onto the form and release it

Drag another PictureBox component from the Toolbox onto the form and release it

Explanation

To add a second PictureBox, drag another PictureBox component from the Toolbox onto the form and release the mouse button. Duplicating the existing object, adding a Label, or editing Size does not follow this procedure.

12. You want one form object to match another object's width and height. Which procedure applies?

Select the reference object, Ctrl-select the object to resize, then choose Format > Make Same Size > Width
Select the object to resize, Ctrl-select the reference, then choose Format > Make Same Size > Both
Select the reference object, Ctrl-select the object to resize, then choose Format > Make Same Size > Both
Select both objects, then choose Format > Align > Bottoms

Select the reference object, Ctrl-select the object to resize, then choose Format > Make Same Size > Both

Explanation

The reference object is selected first, the object to resize is added with Ctrl, and Both applies the reference dimensions in both directions. Reversing the selections changes which object supplies the size; Width changes only one dimension; Align > Bottoms aligns edges rather than sizes.

13. Two PictureBoxes need their lower edges aligned. Which command should you use after selecting both?

Format > Align > Bottoms
Format > Align > Tops
Format > Center in Form > Horizontally
Format > Make Same Size > Both

Format > Align > Bottoms

Explanation

With both PictureBoxes selected, Format > Align > Bottoms aligns their lower edges. Tops aligns their upper edges, horizontal centering positions them relative to the form, and Make Same Size changes dimensions rather than alignment.

14. You have finished editing a Visual Studio project and want to save it for the first time under a chosen name and location. What should you do?

Click Save All on the Standard toolbar and choose the name and location
Double-click the solution file and choose the name and location
Click Save on the Standard toolbar and choose the name and location
Close Visual Studio and choose the name and location

Click Save All on the Standard toolbar and choose the name and location

Explanation

Save All on the Standard toolbar performs the first save, storing the project in the chosen location with its chosen name. Save confuses the specified Save All command, opening the solution is an opening action, and closing Visual Studio is not the save procedure.

15. A Visual Studio solution file is already stored in a project folder. Which action is a supported way to open the project?

Click Close on the title bar
Choose Save As from the File menu
Choose an unrelated file from the Open File dialog
Double-click the solution file in its folder

Double-click the solution file in its folder

Explanation

Double-clicking the solution file in its folder opens the Visual Studio project. Save As is a saving command, Close exits Visual Studio, and the Open File method requires selecting the solution file.

16. What does the Program Development Life Cycle describe?

The phases and steps used to design, create, and maintain a computer program
The steps used to install and configure a completed computer program
The coding and testing tasks used to produce a computer program
The interface components presented to users of a computer program

The phases and steps used to design, create, and maintain a computer program

Explanation

The Program Development Life Cycle is the set of phases and steps developers follow to design, create, and maintain a program. Installation, coding and testing alone, and interface components each describe a narrower or different idea.

17. A development team has gathered requirements, designed the interface and processing objects, coded and tested the program, and documented it. What phase remains in the listed life-cycle sequence?

Designing the user interface
Coding the program
Maintaining the program or system
Gathering and analyzing the requirements

Maintaining the program or system

Explanation

Maintenance follows documentation in the listed life-cycle phases. Requirements gathering occurs at the beginning, while interface design and coding are earlier design and implementation phases.

18. A team begins planning a program for tracking library loans. Which action best gathers requirements before designing the interface?

Build a prototype and ask users to react to it
Interview users and review current loan procedures
Ask developers to estimate the program’s maintenance cost
Choose interface controls based on similar programs

Interview users and review current loan procedures

Explanation

Requirements are gathered by interviewing users, reviewing current procedures, and performing other fact-finding tasks. Building a prototype focuses on interface design, choosing controls jumps ahead to design, and estimating maintenance cost does not establish program requirements.

19. A latte-selection window initially offers pumpkin spice and mocha. After a user selects mocha, what should the window display?

The mocha picture in place of the pumpkin spice picture
Both latte pictures beside the two choices
The pumpkin spice picture in place of the mocha picture
A confirmation message with neither latte picture

The mocha picture in place of the pumpkin spice picture

Explanation

The selected latte’s picture replaces the other picture, and the interface displays just one picture at a time. Showing both pictures violates that display rule, while a confirmation belongs to the later final-selection step and the pumpkin spice image is not the chosen type.

20. A user has chosen pumpkin spice as the latte type but has not yet made the final latte selection. Which behavior should the program allow?

Allow the user to proceed to the final selection
Display a confirmation and permit only exiting
Allow final selection without a chosen latte type
Keep identifying flavors after final selection

Allow the user to proceed to the final selection

Explanation

Choosing a latte type is a prerequisite for making the final selection, but it is not itself the final selection. Treating the type choice as final triggers the post-selection restrictions too early; selecting without a type skips the prerequisite, and continued flavor identification is barred after final selection.

21. A company’s users report that a new application is difficult to navigate. Which design priority most directly addresses the problem?

Make the interface visually distinctive and complex
Make the interface easy to use and follow
Add more controls to expose additional functions
Focus on the internal structure of the program

Make the interface easy to use and follow

Explanation

An interface should be easy to use and follow because users will not be satisfied when it is difficult to use. Visual complexity and unnecessary controls do not solve that usability problem, while internal program structure is not the interface-design priority described.

22. In a scheduling application, users select dates through a calendar control on one screen. What should the design use for date selection elsewhere in the program?

The calendar control for every kind of input
A different date control on each screen
The same calendar control for date selection
The control that is simplest to implement

The same calendar control for date selection

Explanation

A well-designed interface uses the most appropriate object for each requirement and keeps that object consistent for the same requirement throughout the program. Changing date controls across screens breaks consistency, using one control for unrelated input ignores appropriateness, and developer convenience is not the guiding principle.

23. A designer is building the Latte Selection interface with pictures for pumpkin spice and mocha lattes. Which set of objects meets the interface requirements?

One Windows Form, two PictureBox objects, four Button objects, and three Label objects
One Windows Form, two PictureBox objects, three Button objects, and four Label objects
One Windows Form, one PictureBox object, four Button objects, and three Label objects
Two Windows Forms, two PictureBox objects, four Button objects, and three Label objects

One Windows Form, two PictureBox objects, four Button objects, and three Label objects

Explanation

The interface requires one Windows Form containing two PictureBox objects, four Button objects, and three Label objects. One PictureBox cannot provide the two specified picture objects, and the other alternatives change the required control counts or form arrangement.

24. After a user selects a latte in the interface, which behavior should the available controls support?

Display the confirmation message before the user chooses a latte
Provide an Exit Window button without displaying a confirmation message
Display a confirmation message and provide an Exit Window button
Display a confirmation message and provide another latte-selection button

Display a confirmation message and provide an Exit Window button

Explanation

Selecting a latte must trigger a confirmation message, and exiting the window must be the available action after selection. Keeping another selection control available conflicts with that post-selection behavior; omitting confirmation or showing it before selection also misses the specified sequence.

Study with flashcards

Lock in the answers with 63 flashcards on Visual Basic Interface Design.

When should an event-driven program's user interface be designed?

After the program's purpose is defined.

What window opens when the latte-selection application starts?

The Latte Selection window.

What happens when the pumpkin spice or mocha button is clicked?

The corresponding latte picture is displayed.

See the flashcards →

Read the study guide

Go over the full study guide for Visual Basic Interface Design.

Read the study guide →

Related classes

Make your own practice quizzes

Upload your class notes and Revizly writes a practice quiz with explained answers in about a minute.

Quiz maker