

Event-Driven Programming Solved
Exam Questions
Course Introduction
Event-Driven Programming focuses on software development paradigms in which the flow of the program is determined by events such as user actions, sensor outputs, or messages from other programs. This course explores the principles and implementation of event-driven systems, emphasizing the use of event listeners, handlers, and callback functions to manage asynchronous events. Students will learn how to design responsive and interactive applications, primarily through graphical user interfaces (GUIs) and real-time systems, using contemporary programming languages and frameworks. Through hands-on exercises, they will develop the skills to structure event-driven code efficiently, enabling robust and scalable software solutions.
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

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) Which of the following are valid steps for developing a Visual Basic application?
A) Determine event handlers needed for each control.
B) Determine the controls needed.
C) Create a flowchart of the code.
D) all of the above
Answer: D
Q2) An object in Visual Basic ____________.
A) is also referred to as an event handler
B) is an attribute of a control
C) is an action performed by a method
D) contains data called properties
Answer: D
Q3) You can think of ________as the computer's working area, where variables are kept.
A) the CPU
B) main memory
C) secondary storage
D) the desktop
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/78276
Sample Questions
Q1) How do you make a Label control's text display bold characters?
A) Select Font from the View menu, and then select the label.
B) Select the Label in the designer, and click the ellipses button next to Font in the Solution Explorer window.
C) Select the Label in the designer, and click the ellipses button next to Font in the Properties window.
D) Select the Label control and set the BoldText property to True in the Properties window. Answer: C
Q2) The properties of a control are listed in the ______window.
A) Options
B) Properties
C) Solution Explorer
D) Project Answer: B
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) Declaration statements ___________________.
A) are only used for variables and are not needed for constants
B) are only allowed in the Declarations section of a form
C) give a name to variables or constants and specify the type of data they will hold
D) both answers B and C are correct
Answer: C
Q2) If you want to display multiple lines of information in a message box, use the constant .
A) ControlChars.CrLf
B) strNEW_LINE
C) CARRAGE_RETURN_LINE_FEED
D) vbReturn
Answer: A
Q3) A Boolean type variable can hold only one of two possible values: _____________.
A) True or False
B) 0 or 1
C) A or B
D) 1 or +1
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/78274
Sample Questions
Q1) What value is assigned to the String variable strSecond when the following code is executes?
<b> Dim strFirst As String
Dim strSecond As String
StrFirst = "1 2 Button My Shoe"
StrSecond = strFirstName.ToUpper()</b>
A) "1 2 bUTTON mY sHOE"
B) "1 2 BUTTON MY SHOE"
C) " BUTTON MY SHOE"
D) "12BUTTONMYSHOE"
Q2) If the Boolean expression on the left side of an <b>OrElse</b> operator is true, the Boolean expression on the right side of the Or operator will not be evaluated.
A)True
B)False
Q3) The expression <b>IsNumeric(13.75)</b> returns the value __________.
A) True
B) 1375
C) 14
D) 13.75
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) In the following statement that begins a For Next loop, what is the purpose of the Step clause? For intX = 1 to 100 Step 5
A) It causes intX to be initialized to 5 when the loop begins.
B) It causes the loop to end when intX is equal to 5.
C) It causes intX to be incremented by 5 each time the loop repeats.
D) It causes intX to be decremented by 5 each time the loop repeats.
Q2) If <b>lstMonths</b> is a <b>ListBox</b>, which of the following will cause an exception to be thrown?
A) lstMonths.Items(0)
B) lstMonths.Items(lstMonths.Items.Count - 1)
C) lstMonths.Items(lstMonths.Items.Count)
D) all of the above
Q3) Which standard Visual Basic function returns the periodic payment amount for a loan?
A) Pmt
B) IPmt
C) PPmt
D) LPmt
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/78272
Sample Questions
Q1) A is a special variable that receives a value being passed into a procedure or function.
A) temporary variable
B) pseudo-constant
C) class-level variable
D) parameter
Q2) What is the syntax error in the following procedure?
<b>Sub DisplayValue(Dim intNumber As Integer)
MessageBox.Show(intNumber.ToString())
End Sub</b>
A) intNumber cannot be converted to a string
B) the procedure's does not have a return value
C) Dim is not valid when declaring parameters
D) all of the above are true
Q3) 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
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) All of the following are true about the Hide method of a form except:
A) Using the Hide method removes the form from memory.
B) The Hide method makes the form invisible.
C) Once you have called the Hide method, the form can be redisplayed with the ShowDialog method.
D) Once you have called the Hide method, the form can be redisplayed with the Show method.
Q2) The best way to maintain consistency when renaming a form is to __________.
A) change the form's Name property
B) change the form's filename in the Solution Explorer window
C) click Project on the menu bar, and then select Change Windows Form
D) change the form's name in the form's class declaration
Q3) When a VB application executes, its ______is automatically displayed.
A) main sub
B) startup form
C) event procedure
D) form load event
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) How many elements can be stored in the following array? Dim sngGrades (2, 3) As Single
A) 6
B) 5
C) 12
D) cannot be determined
Q2) What value should be placed in a Timer control's Interval property to trigger a Tick event every 10 seconds?
A) 1000
B) 10000
C) 100
D) 10
Q3) Values in an array are stored and worked with using a __________.
A) method
B) locator
C) subscript
D) element locator
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 serve as a visual reminder that the structure or class name is not a variable, structure names and class names should ___________.
A) Begin with uppercase letters
B) Begin with an underscore
C) End with a letter
D) all of the above
Q2) When the PrintDocument control's Print method is executed, it triggers the ______event.
A) Printer
B) PrintDoc
C) PagePrint
D) PrintPage
Q3) An application must first ______a file before it can be used.
A) write to
B) read from
C) open
D) unlock
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/78268
Sample Questions
Q1) All of the following are true about SQL except __________.
A) SQL provides a standard means of interacting with a database.
B) SQL consists of several keywords.
C) SQL stands for "Sequenced Query Language"
D) SQL is an industry-standard language.
Q2) A complete set of data for a single student that includes the following information is called a __________.
<b>Student ID, First Name, Last Name, Major, Class</b>
A) Table
B) Column
C) Row
D) Field
Q3) The SelectedValue property of a data-bound ListBox returns the value in the column specified by the ____property.
A) ValueMember
B) ReturnColumn
C) ReturnField
D) DisplayMember
To view all questions and flashcards with answers, click on the resource link above.
Page 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 of the following is not one of the four types of web sites available from the ASP.NET Open Website dialog box?
A) Local IIS
B) File System
C) HTML
D) FTP site
Q2) Which of the following is true regarding ASP.NET?
A) ASP.NET is a client-side programming technology.
B) ASP.NET is Microsoft's version of HTML and provides the same capabilities as HTML.
C) ASP.NET provides many controls that are similar to those used in Windows forms.
D) ASP.NET is the first generation of Web programming technology introduced by Microsoft.
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/78266
Sample Questions
Q1) Which of the following describes the primary reason that one would override a property or method?
A) the property or method in the base class was declared as Private and can't be used
B) the property or method in the base class has an error
C) the property or method in the base class is not appropriate for the derived class
D) the property or method does not exist in the base class
Q2) A variable declared inside a class is also known as a __________.
A) member variable
B) static variable
C) hidden variable
D) global variable
Q3) The ______access specifier permits class members to be accessed by statements both outside the class and outside the assembly.
A) Public
B) Protected
C) Private
D) Friends
To view all questions and flashcards with answers, click on the resource link above. Page 14