Skip to main content

Software Development with Visual Basic Exam Materials - 822 Verified Questions

Page 1


Software Development with Visual Basic Exam Materials

Course Introduction

This course provides a comprehensive introduction to software development using Visual Basic, a widely used programming language for building Windows-based applications. Students will explore the fundamental concepts of programming, including variables, control structures, error handling, data structures, and object-oriented techniques within the Visual Basic environment. Through hands-on projects and practical exercises, learners will gain proficiency in designing, coding, debugging, and deploying user-friendly applications. Emphasis is placed on effective interface design, database connectivity, and integration with other Microsoft technologies, preparing students for real-world software development tasks and collaborative programming environments.

Recommended Textbook

Programming with Microsoft Visual Basic 2017 8th Edition by Diane Zak

Available Study Resources on Quizplus 14 Chapters

822 Verified Questions

822 Flashcards

Source URL: https://quizplus.com/study-set/3209

Page 2

Chapter 1: An Introduction to Visual Basic 2015

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

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

Sample Questions

Q1) Which of the following is a true statement?

A)The Me.Close() instruction should be coded in a timer control's Tick event procedure if an Exit button is not provided.

B)By default, the size of a form cannot be changed by a user while an application is running.

C)The title bar cannot be removed from an application.

D)The Minimize button can be removed from the title bar without removing the Maximize button from the title bar.

Answer: A

Q2) The set of Visual Basic instructions that tells an object how to behave after an action by the user (such as clicking a button)is referred to as a(n)____.

A)sub-program

B)event procedure

C)object function

D)subroutine

Answer: B

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

3

Chapter 2: Designing Applications

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) Labels that identify other controls (such as text boxes)should be right-aligned according to Windows standards.

A)True

B)False

Answer: False

Q2) The character used to create an access key by inserting it into a text property is

B)^

C)&

D)<

Answer: C

Q3) A control's border is determined by its BorderStyle property.

A)True

B)False

Answer: True

Q4) Write a statement that adds the contents of the txtNum1 control to the contents of the txtNum2 control,and then multiplies the result by 5.The result is displayed in the lblResult control.

Answer: lblResult.Text = (Val(txtNum1.Text)+ Val(txtNum2.Text))* 5

Page 4

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

Chapter 3: Using Variables and Constants

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) A named constant's value cannot be changed while the application is running.

A)True

B)False

Answer: True

Q2) The Decimal,Double,and Single variable data types can all store what type of numeric data? Explain the differences among these three data types and problems that can occur with their use.

Answer: All of these data types can store numbers containing a decimal place.The differences among these three data types are in the range of numbers each type can store,and the amount of memory each type needs to store the numbers.Calculations involving Decimal variables are not subject to the small rounding errors that may occur when using Double or Single variables.In most cases,small rounding errors do not create any problems in an application.However,the Decimal data type is best to use for applications using complex equations dealing with money.

Q3) Spaces are allowed in variable names.

A)True

B)False

Answer: False

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

Chapter 4: The Selection Structure

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) If a customer decides to enroll in the Rental Rewards Program,the Member Information Form displays for the clerk to enter the membership data for the customer.Which of the following statements sends the focus to the txtFirstName control and highlights any text within it?

A)SelectAll(txtFirstName.text)

B)txtFirstName.SelectAll()

C)Focus(txtFirstName.text)

D)txtFirstName.Focus()

Q2) Comparison operators are also referred to as ____ operators.

A)relational

B)arithmetic

C)logical

D)Boolean

Q3) The Backspace key is represented by the ____ constant.

A)ControlChars.Back

B)ControlChars.BackSpace

C)ControlChars.Backspace

D)ControlChars.Backspc

Q4) Write an If clause to determine whether the user pressed the Backspace key.

Q5) What is a group box and how is it used?

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

Chapter 5: More on the Selection Structure

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) The price chart for Trent Wholesale is shown below.Rewrite the incorrect statements in the associated code to correct all errors.

\[\begin{array}{l}

\text { Quantity Ordered Frice per Item }\\

\begin{array} { l l }

1 - 10 & \$ 12 \\

11 - 20 & \$ 11 \\

\text { More than } 20 & \$ 9 \\

\text { Less than 1 } & \$ 0

\end{array}

\end{array}\] Case Select intQuantity

Case < 10

intPrice = 12

Case Is 11 - 20

intPrice = 11

Case > 20

intPrice = 9

Case Else

intPrice = 0

End Select

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

Chapter 6: The Repetition Structure

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) Adding increments of a negative number is referred to as ____.

A)decrementing

B)initializing

C)deprocessing

D)negating

Q2) ____ means assigning a beginning value to a counter or an accumulator.

A)Introducing

B)Initializing

C)Incrementing

D)Updating

Q3) Write the assignment statements needed to increment the intCount counter by 1 and update the decBalance variable by the value stored in the decOrderAmount variable.

Q4) You can use a ____ to display a list of choices from which the user can select zero choices,one choice,or more than one choice.

A)list box

B)radio button group

C)check box

D)list

Q5) Explain the purpose of priming and update reads in a program.

Page 8

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

Chapter 7: Sub and Function Procedures

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) An event procedure is a Function procedure that is associated with a specific object and event.

A)True B)False

Q2) An independent Sub procedure is a procedure that is independent of any object and event.

A)True B)False

Q3) A Function procedure does not return a value after performing its assigned task.

A)True B)False

Q4) If the digits argument is omitted,the Math.Round function returns a(n)____. A)zero

B)exception

C)error D)integer

Q5) What is the difference between a Sub procedure and a Function procedure?

Q6) What is the Math.Round function? Provide the function's syntax and define the arguments.

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

Q7) What are the three main reasons programmers use independent Sub procedures?

Chapter 8: String Manipulation

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) Assume that the value of the string message is "Happy New Year".What value would message.IndexOf("New")yield?

A)-1

B)2

C)6

D)7

Q2) Which of the following shortcut keys should not be used in Windows applications that have an EDIT menu for menu items not on the EDIT menu?

A)Ctrl+X

B)Ctrl+Q

C)Ctrl+V

D)both a and c

Q3) The Trim method is used to remove characters only from the end of a string.

A)True

B)False

Q4) Write a Visual Basic statement that removes the last four digits of the credit card number and assigns it to the strCCLastFour variable.

strCCNum = "4456778996352852"

Q5) What is the difference between a menu item's access key and shortcut key?

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

Chapter 9: Arrays

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) An array's ____ method returns an integer that indicates the highest subscript in the specified dimension in the array.

A)Sort

B)Reverse

C)TryParse

D)GetUpperBound

Q2) Based on the code below,intScores(3,0)is initialized to ____.

Dim intScores(,) As Integer = {{75, 90}, {9, 25}, {23, 56}, {6, 12}}

A)6

B)12

C)23

D)56

Q3) Using an invalid subscript will result in a ____.

A)run time error

B)breakpoint

C)logic error

D)design-time error

Q4) The following array is declared and initialized:

Dim dblMilesPerTrip()As Double = {542,28,79.5,322.6,114}

Write the statements to total the values in the array.

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

Chapter 10: Structures and Sequential Access Files

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) Variables declared using a structure are often referred to as ____.

A)functions

B)Subs

C)structure variables

D)objects

Q2) Files that are read by the computer are called ____ files.

A)storage

B)serial

C)input

D)report

Q3) Which of the following statements will write the text "Programming" to a sequential access file?

A)outFile.Write("Programming")

B)outFile.Append("Programming")

C)outFile.Write{"Programming"}

D)outFile.Add["Programming"]

Q4) Describe two advantages to programmers of using structures and structure variables.

Q5) Write the statement that would remove the item "RGT12985" from the lstPartNumber control.

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

Chapter 11: Classes and Objects

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) ____ are the actions to which an object can respond.

A)Attributes

B)Events

C)Behaviors

D)Methods

Q2) Write the statements to create the default constructor for the Furniture class statement in the previous problem.Then write the Dim statement to use the default constructor to instantiate a Furniture object,assigning the object to a variable named sofa.

Q3) In the following instruction,Room is a(n)____. Dim bedroom As New Room

A)object

B)variable

C)class

D)property

Q4) The first word in a method name should be a(n)____.

A)verb

B)noun

C)adjective

D)preposition

Q5) Explain the difference between Public and Private variables for a class.

Page 13

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

Chapter 12: Web Applications

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) The toolbox for a Web form provides the ____ tool to group together related radio buttons.

A)CheckBox

B)RadioButtonList

C)Group

D)Post

Q2) ASP stands for ____.

A)advanced script page

B)active server page

C)active storage page

D)active solution page

Q3) On a Web form,use the check box's ____ property to determine whether a check box is selected or unselected.

A)Selected

B)Checked

C)Focus

D)Changed

Q4) Describe the four-step process involved in a client computer accessing ASP pages on a Web server.

Q5) What two properties should you specify for the RequiredFieldValidator?

Page 14

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

Chapter 13: Working With Access Databases and Linq

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) The ____ object can be used to save to the database any changes made to the data contained in the DataSet.

A)TableAdapter

B)TblEmployBindingSource

C)BindingSource

D)DataGridView

Q2) Databases created using Microsoft Access are relational databases.

A)True

B)False

Q3) Write the statements to move the record pointer to the first and last records in the dataset for the Customer table.

Q4) Which of the following statements selects all of the records in the tblStudents table?

A)Dim records =Select student In tblStudents

B)Dim records =Select student From StudentsDataSet.tblStudents

C)Dim records =From student In StudentsDataSet.tblStudentsSelect student

D)Dim records =Select student In StudentsDataSet.tblStudentsFrom student

Q5) A relational database can contain one or more tables.

A)True

B)False

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

Chapter 14: Access Databases and SQL

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) The WHERE statement is the most commonly used statement in SQL. A)True

B)False

Q2) Write a SQL SELECT statement that selects the MemberID,LastName,and FirstName fields for members having a last name that begins with the letter J.

Q3) ' Delete a record from the dataset

Dim row As TextData row = CustomerDataSet.tblCustomer.LookForCustID(3146) Delete()

Try

TblCustomerTableAdapter.Save(CustomerDataSet.tblCustomer)

Catch ex As Exception MessageBox.Show(ex.Message,"Delete record", MessageBoxButtons.OK, MessageBoxIcon.Information)

End Try

Q4) Write a SQL SELECT statement that selects the MemberID,LastName,JoinDate,and MemberType fields from all of the records.

Q5) What is SQL and how is it used?

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

Turn static files into dynamic content formats.

Create a flipbook
Software Development with Visual Basic Exam Materials - 822 Verified Questions by Quizplus - Issuu