Skip to main content

Event-Driven Programming Test Bank - 429 Verified Questions

Page 1


Event-Driven Programming Test Bank

Course Introduction

Event-Driven Programming is a foundational course that introduces students to the principles and practices of developing interactive applications that respond to user actions, system events, or external stimuli. Covering key concepts such as event loops, event handlers, callbacks, and listeners, the course explores how events are generated, detected, and managed within a variety of programming environments. Through practical exercises and projects, students gain hands-on experience designing and implementing software solutions that utilize graphical user interfaces, asynchronous operations, and real-time responses, preparing them for careers in software development, game design, web development, and other technology fields requiring reactive system design.

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) The part of a program that users see and interact with is known as the

A) algorithm

B) properties

C) methods

D) user interface

Answer: D

Q2) When creating a Visual Basic desktop application, the last task you must accomplish do is to ____________.

A) correct runtime errors

B) create the forms

C) write code for event procedures

D) correct syntax errors

Answer: A

Q3) Pseudocode is a combination of programming language and machine code.

A)True

B)False

Answer: False

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

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) If the Visible property of a control is set to False, it ______in the Designer window.

A) is grayed out

B) is no longer displayed

C) continues to be shown

D) becomes inactive

Answer: C

Q2) In order to delete a control from a form, you should select the control and then

A) click the Remove Item icon on the menu bar

B) click the Cut icon in the Properties window

C) press the Delete key on the keyboard

D) click Delete from the View menu

Answer: C

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

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

Q2) When you assign a value of one data type to a variable of another data type, Visual Basic attempts to perform _____type conversion.

A) string

B) explicit

C) implicit

D) numeric

Answer: C

Q3) A form's Load event takes place when the user first clicks on the form at run time.

A)True

B)False

Answer: False

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

Q2) Which function accepts a string as its argument and returns True if the string contains only numeric digits?

A) IsNumber

B) IsNumeric

C) CStr

D) ToString

Q3) The expression <b>Single.TryParse("12.5", sngNbr)</b> performs the following:

A) Returns True

B) Returns False

C) Places the value 12.5 in the variable sngNbr

D) Returns True and places the value 12.5 in the variable sngNbr

Q4) The If Then Else statement follows only one of the two paths.

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

Sample Questions

Q1) What is wrong with the following code?

<b>Dim intIndex As Integer For intIndex = 5 To 1 ListBox.Items.Add(intIndex.ToString)

Next<b>

A) The Next statement must read Next intIndex.

B) A For Next loop cannot be used to count backward.

C) intIndex is declared incorrectly for use with this type of loop.

D) You need to specify a negative step value in order to execute this loop.

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

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

Sample Questions

Q1) If you do not provide an access specifier for a procedure, it will be designated ______by default.

A) Private

B) Protected

C) Friend

D) Public

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 CSng(txtInput.Text)

C) A function can only return a single value.

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

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

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

Q2) Choose the statement below that performs the comment found on line 2 of the following code segment.

<b>Dim newStudentForm As New frmNewStudent()

'Initialize AcademicYear text box on NewStudent form to 1 NewStudentForm.ShowDialog()</b>

A) frmNewStudent.txtAcademicYear.Text = "1"

B) txtAcademicYear.Text.newStudentForm = "1"

C) newStudentForm.txtAcademicYear.Text = "1"

D) txtAcademicYear.frmNewStudent = "1"

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

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 one of the following declares a List variable and creates a List object at the same time.

A) New lstNames As List Of String

B) lstNames As String Object

C) Dim lstNames As New String

D) Dim lstNames As New List(Of String)

Q2) What is the error in the following code, and when will it be caught? Dim intValues(5) As Integer

Dim intIndex As Integer

For intIndex = 0 To 10

IntValues(intIndex) = 10

Next intIndex

A) The For...Next loop values for intIndex should range from 1 to 10. The error will occur at run time.

B) The loop should close with Next instead of Next intIndex. The error will occur at compile time.

C) An IndexOutOfRangeException will be thrown

D) The For...Next loop values for intIndex should range from 1 to 5. The error will occur at compile time.

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 left justify the columns in the String.Format method, use preceding the column width.

A) a + sign

B) an & symbol

C) a - sign

D) a # symbol

Q2) In order to retain data while a program is not running, data must be saved in

A) RAM

B) a ListBox

C) a control

D) a file

Q3) This method places an item of data in a file without terminating the line.

A) WriteLine

B) ReadLine

C) Append

D) Write

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

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

A) record

B) table

C) column

D) field

Q3) In SQL the bit type is equivalent to which Visual Basic data type?

A) Short

B) Boolean

C) Integer

D) String

Q4) What is the simplest way to update a user's changes to the database?

A) No need to save user changes as this occurs automatically

B) Use the Update method of a table adapter

C) Click the diskette icon to save the dataset to the database

D) Call the <b>SaveDataset</b> method of the table adapter

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

Sample Questions

Q1) What does a Web browser do for an end user?

A) Interprets HTML

B) Connects to Web sites

C) Hosts a Web site

D) A and B are correct

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

Q3) The following are true about a HyperLink control, except __________.

A) its Text property is shown to the user at runtime

B) it generates an event

C) it allows the user to navigate to another Web page

D) its Target property controls whether new page will appear in a separate window

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) Why is important to remove objects that are no longer need in your program?

A) To prevent over writing new objects with old data

B) To prevent program crashes

C) To free up memory for other uses

D) So the same variable can be assigned to a different object

Q2) Which of the following displays a window that lets you browse the classes available to your project?

A) Component Browser

B) Class Browser

C) Object Browser

D) Module Browser

Q3) Class members declared with this access specifier are like private members, except they may be accessed by methods and property procedures in derived classes.

A) Private

B) Public

C) Protected

D) SubClass

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 Test Bank - 429 Verified Questions by Quizplus - Issuu