Page 1

Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

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

1. The Visual Studio IDE allows you to compile, test, and deploy Visual Basic applications and applications written in other Visual Studio languages.

____

2. Visual Studio can be configured to operate in Tabbed documents mode or Multiple Document Interface mode.

____

3. The Options dialog box can be used to configure Visual Basic based on the needs of a particular developer.

____

4. The Code Editor can be configured to display line numbers.

____

5. The Code Editor can be configured to automatically indent Module and Class blocks, among others.

____

6. Completion technology helps you write Visual Basic statements by displaying the properties, methods, and events applicable to an object.

____

7. Depending on the configuration of Visual Studio, the Code Editor will automatically insert end constructs such as an End Sub statement.

____

8. Whether you are using the Visual Basic Express edition or other Visual Studio editions, the content of the corresponding Help system is exactly the same.

____

9. Visual Studio Help pages can be roughly categorized into Language Help pages, Class Help pages, and Members Help pages.

____ 10. The Visual Studio Help system always uses local files. It does not interact with files on the Internet. ____ 11. Referring to Language Help pages, reserved words appear in italics. ____ 12. Many Help pages have an Example section containing code examples. These code examples can be copied and pasted into a Visual Basic application. ____ 13. A Members Help page typically contains a columnar list of properties, methods, and other members supported by the selected type. ____ 14. The Help page for a particular class displays which .NET Framework class library versions support the class. ____ 15. It’s possible to navigate through the Help system using an index or table of contents. It’s also possible to search for a particular topic ____ 16. A Help filter can be used to restrict Help topics to those applicable to a specific Visual Studio language. ____ 17. To display Help topics related to Visual Basic, Internet programming, and the .NET Framework class library, select the .NET Framework filter. ____ 18. The Help table of contents displays Help topics in a hierarchical way. ____ 19. When using the Help table of contents, filters are not supported. ____ 20. The Visual Basic Help table of contents contains a programming guide. ____ 21. If you were looking for help on the System.Console class, you could use the Index or Search windows. ____ 22. When searching for Help topics using the Search window, it is possible to apply a Search filter. ____ 23. How Do I Help is task based rather than feature based.


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

____ 24. The Object Browser is used to display Help pages. ____ 25. The Object Browser can be used to examine the types that make up the .NET Framework class library. ____ 26. To create an application that works with a Command Prompt window, create the application using the Command Prompt template. ____ 27. Visual Studio can be used to create different types of applications using different templates. ____ 28. Visual applications made up of one or more forms are created using the Windows Forms Application template. ____ 29. The Visual Basic Express edition has a more limited set of templates than the other Visual Studio editions. ____ 30. A solution is made up of several folders containing module files and other files necessary to test and run the solution. ____ 31. A solution contains a reference to exactly one project. ____ 32. A Visual Basic project file has a file suffix of .vb. ____ 33. A Visual Studio project is used to create an executable file much in the same way that calling the Visual Basic compiler directly creates an executable file. ____ 34. Every project has exactly one root namespace. ____ 35. Referring to compiling a project, the assembly name must be the same as the project name. ____ 36. A Visual Studio project typically contains references to assemblies. ____ 37. All files in a Visual Basic project must be Visual Basic code files having a file suffix of .vb. ____ 38. The New Project dialog box is used to create a new solution. ____ 39. A solution is typically stored in a directory having the same name as the solution. ____ 40. It is possible to configure the Solution Explorer to display all of the files that make up a solution or just the most commonly used files. ____ 41. The Solution Explorer has a toolbar with buttons used to open the Code Editor and Windows Forms Designer. ____ 42. The Solution Explorer is a tool window. ____ 43. Document windows can be configured to appear as floating windows. ____ 44. Some tool windows can be configured to appear as document windows. ____ 45. The Code Editor is a tool window. Modified True/False Indicate whether the statement is true or false. If false, change the identified word or phrase to make the statement true. ____ 46. Visual Studio Help pages can be categorized into three types. A Language Help page contains information about the Visual Basic language itself. _________________________ ____ 47. Help for the Module statement would be an example of a Class Help page. _________________________ ____ 48. Referring to most Help pages, placeholder data typically appears in italics. _________________________ ____ 49. The .NET Framework Help filter displays topics applicable to the .NET Framework class library and the Visual Basic language. _________________________


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

____ 50. To display Help topics hierarchically, use the Index window. _________________________ ____ 51. The Search window is used to display Help topics based on a keyword. _________________________ ____ 52. How Do I Help topics are organized hierarchically. Each How Do I Help topic contains a hands-on tutorial describing how to complete a particular task. _________________________ ____ 53. Visual Studio can be used to create applications based on templates. _________________________ ____ 54. Applications that use a Command Prompt window are created using a Windows Forms Application template. _________________________ ____ 55. The three-character suffix for a solution file is .sol. _________________________ ____ 56. A project file is compiled into a(n) namespace. _________________________ ____ 57. Every project has a root namespace. _________________________ ____ 58. Referring to the Solution Explorer, the references folder lists the assemblies used by the project. ____ 59. The Compile window is a tool window that displays information as a project is compiled. _________________________ ____ 60. In Visual Studio, docked windows appear along an edge of the integrated development environment (IDE). _________________________ ____ 61. The Code Editor is a document window. _________________________ ____ 62. The pound sign character is the character used to mark a statement as a comment. _________________________ ____ 63. Attributes stored in the AssemblyInfo.vb file appear between the <> characters. _________________________ ____ 64. The OperatingSystemName property of the My.Computer.Info class returns the name of the operating system. _________________________ Multiple Choice Identify the choice that best completes the statement or answers the question. ____ 65. Which of the following statements is correct of the Options dialog box? a. It is used to configure the compiler options for the current project. b. It is used to define which toolbars appear in the Visual Studio IDE. c. It has a drill-down interface. d. None of the above ____ 66. Which of the following are features of the Visual Basic Code Editor? a. It can indent blocks. b. It can automatically complete blocks. c. It supports Intellisense technology. d. All of the above ____ 67. Which of the following are characteristics of the Visual Studio Help system? a. Help pages are Word documents.


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

b. Most Help pages have sections that can be expanded or collapsed. c. All Help is Web-based. That is, all Help files are always obtained from the Internet. d. None of the above ____ 68. Which of the following statements is correct regarding Visual Studio Help pages? a. It’s possible to use only local Help files. b. It’s possible to use only online Help files. c. It’s possible to use both local and online Help files. d. All of the above ____ 69. Which of the following Help pages lists the properties, methods, and events of a particular class? a. Language Help pages c. Members Help pages b. Help Lists d. Class Help pages ____ 70. Which of the following are common Help page sections? a. Class Name c. Hints b. Version Information d. Requirements ____ 71. Which of the following statements is correct of Language Help pages? a. Language Help pages apply only to Visual Basic. b. There are Help pages for reserved words such as Module. c. Language Help pages list the members of a particular class. d. All Language Help pages have sections for properties, methods, and events. ____ 72. Which of the following statements is correct of Members Help pages? a. The Search window is used to locate a particular member. b. Members, such as properties and methods, are organized hierarchically. c. The Class Name and Method Name drop-down boxes are used to look up members. d. None of the above ____ 73. What is the term used to describe a method that can be called with different arguments? a. Overloaded method c. Enhanced method b. Variable method d. None of the above ____ 74. Which of the following are Help system windows? a. Contents, Index, Search b. Hierarchical, List, Find c. Hyperlink, Find d. Pages, Links ____ 75. Which of the following statements is correct of a Help filter? a. No matter the Visual Studio edition being used, the available Help filters are the same. b. There are Help filters for Visual Basic and other programming languages. c. Help filters are configured when Visual Basic is installed. d. Multiple Help filters can be selected at one time. ____ 76. Which of the following statements is correct of the Help Index window? a. The entries in the Help Index window are categorized by Visual Studio language. b. The Help Index window is hierarchical just as the Contents window is hierarchical. c. The Index is useful to locate a Help topic when the name of the class or other type is known. d. The Search tab is used to locate a particular Help topic.


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

____ 77. Which of the following statements is correct of the Help Search window? a. The Search window and the Index window are the same. b. Search keywords are selected from a list, which cannot be changed. c. Search filters are supported to restrict the search. d. A keyword search will always return exactly one Help topic. ____ 78. What is the name of the Help feature that suggests Help topics as you enter statements in the Code Editor or interact with Visual Studio? a. Context Help c. Feature Help b. Dynamic Help d. None of the above ____ 79. Which of the following statements is correct of the Object Browser? a. It is used to configure the Help system. b. It displays .NET Framework class library types and the members of those types. c. It can be used to modify the members of the .NET Framework class library. d. It is used to display a program’s currently loaded objects. ____ 80. What type of application template is used to create an application with forms? a. Windows template b. Forms template c. Windows Forms Application template d. Console Application template ____ 81. Which of the following statements is correct of a solution file? a. A project contains several solution files. b. A solution contains one or more projects. c. A solution file stores all of the information for a Visual Basic application in a single binary file. d. A solution file is always compiled into exactly one executable file. ____ 82. Which of the following statements is true of a Visual Studio project? a. A project has an entry point. b. A project has a root namespace. c. A project is compiled into an executable file (assembly). d. All of the above ____ 83. Using the Visual Studio IDE, how do you set the application’s startup object (entry point)? a. Use the Options dialog box. b. Use the EntryPoint attribute for the procedure designated as the startup procedure. c. Set the EntryPoint property for the solution. d. Use the Project’s property page. ____ 84. Which of the following statements is correct of a project’s assembly references? a. Assembly references are defined using attributes. b. A project can reference several assemblies. The assemblies referenced by a project must be configured when the project is created. c. A project always references exactly one assembly. d. Using the Project property page, it’s possible to add new assembly references. ____ 85. How do you save a solution and its files?


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

a. Save each file using the Code Editor. b. Click the Save File button in the Solution Explorer. c. Use the Save Project dialog box to save a solution and the files that make up the solution. d. None of the above ____ 86. What is the file suffix used with a Visual Basic module file? a. .mod c. .vbm b. .vb d. .doc ____ 87. Which of the following is a characteristic of the Solution Explorer? a. It is used to edit the code that makes up a solution. b. It can be used to view the Code Editor or Windows Forms Designer for a module. c. It is used to change the directory where the solution files are stored. d. It is used to configure a project. ____ 88. Which of the following Visual Studio windows are tool windows? a. Windows Forms Designer b. Code Editor c. Properties window d. Options dialog box ____ 89. Which of the following statements is correct of the Visual Studio Auto Hide feature? a. Only document windows can be Auto Hidden. b. Windows can only be Auto Hidden along the left edge of the Visual Studio IDE. c. Any docked tool window can be Auto Hidden. d. Tool windows cannot be Auto Hidden. ____ 90. Which of the following are document windows? a. Windows Forms Designer d. Both a and b b. Code Editor e. All of the above c. Solution Explorer ____ 91. What is the name of the document window used to edit files containing Visual Basic code? a. VBE c. Basic Pad b. Code Editor d. Document Editor ____ 92. Which of the following statements is correct of the Code Editor? a. The files edited by the Code Editor are binary files and cannot be edited with any other application. b. The Code Editor can only be used to edit Visual Basic code. It cannot be used to edit the code of other Visual Studio languages. c. The files edited by the Code Editor are text files. d. None of the above ____ 93. Which of the following statements is correct of Intellisense technology? a. The Intellisense dialog box helps you write statements. b. Pop-up menus will appear listing the members of a namespace or class. c. Intellisense corrects syntax errors in the statements that you write.


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

d. Intellisense helps to compile a project. ____ 94. What is the purpose of the Error List window? a. It displays the output errors from the compiler. b. It displays the syntax errors in a module. c. It lists the run time errors as they occur. d. It lists the errors appearing in the project or solution file. ____ 95. Which of the following statements is true of comments in Visual Basic programs? a. Use of comments should be avoided because programs with comments will execute more slowly than programs without comments. b. Relevant comments should be created as a program is created and modified. c. Comments begin with the ampersand (&) character. d. Any line beginning with the word Comment is considered a comment. ____ 96. Which of the following objects apply to the My object? a. Form c. Console b. Computer d. Attribute ____ 97. What is the name of the file that stores attributes related to an assembly? a. Attributes.vb c. AssemblyAttributes.vb b. AssemblyInfo.vb d. AssemblyInformation.vb ____ 98. Which of the following statements correctly sets the AssemblyDescription attribute to the string “Hello”? a. <Assembly: AssemblyDescription(Hello)> b. <Assembly: AssemblyDescription(“Hello”)> c. <AssemblyDescription(“Hello”)> d. <Assembly:Description(“Hello”)> ____ 99. What is the name of the property that stores the name of the operating system? a. OSFullName b. OperatingSystem

c. System d. WindowsVersion

Completion Complete each statement. 100. What is the name of the technology used to display ToolTips and other pop-ups when writing Visual Basic code? ____________________ 101. Referring to a Help page, the ____________________ section contains links to other relevant Help pages. 102. To restrict Help pages displayed to those of a particular language or group of Help topics, you apply a(n) ____________________. 103. ____________________ is task-based Help rather than feature-based Help. 104. A ____________________ template is used to create components designed for use by other applications and developers.


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

105. The ____________________ is a Visual Studio tool used to view the types that make up the .NET Framework class library and other class libraries. 106. A solution file contains references to one or more ____________________. 107. Referring to a solution, the ____________________ folder contains configuration files common to all projects. 108. Syntax errors appear in the Code Editor and the ____________________ window. 109. What is the name of the tool window that groups and displays all of the files that make up an application? ____________________ 110. What is the name of the Visual Studio feature that allows docked windows to appear on a tab along an edge of the Visual Studio IDE? ____________________ 111. What is the term used to describe a window that is not docked to the Visual Studio IDE window? ____________________ 112. What is the name of the Visual Studio window that displays the results of compiling a project? ____________________ 113. What is the character that marks the beginning of a comment? ____________________ 114. The ____________________ object is used to get information about the current application. 115. The assembly attribute that stores a projectâ&#x20AC;&#x2122;s copyright notice is named ____________________. 116. What is the name of the My object used to get information about the current computer? ____________________ Short Answer 117. Describe how Members Help pages are organized. 118. Discuss the relationship between a project and the assemblies and namespaces it references. 119. What is the purpose of the My.Application.Info class? 120. Write the statement to print the assembly version to the Command Prompt window. 121. Write the statement to declare the necessary attribute to set the company name to â&#x20AC;&#x153;ACMEâ&#x20AC;? for the current assembly. 122. Write the statement to declare the necessary attribute to set the version of the assembly to 1.1.0.1. 123. Write the statement to print the total amount of physical memory in the computer. 124. Write the statement to print the version of the operating system to the Command Prompt window. 125. Write the statement to ping the host having an IP number of 133.4.22.8. 126. Write the statements to print the total physical memory and virtual memory available on the system to the Command Prompt window. Essay 127. List and describe the features of Intellisense technology.


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

128. Describe when and where comments should appear in an application.

ch02 Answer Section TRUE/FALSE 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40.

ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS:

T T T T T F T F T F F T T T T T F T F T T T T F T F T T T T F F T T F F F T T T

PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF:

59 61 60 63 64 63 65 66 66 67 68 69 71 69-70 73 74 74 73 74 76 77-78 78 78 80 80 84 84 84 84 85 85 85 85 86 86 87 85 88 89 92


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

41. 42. 43. 44. 45.

ANS: ANS: ANS: ANS: ANS:

T T F T F

PTS: PTS: PTS: PTS: PTS:

1 1 1 1 1

REF: REF: REF: REF: REF:

92, 96 92 93-94 93 95

MODIFIED TRUE/FALSE 46. ANS: T 47. ANS: F, Language

PTS: 1

REF: 66

PTS: 1

REF: 68

PTS: 1 PTS: 1 PTS: 1

REF: 77-78 REF: 78-79 REF: 84

PTS: 1 PTS: 1

REF: 86 REF: 91

PTS: 1 REF: 93 60. ANS: T 61. ANS: T 62. ANS: F, Apostrophe

PTS: 1 PTS: 1

REF: 93-94 REF: 95

PTS: 1 REF: 101 63. ANS: T 64. ANS: F, OsFullName

PTS: 1

REF: 102-103

PTS: 1 REF: 67 48. ANS: T 49. ANS: F, Visual Basic PTS: 1 50. ANS: F, Contents 51. 52. 53. 54.

PTS: ANS: ANS: ANS: ANS:

1 T T T F, Console

REF: 74 REF: 73

PTS: 1 55. ANS: F, .sln

REF: 84

PTS: 1 56. ANS: F, Assembly

REF: 85

PTS: 57. ANS: 58. ANS: 59. ANS:

REF: 85

1 T T F, Output

PTS: 1 MULTIPLE CHOICE

REF: 104


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99.

ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS: ANS:

C D B D C B B B A A B C C B B C B D D D C B B C C D B C B B B B B B A

PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS: PTS:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

COMPLETION 100. ANS: Intellisense PTS: 1 101. ANS: See Also

REF: 63

PTS: 1 102. ANS: Help filter

REF: 69

REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF: REF:

60 63-64 66 67 71-72 71 67 71 72 73 74 77 78 79 80-81 84 85 86-87 86 87 89 90 92 93 93 95 95 95 96 98 101 102 102 102 104


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

PTS: 1 REF: 74 103. ANS: How Do I Help PTS: 1 REF: 78-79 104. ANS: Class Library PTS: 1 REF: 84 105. ANS: Object Browser PTS: 1 106. ANS: project files

REF: 80

PTS: 1 107. ANS: My Project

REF: 85

PTS: 1 108. ANS: Error List

REF: 90

PTS: 1 REF: 93 109. ANS: Solution Explorer PTS: 1 110. ANS: Auto Hide

REF: 93

PTS: 1 REF: 93 111. ANS: floating window PTS: 1 REF: 93 112. ANS: Output window PTS: 1 REF: 99 113. ANS: apostrophe (â&#x20AC;&#x2DC;) PTS: 1 REF: 101 114. ANS: My.Application PTS: 1 REF: 102 115. ANS: AssemblyCopyright PTS: 1 REF: 103 116. ANS: My.Computer.Info PTS: 1

REF: 104

SHORT ANSWER 117. ANS: Members Help pages list the members of a particular type. Members are organized hierarchically based on the kind of member as follows:


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

Methods Properties Events PTS: 1 REF: 71 118. ANS: A project typically references one or more assemblies containing namespaces. The classes that make up the .NET Framework class library appear in these namespaces. By referencing an assembly and its namespaces, the classes in those namespace become available to a Visual Studio .NET project. PTS: 1 REF: 85 119. ANS: It stores information about the current application. This information is read from the assembly’s attributes. PTS: 1 REF: 103 120. ANS: System.Console.WriteLine(My.Application.Info.Version) PTS: 1 REF: 103 121. ANS: <Assembly: AssemblyCompany("Acme")> PTS: 1 REF: 103 122. ANS: <Assembly: AssemblyVersion("1.1.0.1")> PTS: 1 REF: 103 123. ANS: System.Console.WriteLine(My.Computer.Info.TotalPhysicalMemory) PTS: 1 REF: 104 124. ANS: System.Console.WriteLine(My.Computer.Info.OSVersion) PTS: 1 REF: 104 125. ANS: My.Computer.Network.Ping(“133.4.22.8”) PTS: 1 REF: 104 126. ANS: System.Console.WriteLine( _ My.Computer.Info.TotalPhysicalMemory) System.Console.WriteLine( _ My.Computer.Info.TotalVirtualMemory) PTS: 1 ESSAY

REF: 104


Full file at http://testbank360.eu/test-bank-programming-with-microsoft-visual-basic-2008-3rd-edition-michael-ekedahl

127. ANS: Intellisense makes programming easier as it displays tips as the developer writes Visual Basic statements in the Code Editor. o Pop-up windows appear as class, method, and property names are entered. o The arguments to the selected member will be displayed as a ToolTip. PTS: 1 REF: 63 128. ANS: Relevant comments should be created as an application is developed. o Comments should generally appear to describe the purpose of a Class or Module block. o Comments often appear at the beginning of a procedure. o Add comments to code that might be unclear to others. o Donâ&#x20AC;&#x2122;t overuse comments. PTS: 1

REF: 101

Test bank programming with microsoft visual basic 2008 3rd edition michael ekedahl  

test bank programming with microsoft visual basic 2008 3rd edition michael ekedahl. Full file at http://testbank360.eu/test-bank-progra...

Read more
Read more
Similar to
Popular now
Just for you