Skip to main content

Object-Oriented Programming Mock Exam - 429 Verified Questions

Page 1


Object-Oriented Programming

Mock Exam

Course Introduction

Object-Oriented Programming introduces the foundational concepts and techniques of designing and building software using the object-oriented paradigm. Students learn about classes, objects, inheritance, encapsulation, polymorphism, and abstraction, as well as how to apply these principles to develop robust, efficient, and maintainable code. The course emphasizes practical problem-solving through programming exercises and projects using a modern object-oriented language, fostering a deeper understanding of reusable and modular software 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) Which of the following is an example of a binary number?

A) 324

B) 123

C) 101

D) 202

Answer: C

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

Q3) The purpose of an algorithm is to ____________.

A) analyze the nature of a problem

B) describe a set of steps to solve a problem

C) understand what a programming language does

D) list the elements needed for the user interface

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) 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) To lock all of the controls on a form during design time, ______________.

A) left-click an empty spot on the form, then click Locked in the properties window

B) right-click an empty spot on the form, then select the Lock Controls option from the pop-up menu

C) click Window on the Menu Bar, then click Lock Controls d right-click the form, then click the lock controls icon on the toolbar

Answer: B

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

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) All numeric and date data types have a ______method that returns a string representation of the contents of the variable.

A) Convert

B) String

C) ToString

D) ToText

Answer: C

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

Q3) What is the result after evaluating the following expression: 24 MOD 9

A) 6

B) 3

C) 2

D) 5

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 will be assigned to decCommission after the following code executes?

<b> Dim decMonthlySales, decCommRate, decCommission as Decimal

DecMonthlySales = 6500.00

Select Case decMonthlySales

Case Is < 1000

DecCommRate = 0.05

Case 1000 to 9999.99

DecCommRate = 0.10

Case Is >= 10000

DecCommRate = 0.15

End Select

DecCommission = decCommRate * decMonthlySales</b>

A) 0.00

B) 325.00

C) 650.00

D) 925.00

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

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) Setting this property to True will put the items in a <b>ListBox</b> in alphabetical order.

A) Sorted

B) Ordered

C) Reorder

D) Alphabetic

Q3) The entries in a ListBox are stored in the ______property.

A) Items.Count

B) Items

C) Entries

D) Text

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 of the following can be returned by a function?

A) String values

B) Integer values

C) Boolean values

D) All of the above

Q3) In the context of Visual Basic procedures and functions, what is an argument?

A) A value received by a procedure from the caller

B) A value passed to a procedure by the caller.

C) A local variable that retains its value between procedure calls.

D) A disagreement between the procedure and the statement that calls it.

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

Page 8

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

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) A variable is accessible to statements outside the form if declared __________.

A) as private and class-level

B) as public

C) as public and class-level

D) with a Dim statement

Q2) A module-level variable declared Public is also known as a ______variable.

A) private

B) access

C) global

D) universal

Q3) How do you insert a separator bar into a menu?

A) Type a hyphen ( ) as a menu item's Text property.

B) Type a space as a menu item's Text property

C) Assign True to the Separator property

D) Right-click an existing item and select Bar from the pop-up menu

Q4) Which of the following is not true about a form's Activated event?

A) It occurs when a form is initially displayed.

B) It occurs each time a form regains the focus.

C) It occurs each time the user clicks a form that does not have the focus.

D) It occurs before the Load event procedure is processed.

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 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) Which of the following provides the index of the highest numbered element of the array strNames?

A) strNames.Length - 1

B) strNames.Length

C) strNames.Length + 1

D) None of the above

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

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) All of the following steps must be taken when a file is used by an application except ______.

A) the file must be opened. If the file does not exist, the file will be created.

B) the file must have a fully qualified path when opening the file.

C) data is either written to the file or read from the file.

D) when the application is finished using the file, the file is closed.

Q2) A file is like a stream of data that must be read from its beginning to its end.

A) direct access

B) binary format

C) sequential access

D) direct format

Q3) When a file is selected from an Open dialog box, the path and file name are stored in the control's ______property?

A) Filename

B) PathName

C) File

D) Item

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

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) A database _____________is organized into rows and columns.

A) grid

B) matrix

C) table

D) spreadsheet

Q2) Which item describes the function of the following SQL statement?

<b>SELECT ID, Last_Name, First_Name, Address

FROM Members

WHERE Last_Name = @LastName</b>

A) a simple query

B) a parameterized query

C) a compound query

D) a wildcard query

Q3) _______allows you to query many types of data from virtually any source.

A) SQL

B) LINQ

C) OPENGL

D) DirectX

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

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 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) Internet Information Services (IIS) __________.

A) implements a professional-quality Web server

B) contains minimal security and configuration features

C) requires little expertise to set up and maintain

D) all of the above

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) A ______is automatically called when an instance of the class is created.

A) Load method

B) constructor

C) instantiator

D) Initializer method

Q2) The class is the portion of a class that is visible to the application programmer.

A) form

B) design

C) control

D) interface

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
Object-Oriented Programming Mock Exam - 429 Verified Questions by Quizplus - Issuu