Skip to main content

Event-Driven Programming Final Exam Questions - 430 Verified Questions

Page 1


Event-Driven Programming Final Exam Questions

Course Introduction

Event-Driven Programming is a course that explores the design and implementation of software systems that respond to external events such as user actions, sensor outputs, or message arrivals. Students will learn the foundational concepts of event loops, callbacks, listeners, and handlers while working with modern programming languages and frameworks. The course covers both theoretical models and practical techniques for structuring code to efficiently respond to asynchronous events, with applications in graphic user interfaces, mobile development, web applications, and real-time systems. Throughout the course, students will engage in hands-on projects to build responsive, interactive software components that demonstrate key principles of event-driven architecture.

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) Microsoft Visual Basic is an object-oriented programming language.

A)True

B)False

Answer: True

Q2) Why is it necessary to run a program using test data for input?

A) To be sure that there are no syntax errors in the program.

B) To verify that programming language elements are used correctly.

C) To verify the application produces correct results.

D) To see if the flowchart is correct.

Answer: C

Q3) A control is an object that usually appears in a program's graphical user interface.

A)True

B)False

Answer: True

Q4) Properties determine the visual appearance of a control.

A)True

B)False

Answer: True

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) Which property determines the characters that appear in the title bar of Form1?

A) Form1.Name

B) Form1.Text

C) Form1.Caption

D) Form1.Title

Answer: B

Q2) The code template for an event handler identifies it as a type of _procedure.

A) Module

B) Function

C) Method

D) Sub Answer: D

Q3) When you have an item selected and press the F1 key, you get __.

A) properties window

B) the solution explorer window

C) context-sensitive help

D) tool-tip for the item

Answer: C

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) Only controls capable of receiving some sort of input, such as __, may have the focus.

A) labels

B) text boxes

C) buttons

D) text boxes and buttons

Answer: D

Q2) The value returned by passing #12/31/10# to the CSng function is__

A) 12/31/2010

B) 123,110

C) 0

D) No value is returned. A runtime error is generated.

Answer: D

Q3) It's possible to view the order in which all controls on a form will receive the focus by .

A) clicking TabOrder in the Properties window

B) pressing the Esc key

C) clicking VIEW on the menu bar and then Tab Order

D) all of the above

Answer: C

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) Visual Basic uses values to represent characters such as A, B, and C in memory.

A) ASCII code

B) BCD code

C) Unicode

D) ISO code

Q2) It is possible to compare the return value of a function call with another value, using a relational operator.

A)True

B)False

Q3) Which of the following code segments assigns the string "Great Year" to the Text property of a label named lblMessage when the value in the variable decSales is either greater than 50,000 or equal to 50,000?

A) If decSales > 50000 Then lblMessage.Text = "Great Year"

End If

B) If decSales >= 50000 Then lblMessage.Text = "Great Year"

End If

C) If decSales < 50000 Then lblMessage.Text = "Great Year"

End If

D) If decSales < = 50000 Then lblMessage.Text = "Great Year"

End If

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) What value is assigned to lblSum.Text by the following code ? Dim intTotal As Integer = 0

For intOuter = 1 To 3

For intInner = intOuter To 3

IntTotal += intOuter * intInner

Next

Next

LblSum.Text = intTotal.ToString)

A) 9

B) 16

C) 25

D) 36

Q2) Which statement is True in regard to the following code? intCount = 0 Do While intCount < 10 LstOutput.Items.Add"Good Job")

Loop

A) This is an infinite loop.

B) intCount should start at -1.

C) The Items.Insert method should be used instead of Items.Add.

D) The text Good Job should not have quotation marks around it.

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

Page 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) 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

Q2) Which statement is not true regarding functions?

A) A function is a self-contained set of statements that can receive input values.

B) Visual Basic has many built-in functions such as CSngtxtInput.Text)

C) A function can only return a single value.

D) The same function can return several data types including integer, string, or double

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

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) When a project executes, its _is automatically displayed.

A) main sub

B) startup form

C) event procedure

D) form load event

Q2) 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

Q3) The last form created for a Windows Forms application is designated as the startup form.

A)True

B)False

Q4) Which of the following statements disables the Copy menu item named mnuCopy?

A) mnuCopy.Disabled = True

B) mnuCopy.Enabled = False

C) mnuCopy.Active = False

D) mnuCopy.Disable

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/76820

Sample Questions

Q1) Which of the following allows an application to automatically execute code at regular time intervals?

A) Timer Enabled Event

B) Interval Property

C) Timer Event

D) Timer control

Q2) When changing the number of elements in an array at run-time with the ReDim statement, existing values in the array are destroyed unless the _keyword is used.

A) Preserve

B) Reserve

C) ReDim

D) Protect

Q3) In the array declaration below, what is the significance of the number 7? Dim strNames7) As String

A) It indicates the number of elements in the array.

B) It's the upper bound highest subscript value) of the array.

C) It's the value assigned to the array elements.

D) It's one greater than the upper bound of the array.

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

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) A structure should be used instead of an array when .

A) related items should be grouped together

B) related items are of different data types

C) related items contain strings of different lengths

D) there are a limited number of related items

Q2) 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

Q3) This property allows the developer to specify the type of files that will appear in a dialog box.

A) InitialFile property

B) FileFilter property

C) Files property

D) Filter property

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) The SQL Select statement retrieves data from a database and returns it in a , a set of records matching the selection criteria.

A) Subset

B) Dynaset

C) DataSource

D) Dataset

Q2) Each database ____is also known as a row in a database table.

A) record

B) table

C) column

D) field

Q3) _is a tool provided by Visual Studio for creating and modifying SQL queries.

A) Server Explorer

B) SQL Explorer

C) Query Builder

D) SQL Toolbox

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/76817

Sample Questions

Q1) 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.

Q2) Which of the following is not true about the ASP.NET development platform?

A) Visual Basic code can be stored in a separate file from a web page's text and HTML.

B) It allows you to transfer much of your Visual Basic knowledge to Web applications.

C) It allows the use of object-oriented program code.

D) Visual Basic is the only programming language that may be used.

Q3) A postback occurs when the server processes the page contents and .

A) does nothing when there are no changes to the page contents

B) sends an error when the requested page is not found

C) sends a different page that was requested by the user

D) resends a modified version of the same page currently displayed

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/76816

Sample Questions

Q1) Object-oriented programming is a way of designing and coding applications such that interchangeable software can be used to build larger programs.

A) controls

B) structures

C) components

D) languages

Q2) 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

Q3) It's possible to access the items in a collection using .

A) an integer index of the item to be retrieved

B) the Item method to retrieve an item with a specific key value

C) a For Each loop

D) all of the above

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

14

Turn static files into dynamic content formats.

Create a flipbook
Event-Driven Programming Final Exam Questions - 430 Verified Questions by Quizplus - Issuu