Application Development with Visual Basic Solved Exam Questions - 795 Verified Questions

Page 1


Application Development with Visual Basic Solved Exam Questions

Course Introduction

This course offers a comprehensive introduction to application development using Visual Basic, focusing on the design and implementation of Windows-based software solutions. Students will learn the fundamentals of Visual Basic programming, including event-driven programming concepts, graphical user interface (GUI) design, and object-oriented principles. Through hands-on projects, the course emphasizes core topics such as variables, control structures, procedures, error handling, and database connectivity. By the end of the course, students will be able to create, test, and deploy robust desktop applications, equipping them with practical skills relevant to real-world development environments.

Recommended Textbook

Programming in Visual Basic 2010 1st Edition by Julia Case Bradley

Available Study Resources on Quizplus

14 Chapters

795 Verified Questions

795 Flashcards

Source URL: https://quizplus.com/study-set/2524 Page 2

Chapter 1: Introduction to Visual Basic 2010

Available Study Resources on Quizplus for this Chatper

54 Verified Questions

54 Flashcards

Source URL: https://quizplus.com/quiz/50145

Sample Questions

Q1) You are in run time when you design the user interface.

A)True

B)False

Answer: False

Q2) Where does the text recommend that you code the programmer's name and remarks defining the purpose of a project?

A)In Visual Basic Help

B)In the event procedure for exiting the project

C)In the Declarations section at the top of the file

D)In the form's title bar

Answer: C

Q3) When you plan a Visual Basic program,you follow a three-step process that should end with _______.

A)Setting the properties

B)Writing the Basic code

C)Coding all of the remark statements

D)Defining the user interface

Answer: D

To view all questions and flashcards with answers, click on the resource link above.

3

Chapter 2: User Interface Design

Available Study Resources on Quizplus for this Chatper

74 Verified Questions

74 Flashcards

Source URL: https://quizplus.com/quiz/50144

Sample Questions

Q1) You can change the color of the text in an object by changing the object's ForeColor property.

A)True

B)False

Answer: True

Q2) The _______ property of a control determines whether or not the control is available or "grayed-out."

A)Enabled

B)Checked

C)Visible

D)Available

Answer: A

Q3) The statement: ItemTextBox.Focus(),will place the insertion point in the text box called ItemTextBox.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above.

Page 4

Chapter 3: Variables, Constants, and Calculations

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

Source URL: https://quizplus.com/quiz/50143

Sample Questions

Q1) Variables that are declared inside a procedure can be used as counters and accumulators.(Ignore Static variables. )

A)True

B)False

Answer: False

Q2) Declaration statements _______.

A)can only be written inside a procedure

B)are only allowed in the Declarations section of a form

C)give variables and constants names,and specify the type of data they will hold

D)are not needed for constants

Answer: C

Q3) What statement should be used to declare a variable that is accessible from all procedures of a form?

A)Dim

B)Const

C)Private

D)Public

Answer: C

To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Decisions and Conditions

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

Source URL: https://quizplus.com/quiz/50142

Sample Questions

Q1) A CheckBox may be tested to determine if it is checked by using the following code: If TestChecked.Checked Then

A)True

B)False

Q2) When comparing strings,which one of the following strings is less than the others,based on the ANSI code?

A)ONETWOTHREE

B)onetwothree

C)OneTwoThree

D)1Two3

Q3) It is not necessary to use the Call keyword when you want to call another event procedure.Simply list the object name,an underscore,the event,and the parentheses.If the procedure that you are calling requires arguments,place the arguments within the parentheses.

A)True

B)False

Q4) Or and And are logical operators used in compound expressions.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 6

Chapter 5: Menus, Common Dialog Boxes, Sub Procedures, and Function

Available Study Resources on Quizplus for this Chatper

38 Verified Questions

38 Flashcards

Source URL: https://quizplus.com/quiz/50141

Sample Questions

Q1) After adding a common dialog component to a form,you can display a common dialog box at run time using the OpenDialog method.

A)True

B)False

Q2) Which of the following is NOT true about using keyboard access with a menu item?

A)The first menu's Text property should be &File.

B)Do not use the same access key on a main menu name as you use on a form control.

C)When the program is running,use the Alt key with the letter in the menu that is underlined,in order to access that procedure.

D)Menu items will not function correctly if keyboard access is not assigned.

Q3) A function cannot have multiple arguments.

A)True

B)False

Q4) The default for passing arguments to function procedures and sub procedures is ByRef.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 7

Chapter 6: Multiform Projects

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

Source URL: https://quizplus.com/quiz/50140

Sample Questions

Q1) If you have many forms in your project and you are sure you won't need a form again,it is best to use the _______ when making the form disappear.

A)Close method

B)Hide method

C)Unload method

D)Static statement

Q2) The _______ is found in the Project Designer and contains the information about the program title,program version,programmer,and company.

A)splash screen

B)about box

C)startup form

D)assembly information

Q3) Each form is a separate file in the project folder.

A)True

B)False

Q4) About boxes are typically displayed by selecting "About" from the "Help" menu.

A)True

B)False

Q5) Write the statement that will display a form named,SummaryForm,as modal.

To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: Lists, loops, and Printing

Available Study Resources on Quizplus for this Chatper

76 Verified Questions

76 Flashcards

Source URL: https://quizplus.com/quiz/50139

Sample Questions

Q1) The Clear method is used to empty the contents of a list or combo box.

A)True

B)False

Q2) Which method is used to make all of the text in a text box appear selected?

A)SelectText

B)SelectedIndex

C)SelectedItem

D)SelectAll

Q3) The code to delete the selected item from ColorListBox is _______.

A)ColorListBox.Clear

B)ColorListBox.RemoveItem

C)ColorListBox.Delete (ColorListBox.ListIndex)

D)ColorListBox.Items.RemoveAt (ColorListBox.SelectedIndex)

Q4) Assign a valid index to the SelectedIndex property of a list box in order to make an item in the list appear selected.

A)True

B)False

Q5) What is the Items collection and how does it relate to a list box and/or a combo box?

To view all questions and flashcards with answers, click on the resource link above. Page 9

Chapter 8: Arrays and Collections

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/50138

Sample Questions

Q1) An array is a series of individual variables,all referenced by the same name but having unique indexes.

A)True

B)False

Q2) The following code is valid for creating a structure named Student:

Structure Student

Dim StudentIDString As String

Dim FirstNameString As String

Dim LastNameString As String

Dim GPADecimal As Decimal

End Structure

A)True

B)False

Q3) A VB programmer can combine multiple fields of related data using a _______.

A)DataType statement

B)Structure statement

C)For Each statement

D)Public statement

Q4) Write a structure called Student that contains the following items:

Last Name,First Name,Student ID,CurrentG.P.A.

To view all questions and flashcards with answers, click on the resource link above. Page 10

Chapter 9: Web Applications

Available Study Resources on Quizplus for this Chatper

66 Verified Questions

66 Flashcards

Source URL: https://quizplus.com/quiz/50137

Sample Questions

Q1) Windows controls have a Click event and Web controls have a Press event.

A)True

B)False

Q2) Visual Web Developer requires that Web pages and associated files be stored in the C:\inetpub\wwwroot folder on the local computer.

A)True

B)False

Q3) Two files are created for a Web Form.Identify the file extensions and describe the purpose of each file.

Q4) A Web Form created in Visual Basic has two distinct pieces,the HTML and instructions needed to render the page,and the Visual Basic code.

A)True

B)False

Q5) A Web server can be either remote or on the local machine.

A)True

B)False

Q6) A Web Form is also called a Web document or a Web page.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 11

Chapter 10: Database Applications

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/50136

Sample Questions

Q1) Explain the following line of code that is automatically created in the Form_Load procedure when a DataGridView is connected to a data source.Identify the name of the database and table of the data source.

BooksTableAdapter.Fill(RnRBooksDataSet.Books)

Q2) Any time a database is open,one record is considered the current record.

A)True

B)False

Q3) Use the _______ in order to sort the data in a data-bound combo box.

A)Sorted property

B)QueryBuilder

C)Data Connector

D)Data Sources

Q4) Describe each of the following objects: BindingSource,TableAdapter,and Dataset.

Q5) A relational database generally contains multiple tables and relationships between the tables.

A)True

B)False

Q6) A database may contain more than one table.

A)True

B)False

Page 12

To view all questions and flashcards with answers, click on the resource link above.

Chapter 11: Data Files

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/50135

Sample Questions

Q1) What is the purpose of "WriteLine" in the following statement? PhoneStreamWriter.WriteLine(NameTextBox.Text)

A)WriteLine refers to the number of fields in the record.

B)WriteLine will display the content of NameTextBox.Text in a label named phoneStreamWriter.

C)WriteLine will write the data in the NameTextBox.Text textbox to the data file.

D)WriteLine will create a data file named NameTextBox.txt.

Q2) The StreamReader is used to create a data file. A)True B)False

Q3) You can load data from a data file into a list box during run time by looping through the file and adding the file elements into the list. A)True B)False

Q4) It is not necessary to use a Try/Catch block when declaring a StreamReader object. A)True B)False

To view all questions and flashcards with answers, click on the resource link above.

Chapter 12: OOP: Creating Object-Oriented Programs

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

Source URL: https://quizplus.com/quiz/50134

Sample Questions

Q1) The garbage collection feature releases memory and system resources used by unreferenced objects.

A)True B)False

Q2) When you create a method with the same name and the same argument list as a method in the base class,the new method is said to override the base-class method.

A)True

B)False

Q3) Give an explanation of each of the following OOP features: Encapsulation,Inheritance,and Polymorphism.

Q4) A button on a form is an instance of the Button class.

A)True B)False

Q5) Declaring a variable for a class object sets up the memory location for the new object,but it does not actually create the object. A)True B)False

To view all questions and flashcards with answers, click on the resource link above. Page 14

Chapter 13: Graphics, Animation, Sound, and

Drag-And-Drop

Available Study Resources on Quizplus for this Chatper

62 Verified Questions

62 Flashcards

Source URL: https://quizplus.com/quiz/50133

Sample Questions

Q1) The target object uses a control's DoDragDrop method.

A)True

B)False

Q2) The Scroll event of a scroll bar occurs anytime the scroll box is moved.

A)True

B)False

Q3) The Timer component causes events to occur without user action.

A)True

B)False

Q4) Which of the following is NOT an effect of the DoDragDrop method?

A)Copy

B)Move

C)None

D)All of these are effects of the DoDragDrop method.

Q5) Pictures can be loaded,moved,and resized only at design time.

A)True

B)False

Q6) Explain the use of the X and Y coordinates in the drawing methods.

Q7) Write the code to draw a rectangle on a form.

To view all questions and flashcards with answers, click on the resource link above. Page 15

Chapter 14: Additional Topics in Visual Basic

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

Source URL: https://quizplus.com/quiz/50132

Sample Questions

Q1) When using a ToolStrip control,the images come from the project's Resources.

A)True

B)False

Q2) The _______ control is the calendar control that displays a one-month calendar.

A)MonthCalendar

B)DropDownCalendar

C)DateTimePicker

D)None of these

Q3) With _______,you can use WPF controls in a Windows Form application.

A)XAML

B)WPF Interoperability

C)DHTML

D)XML

Q4) When a toolbar is created using the ToolStrip control,the default number of buttons on the toolbar is 2.

A)True

B)False

Q5) Each button on a ToolStrip control has a separate click event.

A)True

B)False

16

To view all questions and flashcards with answers, click on the resource link above.

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.