Skip to main content

Event-Driven Programming Test Questions - 1094 Verified Questions

Page 1


Event-Driven Programming Test Questions

Course Introduction

Event-Driven Programming is a paradigm centered on the flow of program execution being determined by events such as user actions, sensor outputs, or message passing from other programs. This course introduces students to the core concepts and patterns of event-driven architecture, including event listeners, handlers, and the use of event loops. Students will learn how to design interactive applications where components respond to user inputs and system-generated events in real time. Through practical exercises and real-world examples, the course covers techniques for managing asynchronous operations, handling concurrency, and building responsive GUIs and networked applications. The curriculum emphasizes problem-solving, modular design, and the implementation of event-driven systems in languages commonly used for these applications.

Recommended Textbook

Starting out with Visual C# 2012 3rd Edition by Tony Gaddis

Available Study Resources on Quizplus

11 Chapters

1094 Verified Questions

1094 Flashcards

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

2

Chapter 1: Introduction to Computers and Programming

Available Study Resources on Quizplus for this Chatper

161 Verified Questions

161 Flashcards

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

Sample Questions

Q1) The ____________ is considered by many to be the world's first programmable electronic computer.

A) UNIVAC

B) ENIAC

C) Apple II

D) Harvard MARK I

Answer: B

Q2) The ovals, which appear at the top and bottom of a flowchart, are called

A) input symbols

B) processing symbols

C) terminal symbols

D) output symbols

Answer: C

Q3) In programming, an object is a physical device.

A)True

B)False

Answer: False

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

Chapter 2: Introduction to Visual C

Available Study Resources on Quizplus for this Chatper

131 Verified Questions

131 Flashcards

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

Sample Questions

Q1) In code, you use a(n) ____________ to store a value in a control's property.

A) string literal

B) assignment statement

C) dialog box

D) constant Answer: B

Q2) When a piece of data is written into a program's code, it is called a ____________.

A) constant

B) sentinel

C) value

D) literal Answer: D

Q3) Each form and control in an application's GUI must have a name that identifies it.

A)True

B)False Answer: True

Q4) A Label control's BorderStyle property is set to FixedSingle by default. Answer: NOT ANSWERED

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

Chapter 3: Processing Data

Available Study Resources on Quizplus for this Chatper

174 Verified Questions

174 Flashcards

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

Sample Questions

Q1) You can assign a value to a variable only if the value is compatible with the variable's

A) data type

B) name

C) scope

D) lifetime

Answer: A

Q2) The ____________ is commonly used in financial applications because it can store real numbers with a great deal of precision.

A) string

B) int

C) double

D) decimal

Answer: D

Q3) The same rules for identifiers that apply to control names also apply to variable names.

A)True

B)False

Answer: True

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

77 Verified Questions

77 Flashcards

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

Sample Questions

Q1) When you want to create a check box on a form, you use the ____________, which is found in the Common Controls section of the Toolbox.

A) CheckBox control

B) RadioButton control

C) ListBox control

D) LinkLabel control

Q2) To convert a string to a double, we use the ____________ method.

A) String.ToDouble

B) double.TryParse

C) Try.ParseDouble

D) ToString

Q3) When the user selects an item in a ListBox, the item is stored in the ListBox's ____________ property.

A) Checked

B) SelectedValue

C) DataSelection

D) SelectedItem

Q4) You cannot compare string variables with string literals.

A)True

B)False

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

Chapter 5: Loops, Files, and Random Numbers

Available Study Resources on Quizplus for this Chatper

109 Verified Questions

109 Flashcards

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

Sample Questions

Q1) When you work with a ____________, you access data from the beginning of the file to the end of the file.

A) sequential access file

B) direct access file

C) text file

D) input file

Q2) When the user specifies a location and filename with the Save As dialog box, the file's path and filename are stored in the control's FilePath property.

A)True

B)False

Q3) You can call a Random object's ____________ method to get a random floating-point number between 0.0 and 1.0.

A) GetDouble

B) NextFloat

C) NextDouble

D) DoubleRand

Q4) A direct access file is also known as a random access file.

A)True

B)False

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

Chapter 6: Modularizing Your Code With Methods

Available Study Resources on Quizplus for this Chatper

61 Verified Questions

61 Flashcards

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

Sample Questions

Q1) A parameter variable, often simply called a(n)____________, is a special variable that receives an argument when a method is called.

A) parameter

B) argument

C) reference

D) variable

Q2) To create a method you write its specification parameters.

A)True

B)False

Q3) In a general sense, a class is a collection of statements that performs a specific task.

A)True

B)False

Q4) A parameter variable's scope is the ____________ in which the parameter variable is declared.

A) namespace

B) class

C) field

D) method

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

Chapter 7: Arrays and Lists

Available Study Resources on Quizplus for this Chatper

99 Verified Questions

99 Flashcards

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

Sample Questions

Q1) To declare a two-dimensional array, two ____________ are required: The first one is for the number of rows, and the second one is for the number of columns.

A) reference variables

B) Boolean variables

C) named constants

D) size declarators

Q2) The ____________ creates an object in memory and returns a reference to that object.

A) .NET Framework

B) new operator

C) = operator

D) % operator

Q3) Because the foreach loop automatically knows the number of elements in an array, you do not have to use a counter variable to control its iterations, as with a regular for loop.

A)True

B)False

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

9

Chapter 8: More About Processing Data

Available Study Resources on Quizplus for this Chatper

87 Verified Questions

87 Flashcards

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

Sample Questions

Q1) Like strings, enumerators must be enclosed in quotation marks.

A)True

B)False

Q2) Look at the following code sample: struct Pet

{ Public string name; Public int age; Public string type; }

Const int SIZE = 4; Pet[] cats = new Pet[SIZE];

Which one of the following statements assigns the string "Pickles" to the name member of cats[2]?

A) "Pickles" = cats[2];

B) cats[2].name = "Pickles";

C) cats.name[2] = "Pickles";

D) cats[2].name("Pickles");

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

Page 10

Chapter 9: Classes and Multiform Projects

Available Study Resources on Quizplus for this Chatper

89 Verified Questions

89 Flashcards

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

Sample Questions

Q1) A constructor that accepts arguments is known as a(n) ____________.

A) parameterized constructor

B) alternate constructor

C) constructor method

D) aliased constructor

Q2) A method's ____________ is not part of the signature.

A) return type

B) name

C) parameter data type

D) argument kind

Q3) A form can be both modal and modeless.

A)True

B)False

Q4) An error will occur if you to try to assign a value to a read-only property.

A)True

B)False

Q5) It is perfectly legal to write a class without any constructors.

A)True

B)False

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

Chapter 10: Inheritance and Polymorphism

Available Study Resources on Quizplus for this Chatper

37 Verified Questions

37 Flashcards

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

Sample Questions

Q1) If the derived class introduces additional methods, properties, or fields, as base class reference variable cannot access them.

A)True

B)False

Q2) A(n) ____________ is a method that appears in a base class but expects to be overridden in a derived class.

A) shadow method

B) base method

C) derived method

D) abstract method

Q3) A base class reference variable knows only about the members that are declared in the ____________.

A) derived class

B) base class

C) method header

D) parameterless constructor

Q4) You can think of the derived class as an extended version of the base class.

A)True

B)False

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

Chapter 11: Databases

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) Once the data is stored using the database management system, applications may be written in ____________ to communicate with the DBMS.

A) Java

B) C#

C) Visual Basic

D) any of these

Q2) A ____________ can display an entire database table in a scrollable grid on an application's form.

A) BindingNavigator control

B) DataSet control

C) Chart control

D) DataGridView control

Q3) If a particular column is not allowed to be null, anytime you add a row of data to the table, the DBMS will require a value for the column.

A)True

B)False

Q4) SQL does not support relational operators.

A)True

B)False

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

Turn static files into dynamic content formats.

Create a flipbook