Skip to main content

Application Development with Visual Basic Chapter Exam Questions - 429 Verified Questions

Page 1


Application Development with Visual Basic Chapter Exam Questions

Course Introduction

This course introduces students to the principles and techniques of application development using Visual Basic, a widely used programming language for building Windows-based software. Emphasis is placed on designing graphical user interfaces (GUIs), managing events, and employing fundamental programming concepts such as variables, data types, control structures, and object-oriented principles. Students will learn how to connect applications to databases, handle user input, and deploy completed projects. Real-world exercises and projects provide hands-on experience, enabling students to develop professional-quality applications suitable for business and personal use.

Recommended Textbook

Starting Out With Visual Basic 7th Edition by Tony Gaddis

Available Study Resources on Quizplus

12 Chapters

429 Verified Questions

429 Flashcards

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

Chapter 1: Introduction to Programming and Visual Basic

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Application software refers to programs that ___________.

A) manage a computer's hardware devices

B) manage a computer's input and output

C) performs diagnostic tests on secondary storage

D) make the computer useful to the user

Answer: D

Q2) Which one of the following statements is true about a variable?

A) It performs various operations on data

B) It is a set of programming statements to perform a specific task

C) It is a storage location in memory represented by a name

D) It is a key element of the graphical user interface

Answer: C

Q3) Application software manages the computer's hardware devices.

A)True

B)False

Answer: False

Q4) Control names may not contain spaces.

A)True

B)False Answer: True

Page 3

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

Chapter 2: Creating Applications With Visual Basic

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) IntelliSense is a feature of Visual Studio that ___________________________.

A) provides hints about the input data requested from the user

B) provides automatic code completion as you write programming statements

C) allows the user to easily modify properties for a control in design mode

D) is a feature that will help the programmer use proper naming conventions

Answer: B

Q2) If a Label control's AutoSize property equals False and the label is not wide enough for the text assigned to the control, ________.

A) the text will be only partially displayed

B) none of the text will be displayed

C) the extra text is wrapped onto the next line or lines

D) the label will expand to fit the text

Answer: C

Q3) In the statement Me.Close(), the keyword Me refers to __________.

A) the current form

B) the programmer

C) the Close method

D) the Close button

Answer: A

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

Chapter 3: Variables and Calculations

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

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

Sample Questions

Q1) All of the following are advantages of using named constants except A) they can be used in the place of keywords.

B) it is easier to make a consistent change throughout a program.

C) they help make the program more self documenting.

D) they're useful for common values such as pi.

Answer: A

Q2) The order in which controls receive the focus is called the __________.

A) control order

B) tab order

C) sequence order

D) focus order

Answer: B

Q3) Which of the following declares a variable named <b>intIndex</b> that will be used to store whole numbers?

A) Dim intIndex As WholeNumber

B) Dim intIndex As String

C) Dim Integer As intIndex

D) Dim intIndex As Integer

Answer: D

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

Page 5

Chapter 4: Making Decisions

Available Study Resources on Quizplus for this Chatper

39 Verified Questions

39 Flashcards

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

Sample Questions

Q1) What value will be assigned to intIndex when the following statements execute?

<b>Dim strTarget As String = "asdsakfljfdgasldfjdl"

Dim intIndex = strTarget.IndexOf("as", 1, 10)</b>

A) 12

B) 13

C) 0

D) -1

Q2) If the Boolean expression A is True and B is False, the value of the logical expression A And B is __________.

A)True

B)False

C) 1

D) 0

Q3) Which statement tests the value of an expression once and then uses that value to determine the result?

A) Nested If

B) If...Then...ElseIf

C) If...Then

D) Select Case

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

Chapter 5: Lists and Loops

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) The <b>InputBox</b> function always returns a ______value.

A) Single

B) Double

C) Text

D) String

Q2) Which statement about the <b>ListBox.Items.Add</b> method is true?

A) It always appends the added item to the end of the list.

B) It can be used to insert an item anywhere in the list.

C) It finds the sum of all of the items in the list.

D) It always inserts the item at the beginning of the list.

Q3) Which of the following statements will assign a random number between 1 and 50 inclusive to <b>intNum</b>?

A) intNum = rand.Next(50) + 1

B) intNum = rand.Next(1, 50)

C) intNum = rand.Next(50)

D) intNum = rand.Next()

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

Chapter 6: Procedures and Functions

Available Study Resources on Quizplus for this Chatper

31 Verified Questions

31 Flashcards

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

Sample Questions

Q1) When calling a procedure, passed arguments and declared parameters must agree in all of the following ways except __________.

A) the order of arguments and parameters must correspond

B) the names of the arguments and parameters must correspond

C) the types of the arguments and parameters must correspond

D) the number of arguments and the number of parameters must be the same

Q2) When debugging a program in break mode, the Step Into command causes the currently highlighted line of code to execute.

A)True

B)False

Q3) Which of the following can be returned by a function?

A) String values

B) Integer values

C) Boolean values

D) All of the above

Q4) Although you can omit the ByVal keyword in a parameter variable declaration, it is still a good idea to use it.

A)True

B)False

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

Chapter 7: Multiple Forms, Modules, and Menus

Available Study Resources on Quizplus for this Chatper

35 Verified Questions

35 Flashcards

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

Sample Questions

Q1) The primary reason to use standard menu items, such as File, Edit, and Help is

A) these are built into Visual Basic

B) they are the only items that Visual Basic allows you add to a menu

C) all the examples in the book are set up this way

D) most users expect to see these items

Q2) In order to add a menu to a form, you must place a ______on the form.

A) MenuCommand control

B) MenuItem control

C) MenuOption control

D) MenuStrip control

Q3) When creating a form in Visual Basic, code associated with that form is stored in a file with a _extension.

A) sln

B) proj

C) frm

D) vb

Q4) Any form in a Windows Forms application can be designated as the startup form.

A)True

B)False

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

Chapter 8: Arrays and More

Available Study Resources on Quizplus for this Chatper

34 Verified Questions

34 Flashcards

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

Sample Questions

Q1) Which of the following provides the index of the highest numbered element of the array strNames?

A) strNames.Length - 1

B) strNames.Length

C) strNames.Length + 1

D) None of the above

Q2) Which statement is the best solution for the following problem? Write a statement that initializes a two-dimensional array of Integers named intGrades. The array will have 2 rows, with 93, 91, and 84 in the first row and 85, 89, and 91 in the second row.

A) Dim intGrades(2,3) As Integer = { {93, 91, 84}, {85, 89, 91} }

B) Dim intGrades(,) As Integer = { {93, 91, 84}, {85, 89, 91} }

C) Dim intGrades() As Integer = { 93, 92, 84,85, 89, 91}

D) Dim intGrades(1, 2) As Integer = { {93, 91, 84}, {85,89, 91} }

Q3) Which of the following could be used to iterate through each element of a two-dimensional array.

A) A single Do While loop

B) A single Do Until loop

C) A single For Next loop

D) Nested For Next loops

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

Page 10

Chapter 9: Files, Printing, and Structure

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) To change the color of text in a windows form, you could use this.

A) FontDialog control

B) ColorDialog control

C) FontDialog control with the ShowColor property set to True

D) both b and c are correct

Q2) The StreamWriter's CreateText method will _____________.

A) create a new file or replace an existing one

B) append text at the end of the existing file

C) insert text at the beginning of the file

D) maintain the data for an existing file

Q3) Which of the following writes a blank line to a text file?

A) outputFile.Write(" ")

B) outputFile.WriteLine.Blank

C) outputFile.WriteLine()

D) outputFile.WriteLine(Blank)

Q4) An application must first ______a file before it can be used.

A) write to

B) read from

C) open

D) unlock

11

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

Chapter 10: Working With Databases

Available Study Resources on Quizplus for this Chatper

32 Verified Questions

32 Flashcards

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

Sample Questions

Q1) A table adapter's _____method is used to add a new row to a table.

A) Add

B) Append

C) Insert

D) Update

Q2) A database _____________is organized into rows and columns.

A) grid

B) matrix

C) table

D) spreadsheet

Q3) Which item describes the function of the following SQL statement?

<b>SELECT ID, Last_Name, First_Name, Address

FROM Members

WHERE Last_Name = @LastName</b>

A) a simple query

B) a parameterized query

C) a compound query

D) a wildcard query

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

12

Chapter 11: Developing Web Applications

Available Study Resources on Quizplus for this Chatper

33 Verified Questions

33 Flashcards

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

Sample Questions

Q1) Which statement is true about the CheckBoxList control?

A) each item has a Selected property

B) only one item can be checked at a time

C) it functions just like a ListBox control

D) A and C are correct

Q2) Which of the following is not a TextBox TextMode property choice?

A) Sorted

B) SingleLine

C) MultiLine

D) Password

Q3) When the Web form default.aspx is added to a project, another file named ______is also created.

A) default.asp

B) default.aspx.vb

C) default.config

D) default.vb

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

Chapter 12: Classes, Collections, and Inheritance

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) The hiding of data and procedures inside a class is achieved through a process called ________.

A) data enclosing

B) encapsulation

C) modularization

D) components

Q2) The following statements are true about user-defined collections except __________.

A) indexes for collections start at 0

B) collections can grow dynamically as items are inserted and removed

C) collections hold a variety of different objects

D) you can access the individual items in a collection using the Item property

Q3) A variable declared inside a class is also known as a __________.

A) member variable

B) static variable

C) hidden variable

D) global variable

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

Turn static files into dynamic content formats.

Create a flipbook
Application Development with Visual Basic Chapter Exam Questions - 429 Verified Questions by Quizplus - Issuu