Name:     ID: 
 
Email: 

COSC 2328 Quiz 2 Chap 4 and 5

True/False
Indicate whether the statement is true or false.
 

 1. 

The first three steps in the problem-solving process are to analyze the problem, plan the algorithm, and then desk-check the algorithm.
 

 2. 

Included in Visual Studio 2008 are the Visual Basic, Visual C++, and Visual C# programming languages.
 

 3. 

Using languages to code your algorithms into programs is the fourth step in the problem-solving process.
 

 4. 

A Windows application has a Windows user interface and runs on a desktop computer.
 

 5. 

Most solutions in Visual Basic contain several projects.
 

 6. 

A file is a container, but it stores only the projects associated with that particular file.
 

 7. 

In most cases, you will find it easier to work in an IDE if you either close or auto-hide the windows you are not currently using.
 

 8. 

The Auto Hide button is a toggle button: clicking it twice activates it, and clicking it again deactivates it.
 

 9. 

You create a user interface by adding objects (such as buttons, check boxes, and list boxes) to the form.
 

 10. 

To begin creating the Wizard Application user interface, click the Label tool in the toolbox and release the mouse button.
 

 11. 

In a form, the blue lines are called margin lines, because their size is determined by the contents of the control’s Margin property.
 

 12. 

It is a good practice to save the current solution every 10 or 15 minutes so that you will not lose a lot of your work if the computer loses power.
 

 13. 

In a form, the easiest and best way to change the font is to change the Font property for each control individually.
 

 14. 

A label control’s Display property specifies the text displayed inside the control.
 

 15. 

A label control’s Location property controls the location of the upper-right corner of the control on the form.
 

 16. 

To include an image file within a project itself, the Project resource file radio button must be selected in the Select Resource dialog box.
 

 17. 

The easiest way to make two picture boxes the same size is to use the Size menu, which provides several options for manipulating the controls in the interface.
 

 18. 

The Format menu has a Center in Form option that centers one or more controls either horizontally or vertically on the form.
 

 19. 

The last control you select should always be the one whose size and/or location you want to match.
 

 20. 

You can start an application by pressing the F12 key on your keyboard.
 

 21. 

When you close a solution, only the files contained in that solution are closed.
 

 22. 

If a solution is already open in the IDE, it is closed before another solution is opened.
 

 23. 

When designing an interface for a problem, you should only examine its output items.
 

 24. 

In most interfaces, output items appear in label controls, because users should not be able to edit the value of an output item while an application is running.
 

 25. 

Every interface needs a control that allows the user to end the application.
 

 26. 

The programmer uses an object’s location to refer to the object in code.
 

 27. 

The name of an object must begin with a letter and can contain only letters, numbers, and the underscore character.
 

 28. 

You can include punctuation characters or spaces in the name of an object.
 

 29. 

An identifying label should be from one to three words only, with the entire label appearing on one line.
 

 30. 

Actions such as clicking, double-clicking, or scrolling are called commands.
 

 31. 

It’s a good programming practice to test a procedure after you have coded it.
 

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 32. 

A(n) ____ is what appears on the screen, and with which you interact, while using a program.
a.
operating environment
c.
user interface
b.
interface environment
d.
user environment
 

 33. 

A(n) ____ is an environment that contains all of the tools and features you need to create, run, and test your programs.
a.
integrated development environment
c.
user development environment
b.
integrated operating environment
d.
user operating environment
 

 34. 

The combination of the user interface and the program’s code is referred to as a(n) ____.
a.
device
c.
operating environment
b.
application
d.
user interface
 

 35. 

A Web application has a Web user interface and runs on a ____.
a.
client
c.
desktop computer
b.
mainframe
d.
server
 

 36. 

Windows applications in Visual Basic are composed of ____.
a.
solutions, projects, and files
c.
data, projects, and files
b.
solutions, projects, and data
d.
solutions, data, and files
 

 37. 

A ____ is a container that stores the projects and files for an entire application.
a.
user interface
c.
solution
b.
program environment
d.
program
 

 38. 

The ____ window is where you create (or design) your application’s user interface.
a.
Windows Form Designer
c.
Visual Basic Form Designer
b.
Windows Form Creator
d.
Visual Basic Form Creator
 

 39. 

You use a(n) ____ to display an image on the form.
a.
picture box
c.
image box
b.
tool box
d.
picture frame
 

 40. 

Applications created for the Windows XP environment typically use the 10- or 12-point ____ font.
a.
Times New Roman
c.
Time
b.
Tahoma
d.
Arial
 

 41. 

The ____ property specifies the name of the file containing the image to display.
a.
Image
c.
Image Display
b.
File
d.
Display
 

 42. 

The ____ property handles how an image is displayed.
a.
Display
c.
Size
b.
Mode
d.
SizeMode
 

 43. 

In a task box, each task in the list is associated with one or more ____.
a.
properties
c.
actions
b.
projects
d.
objects
 

 44. 

If you need to move a control after you have locked the controls in place, you can change the control’s ____ property setting in the Properties window.
a.
Location
c.
Place
b.
Site
d.
Position
 

 45. 

You close a solution using the ____ option on the File menu.
a.
Close Solution
c.
Close Project
b.
End Solution
d.
End Project
 

 46. 

You can use the File menu or the ____ to open an existing solution.
a.
Open File
c.
Start Page
b.
Start Project
d.
Open Page
 

 47. 

____ perform their tasks only when the user clicks them.
a.
Labels
c.
Buttons
b.
Names
d.
Controls
 

 48. 

You should assign a ____ name to each of the controls in a program, because doing so will help you keep track of the various objects included in the interface.
a.
meaningful
c.
long
b.
common
d.
short
 

 49. 

____ case refers to the fact that the uppercase letters appear as “humps” in the name because they are taller than the lowercase letters.
a.
Hill
c.
Bump
b.
Hump
d.
Camel
 

 50. 

It is customary to enter identifying labels using ____, which means capitalizing only the first letter in the first word and in any words that are customarily capitalized.
a.
camel capitalization
c.
sentence capitalization
b.
book title capitalization
d.
camel case
 

 51. 

The rules of the Visual Basic language are called its ____.
a.
parts
c.
token
b.
order
d.
syntax
 

 52. 

A(n) ____ is a word that has a special meaning in a programming language.
a.
keyword
c.
object
b.
token
d.
handler
 

 53. 

The ____ keyword indicates that the procedure can be used only within the current Code Editor window.
a.
Public
c.
Friend
b.
Private
d.
Hidden
 

 54. 

A ____ is a block of code that performs a specific task.
a.
sub code
c.
sub procedure
b.
sub section
d.
sub method
 

 55. 

A ____ is a predefined procedure that you can call (or invoke) when needed.
a.
sub section
c.
sub procedure
b.
sub code
d.
method
 

 56. 

The ____ tab displays the most commonly used items.
a.
Common
c.
All
b.
Tools
d.
Use
 



 
         Start Over