

Event-Driven Programming Solved Exam Questions
Course Introduction
Event-Driven Programming introduces students to the fundamental concepts and techniques required to build software applications that respond to user actions, system events, or messages from other programs. This course covers the architecture of event-driven systems, the use of event loops, the creation and handling of events, callbacks, and listeners, as well as the design patterns commonly used in such applications. Students learn to develop interactive applications with graphical user interfaces (GUIs), implement asynchronous behavior, and apply event-driven principles in diverse environments such as web, desktop, and mobile platforms. Practical exercises focus on building responsive, maintainable, and scalable applications using contemporary programming languages and tools.
Recommended Textbook
Starting Out With Visual Basic 2012 6th Edition by Tony Gaddis
Available Study Resources on Quizplus
12 Chapters
430 Verified Questions
430 Flashcards
Source URL: https://quizplus.com/study-set/3852

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/76827
Sample Questions
Q1) A programming statement must refer to a control by its _property.
A) Text
B) Identifier
C) Name
D) Form
Answer: C
Q2) Any control ___should have a descriptive, programmer-defined name.
A) used in a form
B) whose name appears in a programming statement
C) that is a label
D) with a text property
Answer: B
Q3) The standard toolbar __.
A) allows the programmer to place controls on the form
B) contains buttons that execute frequently used commands
C) is difficult to use, since you must remember the commands
D) allows the programmer to create user defined controls
Answer: B
To view all questions and flashcards with answers, click on the resource link above. Page 3

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/76826
Sample Questions
Q1) When Visual Studio displays a new project, a blank form is shown in the _window.
A) Properties
B) ToolBox
C) Project
D) Designer
Answer: D
Q2) Which of the following displays a message box with the text "Hello World"?
A) MessageBox.Show"Hello World")
B) MessageBox.Display"Hello World")
C) MessageBox.Text"Hello World")
D) MessageBox.Send"Hello World")
Answer: A
Q3) The code template for an event handler identifies it as a type of _procedure.
A) Module
B) Function
C) Method
D) Sub
Answer: D
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/76825
Sample Questions
Q1) A form's Load event takes place when the user first clicks on the form at run time.
A)True
B)False
Answer: False
Q2) Which of the following is not a valid Visual Basic data type?
A) Integer
B) Number
C) Decimal
D) Short Answer: B
Q3) 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
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/76824
Sample Questions
Q1) What value will be assigned to intIndex when the following statements execute? Dim strTarget As String = "asdsakfljfdgasldfjdl"
Dim intIndex as Integer = strTarget.IndexOf"GAS")
A) 11
B) 12
C) 0
D) -1
Q2) The expression Integer.TryParse"12.5", intNbr) performs the following:
A) Returns True
B) Returns False
C) Places the value 12.5 in the variable intNbr
D) Returns True and places the value 12.5 in the variable intNbr
Q3) It is possible to compare the return value of a function call with another value, using a relational operator.
A)True
B)False
Q4) The logical operators And, Or, Xor, Not) combine two or more Boolean expressions.
A)True
B)False
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/76823
Sample Questions
Q1) A ToolTip is a ____that allows the programmer to create a small popup message that displays when the user places the mouse over a control.
A) method
B) property
C) function
D) control
Q2) The _method can be used to place a new item at any position in a ListBox.
A) Items.New
B) Items.Add
C) Items.Append
D) Items.Insert
Q3) Setting this property to True will put the items in a ListBox in alphabetical order.
A) Sorted
B) Ordered
C) Reorder
D) Alphabetic
To view all questions and flashcards with answers, click on the resource link above.

7

Chapter 6: Procedures and Functions
Available Study Resources on Quizplus for this Chatper
31 Verified Questions
31 Flashcards
Source URL: https://quizplus.com/quiz/76822
Sample Questions
Q1) When debugging a program in break mode, the Step Into command causes the currently highlighted line of code to execute.
A)True
B)False
Q2) Which one of the following declarations uses Pascal casing for the procedure name?
A) Sub MyProcedure)
End Sub
B) Sub myprocedure)
End Sub
C) Sub my_procedure)
End Sub
D) Sub myProcedure)
End Sub
Q3) 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
36 Verified Questions
36 Flashcards
Source URL: https://quizplus.com/quiz/76821
Sample Questions
Q1) Any form in a Windows Forms application can be designated as the startup form.
A)True
B)False
Q2) Once you create a form, you do not have to re-create it to use it in another project.
A)True
B)False
Q3) An event handler for a menu item is created by .
A) manually declaring the event handler
B) right-clicking the menu item
C) starting the menu designer, and then double-clicking the menu item
D) clicking the menu item
Q4) All of the following are true of the Show method of a form except:
A) using the Show method allows other forms to receive the focus
B) the Show method allows a calling program to continue to process statements
C) the displayed form must be closed before you can access other forms
D) the Show method displays a modeless form
To view all questions and flashcards with answers, click on the resource link above.

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/76820
Sample Questions
Q1) Which of the following code segments sets all elements of the array strStudentNames to the value NONE?
A) Dim intCount as Integer For intCount = 1 to strStudentNames.Length - 1)
StrStudentNamesintCount) = "NONE"
Next intCount
B) Dim intCount as Integer For intCount = 0 to strStudentNames.Length - 1)
StrStudentNamesintCount) = "NONE"
Next intCount
C) Dim intCount as Integer For intCount = 0 to strStudentNames.Length)
StrStudentNamesintCount) = "NONE"
Next intCount
D) Dim intCount as Integer For intCount = 1 to strStudentNames.Length)
StrStudentNamesintCount) = "NONE"
Next intCount
Q2) Which type of loop is designed specifically to use a subscript to access the elements of an array?
A) For Next
B) Do While
C) Do Until
D) For While
To view all questions and flashcards with answers, click on the resource link above. Page 10

Chapter 9: Files, Printing, and Structures
Available Study Resources on Quizplus for this Chatper
36 Verified Questions
36 Flashcards
Source URL: https://quizplus.com/quiz/76819
Sample Questions
Q1) Which of the following declares a structure data type named Complex, which has two fields named Real and Imaginary, both of which are of type Double?
A) Declare Structure Complex Dim Real As Double
Dim Imaginary As Double
End Declare
B) Structure Complex Dim Real as Double
Dim Imaginary as Double
End Structure
C) Structure As Complex Dim Real As Double
Dim Imaginary As Double
End Structure
D) Dim Structure Complex Dim RealDouble)
Dim ImaginaryDouble)
End Structure
Q2) Which of the following writes a blank line to a text file?
A) outputFile.Write" ")
B) outputFile.WriteLine.Blank
C) outputFile.WriteLine)
D) outputFile.WriteLineBlank)
To view all questions and flashcards with answers, click on the resource link above.
11
Chapter 10: Working With Databases
Available Study Resources on Quizplus for this Chatper
32 Verified Questions
32 Flashcards
Source URL: https://quizplus.com/quiz/76818
Sample Questions
Q1) A ____component passes data from one or more database tables to your program.
A) DataTransfer
B) DataSet
C) Connection
D) TableAdapter
Q2) In SQL the bit type is equivalent to which Visual Basic data type?
A) Short
B) Boolean
C) Integer
D) String
Q3) Which statement does NOT accurately describe a database row?
A) A row contains related data about a single item such as a department.
B) A row contains one or more fields.
C) When discussing a table, we refer to the rows by name.
D) A row is part of a database table.
Q4) A ____statement in SQL retrieves data from a database.
A) Select
B) Search
C) Find
D) SearchTable

Page 12
To view all questions and flashcards with answers, click on the resource link above.
Chapter 11: Developing Web Applications
Available Study Resources on Quizplus for this Chatper
33 Verified Questions
33 Flashcards
Source URL: https://quizplus.com/quiz/76817
Sample Questions
Q1) ASP.NET controls are more powerful than HTML controls because .
A) more fonts are available
B) graphics can be embedded in them
C) they use event handlers to carry out actions at runtime
D) powerful hyperlinks can be embedded in them
Q2) Web applications are designed around a _model, meaning the one computer produces data while another uses data.
A) Client-Server
B) Peer-to-Peer
C) Master-Slave
D) Server-User
Q3) The DetailsView control allows the user to do which of the following?
A) display multiple rows of a database table at the same time
B) connect to a data source
C) view but not edit the rows of a database
D) all of the above are true
To view all questions and flashcards with answers, click on the resource link above.

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/76816
Sample Questions
Q1) Which of the following operators determines if two object variables reference the same object?
A) =
B) IsEqual
C) Is
D) SameAs
Q2) A function that is a member of a class is called _.
A) a module
B) a method
C) a component
D) an element
Q3) An instance of a class is also called ____.
A) a tangible entity
B) an object
C) a method
D) a property
To view all questions and flashcards with answers, click on the resource link above.

Page 14