Skip to main content

Object-Oriented Programming Exam Preparation Guide - 1353 Verified Questions

Page 1


Object-Oriented Programming Exam Preparation Guide

Course Introduction

Object-Oriented Programming introduces the principles and techniques for designing and implementing software using the object-oriented paradigm. The course covers fundamental concepts such as classes, objects, inheritance, polymorphism, encapsulation, and abstraction. Students will learn how to model real-world systems using objects and how to structure programs for flexibility and reusability. Through hands-on programming assignments in an object-oriented language, participants gain practical experience in problem-solving, software design, and debugging. The course lays the foundation for advanced programming and software engineering topics.

Recommended Textbook

Visual C# How to Program 6th Edition by Paul J. Deitel

Available Study Resources on Quizplus

25 Chapters

1353 Verified Questions

1353 Flashcards

Source URL: https://quizplus.com/study-set/2449 Page 2

Chapter 1: Introduction to Computers, the Internet and Visual C#

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

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

Sample Questions

Q1) The smallest data item in a computer is the _________.

A) bit

B) byte

C) kilobyte

D) None of the above.

Answer: A

Q2) Secondary storage stores data for large amounts of time.

A)True

B)False

Answer: True

Q3) Characters in C# are Unicode characters,each represented by one byte.

A)True

B)False

Answer: False

Q4) The integration of software components from various languages has been rel atively simple.

A)True

B)False

Answer: False

Page 3

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

Chapter 2: Dive Into Visual Studio Community

Available Study Resources on Quizplus for this Chatper

25 Verified Questions

25 Flashcards

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

Sample Questions

Q1) The View menu:

A) Contains commands for displaying IDE windows and toolbars

B) Contains commands for arranging a form's controls.

C) Contains commands for managing a project and its files.

D) Contains commands for compiling a program.

Answer: A

Q2) Commands for managing the IDE and for developing,maintaining and executing programs are contained in the menus,which are located on the menu bar.

A)True

B)False

Answer: True

Q3) The Properties window

A)allows you to modify control's properties without writing any code.

B)displays a control's information.

C)has the same set of options for every control.

D)a and b

E)a and c

Answer: D

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

4

Chapter 3: Introduction to C# Apps

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

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

Sample Questions

Q1) Every variable has a  .

A) type

B) size

C) value

D) All of the above.

Answer: D

Q2) "\" is known as an escape sequence.

A)True

B)False

Answer: False

Q3) Which of the following is the equality operator

A) =

B) !=

C) =!

D) ==

Answer: D

Q4) The process of reading from a memory location is nondestructive.

A)True

B)False

Answer: True

Page 5

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

Chapter 4: Introduction to Classes,Objects,Methods and Strings

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) A property encapsulates a set accessor for storing a value into a variable and a get accessor for getting the value of a variable.

A)True B)False

Q2) The code myAccount.SetName(theName); calls myAccounts's SetName method,passing theName's value as SetName's argument. A)True B)False

Q3) Which of the following statements about the C format specifier is false. A) It formats the string as currency.

B) It includes an appropriate currency symbol ($ in the U.S.) next to the number. C) It separates digits with an appropriate separator character (in the U.S. its a comma between every digit.)

D) It sets the number of decimal places to two by default.

Q4) Local variables are initialized to their default values. A)True B)False

6

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

Chapter 5: Control Statements: Part 1

Available Study Resources on Quizplus for this Chatper

94 Verified Questions

94 Flashcards

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

Sample Questions

Q1) Which primitive type can hold the largest value

A) int

B) long

C) float

D) double

Q2) Variables that store totals should generally be initialized to zero before being used in a program.

A)True

B)False

Q3) Which of the following operators associates from left to right

A) ++

B)\(?:\)

C) %=

D) /

Q4) The lines in an activity diagram are a graphical representation of an algorithm.

A)True

B)False

Q5) Unary operators associate from right to left.

A)True

B)False

Page 7

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

Chapter 6: Control Statements: Part 2

Available Study Resources on Quizplus for this Chatper

66 Verified Questions

66 Flashcards

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

Sample Questions

Q1) A control variable that's declared in a for statement header is not accessible outside of the body of the for statement.

A)True

B)False

Q2) What occurs when an empty case matches the controlling expression

A) fall through

B) syntax error

C) infinite loop

D) None of the above.

Q3) Which of the following will count down from 10 to 1 correctly

A) for (int j = 10; j < = 1; ++j)

B) for (int j = 1; j < = 10; ++j)

C) for (int j = 10; j > 1; --j)

D) for (int j = 10; j >= 1; --j)

Q4) Braces are normally included with do while statements even when unnec essary to avoid confusion with the while statement.

A)True

B)False

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

8

Chapter 7: Methods: a Deeper Look

Available Study Resources on Quizplus for this Chatper

95 Verified Questions

95 Flashcards

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

Sample Questions

Q1) A recursive method knows directly how to solve only the base case.

A)True

B)False

Q2) A recursive method is a method that:

A) calls another method

B) calls itself

C) has no return type

D) None of the above

Q3) A variable of a reference type contains:

A) information about the type and its data

B) data of that type

C) the address of the location in memory where data is stored

D) None of the above.

Q4) strings can be concatenated only with the method Concat.

A)True

B)False

Q5) A local variable or reference declared in a block can be used in blocks in which that block is nested.

A)True

B)False

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

Chapter 8: Arrays;Introduction to Exception Handling

Available Study Resources on Quizplus for this Chatper

90 Verified Questions

90 Flashcards

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

Sample Questions

Q1) Arrays are data structures that may consist of data items of different types. A)True B)False

Q2) Consider integer array values,which contains 5 elements.Which statements successfully swap the contents of the array at index 3 and index 4 A)

values[3] = values[4]; values[4] = values[3]; B)

values[4] = values[3]; values[3] = values[4];

C)

int temp = values[3]; values[3] = values[4]; values[4] = temp;

D)

int temp = values[3]; values[3] = values[4]; values[4] = values[3];

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

Chapter 9: Introduction to Linq and Generic Collections

Available Study Resources on Quizplus for this Chatper

27 Verified Questions

27 Flashcards

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

Sample Questions

Q1) Collections of type List< T > can hold objects of what type

A) only other lists

B) only integers

C) objects of any one type

D) None of the above

Q2) Which of the following statements about LINQ is false

A) A new LINQ query must be used when changes are made to the data source.

B) A LINQ query does not need to have a let clause

C) A LINQ query returns an IEnumerable object

D) LINQ stands for Language Integrated Query.

Q3) The ________ extension method is typically used to determine whether a LINQ query's results are non-empty.

A) Any

B) First

C) Count

D) None of the above

Q4) Visual C# requires you to write SQL to query data sources.

A)True

B)False

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

Chapter 10: Classes and Objects: A Deeper Look

Available Study Resources on Quizplus for this Chatper

79 Verified Questions

79 Flashcards

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

Sample Questions

Q1) Composition is a form of software reuse.

A)True

B)False

Q2) You cannot validate values assigned to properties using an object initializer.

A)True

B)False

Q3) At least one argument of an operator overload method must be a reference to an object of the class in which the operator is overloaded.

A)True

B)False

Q4) Object initializers (which initialize an object and its properties)use what syntax

A) new className(property1 - > value1, );

B) new className(property1 = value1, );

C) new className{property1 = value1, };

D) className{property1 = value1, };

Q5) User-defined classes may be composed of other user-defined classes.

A)True

B)False

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

Chapter 11: Object-Oriented Programming: Inheritance

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

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

Sample Questions

Q1) A key to improving the software development process is encouraging soft ware reuse.

A)True

B)False

Q2) The default implementation of method ToString of object returns a string representing ________.

A) the object's type

B) the object class name

C) namespace_name.object_class_name

D) None of the above

Q3) All classes in C# have object as either a direct or indirect base class.

A)True

B)False

Q4) Which base class members are inherited by all derived classes of that base class

A) private instance variables and methods

B) protected instance variables and methods

C) private constructors

D) protected constructors

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

Chapter 12: Object-Oriented Programming: Polymorphism

Available Study Resources on Quizplus for this Chatper

62 Verified Questions

62 Flashcards

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

Sample Questions

Q1) The keyword sealed is applied to methods and classes to:

A) prevent overriding and inheritance

B) guarantee an implementation exists

C) specify a class is concrete

D) None of the above.

Q2) You may define implementations for abstract methods to act as default implementations.

A)True

B)False

Q3) An interface can not provide properties with get and set accessors.

A)True

B)False

Q4) Sealing methods allows the compiler to optimize the program by "inlining code."

A)True

B)False

Q5) Objects of abstract base classes can be instantiated.

A)True

B)False

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

Chapter 13: Exception Handling: A Deeper Look

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) The catch handler that catches an exception of type Exception should be A) last

B) anywhere

C) first

D) a catch handler that catches an exception of type Exception should not be used

Q2) When an exception occurs,the try block _______.

A) expires

B) continues until a matching catch block

C) continues until the end of the try block

D) None of the above

Q3) Resource de-allocation should be done explicitly in the finally block.

A)True

B)False

Q4) If a finally block appears after the last catch block,it is executed only if an ex ception is thrown.

A)True

B)False

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

15

Chapter 14: GUI With Windows Forms: Part 1

Available Study Resources on Quizplus for this Chatper

64 Verified Questions

64 Flashcards

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

Sample Questions

Q1) KeyPress events cannot deal with modifier keys.

A)True

B)False

Q2) A difference between textboxes and labels is:

A) textboxes have a drop-down feature

B) labels cannot be changed during runtime

C) textboxes allow the user to enter information into them

D) nothing

Q3) When adding a ToolTip component from the Toolbox,it appears on the arbitrary location on the Form.

A)True

B)False

Q4) A GUI allows the user to interact with the program visually.

A)True

B)False

Q5) By looking up ControlName class and clicking the events section,you can find out all the events and the parameters a control has.

A)True

B)False

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

Chapter 15: GUI With Windows Forms: Part 2

Available Study Resources on Quizplus for this Chatper

73 Verified Questions

73 Flashcards

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

Sample Questions

Q1) Only one date can be selected at a time in the MonthCalendar control.

A)True

B)False

Q2) The syntax for adding a new item to a ListBox is:

A) ListBox.Items.Add("item")

B) ListBox.Add("item")

C) ListBox.Items.Insert("item")

D) ListBox.Insert("item")

Q3) Users should not create controls that:

A) extend existent controls

B) perform the same function as an existing control

C) inherit from class UserControl

D) a and c

E) b and c

Q4) Inheriting a form can be difficult in C#.

A)True

B)False

Q5) In a ComboBox only the programmer can enter items to the list.

A)True

B)False

17

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

Chapter 16: Strings,Characters and Regular Expressions

Available Study Resources on Quizplus for this Chatper

92 Verified Questions

92 Flashcards

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

Sample Questions

Q1) Characters consist of only the capital and lowercase letters.

A)True

B)False

Q2) To make a search return between 10 and 20 results use

A) { 10, 20 }

B) (10, 20)

C) [ 10, 20 ]

D) < 10, 20 >

Q3) A string is less than another string if the first "comes before" the second alphabetically.

A)True

B)False

Q4) In order to concatenate a string with another string you can use the Concat method.

A)True

B)False

Q5) Method AppendFormat can be used to format objects with spaces or using proper mathematical notations.

A)True

B)False

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

Chapter 17: Files and Streams

Available Study Resources on Quizplus for this Chatper

39 Verified Questions

39 Flashcards

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

Sample Questions

Q1) In a class that's marked with the [Serializable] attribute or that implements inter face ISerializable,not every instance variable of the class needs to be seri alizable.

A)True

B)False

Q2) A recursive search on a directory is one where:

A) a directory is searched and then all of its sub directories are searched.

B) each sub directory is searched and then the main directory is searched.

C) a search is done randomly on all directories.

D) a and c.

E) a and b

Q3) Which of the following methods of FileStream will reset the file-position pointer back to the beginning of the file

A)Reset

B) Origin

C) Seek

D) Beginning

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

19

Chapter 18: Searching and Sorting

Available Study Resources on Quizplus for this Chatper

19 Verified Questions

19 Flashcards

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

Sample Questions

Q1) Which of the following sorting algorithms is the fastest when sorting a large array

A)Selection sort

B)Insertion sort

C)Merge sort

D)They all run at roughly the same speed

Q2) If the search key is not in an array of 10 elements,how many comparisons must the linear search algorithm make

A) 0

B) 10

C) 9

D) 5

Q3) Searching data involves determining whether a search key is present in the data and,if so,finding its location.

A)True

B)False

Q4) The Big O Notation measures the average case run time of an algorithm.

A)True

B)False

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

Page 20

Chapter 19: Data Structures

Available Study Resources on Quizplus for this Chatper

28 Verified Questions

28 Flashcards

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

Sample Questions

Q1) ___________ conversion is when an object is cast into another type.

A) unboxing

B) converting

C) wrapping

D) boxing

Q2) In a circular linked list,each node is connected to every other node.

A)True

B)False

Q3) A queue is a __________ data structure.

A) FOFI

B) FIFO

C) OFIF

D) IFOF

Q4) An array is a dynamic data structure.

A)True

B)False

Q5) The two primary operations when manipulating a stack are push and pop.

A)True

B)False

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

Chapter 20: Generics

Available Study Resources on Quizplus for this Chatper

22 Verified Questions

22 Flashcards

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

Sample Questions

Q1) Generic methods are often used to perform similar operations on different types of data.

A)True B)False

Q2) It's not possible to apply multiple constraints to a type parameter. A)True

B)False

Q3) If there's a constructor constraint,the type argument's class must not provide constructors.

A)True B)False

Q4) The ________ clause specifies the type constraint for type parameter T. A) when B) constraint

C) where D) cnstr

Q5) A generic method's body is declared differently than that of any other method. A)True B)False

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

Chapter 21: Collections

Available Study Resources on Quizplus for this Chatper

35 Verified Questions

35 Flashcards

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

Sample Questions

Q1) Assigning an array of a derived-class type to an array variable of a base-class type is an example of contravariance.

A)True

B)False

Q2) All collection classes in theNET Framework implement some combination of collection interfaces.

A)True

B)False

Q3) A _______ is the general term for a collection of key-value pairs.

A) book

B) glossary

C) dictionary

D) lexicon

Q4) All arrays implicitly inherit from abstract base class Collection.

A)True

B)False

Q5) Covariance works only with reference types that are related by a class hierarchy.

A)True

B)False

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

Chapter 22: Databases and LING

Available Study Resources on Quizplus for this Chatper

25 Verified Questions

25 Flashcards

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

Sample Questions

Q1) An ADO.NET Entity Data Model contains only classes that represent the database's tables.

A)True

B)False

Q2) A primary key must be unique for each record in the relational database table.

A)True

B)False

Q3) Tables from databases are commonly shown in a GUI through a ________.

A) DataBoxView

B) DataGridView

C) ListBoxView

D) SpreadSheet

Q4) DBExtensions method Load loads an entire database's data into a DbContext.

A)True

B)False

Q5) Today's most popular database systems are ________.

A) management databases

B) structural databases

C) formatted databases

D) relational databases

Page 24

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

Chapter 23: Asynchronous Programming With Async and Await

Available Study Resources on Quizplus for this Chatper

37 Verified Questions

37 Flashcards

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

Sample Questions

Q1) ________ programming is a technique for writing apps containing tasks that can execute asynchronously,which can improve app performance and GUI responsiveness in apps with long-running or compute-intensive tasks.

A) synchronous

B) object-oriented

C) task-oriented

D) Asynchronous

Q2) Only computers that have ________ can truly execute multiple asynchronous tasks concurrently.

A) a processor

B) multiple processors or cores

C) very large memories

D) two of each type of I/O device

Q3) Today's ________ computers,smartphones and tablets enable computers to perform tasks truly concurrently.

A) large memory

B) multiscreen

C) soft keyboard

D) multicore

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

Chapter 24: XML

Available Study Resources on Quizplus for this Chatper

72 Verified Questions

72 Flashcards

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

Sample Questions

Q1) An important characteristic of XML is that it can be ________.

A) read by both humans and computers

B) used to describe a WPF GUI

C) created using special XML editing software

D) None of the above.

Q2) An XML document can optionally reference a DTD or schema that defines the proper structure of the document.

A)True

B)False

Q3) Method ________ returns an IEnumerable< XNode > containing all children of the given XContainer.

A) Children

B) Nodes

C) Elements

D) Descendants

Q4) Which namespace contains the XslCompiledTransform

A)System.Xml.Xsl

B) System.Xsl

C) System.Xml.Transform

D) System.XmlTransform

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

Chapter 25: GUI With Windows Presentation Foundation

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) A WPF style is a set of that can be reused for any number of controls.

A) property-value definitions

B) event-handler definitions

C) background images

D) a and b.

Q2) The CanExecute event for a command allows programmers to implement logic that determines whether a command should be enabled or disabled.

A)True

B)False

Q3) A routed event is ignored after its Handled property is set to True.

A)True

B)False

Q4) Data members declared as readonly must be initialized in their declaration.

A)True

B)False

Q5) Events which can travel up or down the container hierarchy are called ______.

A) expandable events

B) sourced events

C) bubble events

D) routed events

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

Turn static files into dynamic content formats.

Create a flipbook