Skip to main content

Object-Oriented Programming Review Questions - 1111 Verified Questions

Page 1


Object-Oriented Programming Review

Questions

Course Introduction

Object-Oriented Programming (OOP) is a foundational course that introduces students to the principles and methodologies of designing and building software using the object-oriented paradigm. The course covers core concepts such as classes, objects, inheritance, encapsulation, and polymorphism, enabling students to develop modular, reusable, and maintainable code. Through a series of hands-on projects and assignments, students gain practical experience in implementing object-oriented solutions to real-world problems using a modern programming language. The course also emphasizes best practices in software development, including debugging, testing, and documentating object-oriented applications.

Recommended Textbook

Starting out with Visual C# 4th Edition by Tony Gaddis

Available Study Resources on Quizplus

11 Chapters

1111 Verified Questions

1111 Flashcards

Source URL: https://quizplus.com/study-set/1062 Page 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/20995

Sample Questions

Q1) The Visual Studio ____________ window allows you to navigate among the files in a Visual C# project.

A) Properties

B) Designer

C) Source

D) Solution Explorer

Answer: D

Q2) A computer is not a single device, but a system of devices working together.

A)True

B)False

Answer: True

Q3) Software development tools control the internal operations of the computer's hardware, mange all the devices connected to the computer, allow data to be saved to and retrieved from the storage devices, and allow other programs to run on the computer.

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

Sample Questions

Q1) You can use a(n) ____________ control to display a graphic image on a form.

A) Image

B) Graphics

C) Texture2D

D) PictureBox

Answer: D

Q2) You cannot click and drag controls from the Toolbox onto a form.

A)True

B)False

Answer: False

Q3) When you have a project open in Visual Studio, the time during which you build the GUI and write the application's code is referred to as ____________.

A) prototyping

B) design time

C) visual planning

D) application progression

Answer: B

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

176 Verified Questions

176 Flashcards

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

Sample Questions

Q1) An error occurs if you attempt to use a string that is set to null.

A)True

B)False Answer: True

Q2) A variable of the int data type can hold numbers with a fractional part, such as 22.1 or 4.9.

A)True

B)False Answer: False

Q3) If you need to store numbers and perform mathematical operations on them, you have to use a numeric data type.

A)True

B)False Answer: True

Q4) A variable of the decimal data type can hold real numbers with greater precision that the double data type.

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

78 Verified Questions

78 Flashcards

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

Sample Questions

Q1) When displaying an item from a ListBox, you have to call the SelectedItem property's ToString method to retrieve the value as a string.

A)True

B)False

Q2) A ____________ appears as a small box with some accompanying text.

A) list box

B) link

C) check box

D) radio button

Q3) Which one of the following expressions determines if the value of the balance variable is equal to zero?

A) 0 = balance

B) balance == 0

C) balance = 0

D) balance <= 0

Q4) RadioButton controls are grouped according to the container in which they are placed.

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

112 Verified Questions

112 Flashcards

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

Sample Questions

Q1) The ++ operator is pronounced "plus plus" and the -- operator is pronounced "minus minus".

A)True

B)False

Q2) The first expression appearing in the header of a for loop is the ____________, which usually assigns a starting value to a counter variable.

A) update expression

B) test expression

C) Boolean expression

D) initialization expression

Q3) To add an item to a ListBox control with code, you call the control's ____________method.

A) Add.Items

B) Items.Add

C) Items.Append

D) Items.Insert

Q4) The Load event takes place before the form is displayed on the screen.

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

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) You have to write the data type for each parameter variable in a parameter list.

A)True

B)False

Q2) Data values passed a method when it is called are known as ____________.

A) references

B) variables

C) arguments

D) parameters

Q3) When calling a method and passing a variable as an argument, always write the data type and the variable name of the argument variable in the method call.

A)True

B)False

Q4) ____________ are useful for returning more than one value from a method.

A) Reference parameters

B) Named arguments

C) Default arguments

D) Parameter lists

Q5) Every method must have a nonempty parameter list.

A)True

B)False

8

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

Chapter 7: Arrays and Lists

Available Study Resources on Quizplus for this Chatper

99 Verified Questions

99 Flashcards

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

Sample Questions

Q1) Traditional two-dimensional arrays, where each row has the same number of columns, are sometime referred to as ____________.

A) square arrays

B) rectangular arrays

C) box arrays

D) 2D arrays

Q2) Which one of the following statements is not a valid array declaration?

A) double[] parsecs = new double[10];

B) decimal[] sales = new decimal[24.5m];

C) string[] cities = new decimal[50];

D) int[] quarters = new int[4];

Q3) You access the individual elements in an array using their subscripts.

A)True

B)False

Q4) Memory allocated for a reference type variable is the actual location that will hold any value assigned to the variable.

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

90 Verified Questions

90 Flashcards

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

Sample Questions

Q1) Because char variables can hold only one character, they are not assignment-compatible with string variables.

A)True

B)False

Q2) You can set the ImageSize property of an ImageList control to any value from 0,0 through 256,256.

A)True

B)False

Q3) Enumerators and enum variables can be compared directly with ____________ values.

A) int

B) decimal

C) double

D) string

Q4) The ____________ method removes all leading and trailing spaces from a string.

A) Remove

B) NoSpaces

C) Trim

D) RemoveSpace

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

Sample Questions

Q1) When you create an array of a class type, each element of the array will be initialized with the value ____________ by default.

A) 0

B) null

C) false

D) void

Q2) The same rules for naming variables apply to naming classes.

A)True

B)False

Q3) A class is not an object but a description of an object.

A)True

B)False

Q4) Suppose a project has a form named SummaryForm. Which one of the following statements creates an instance of the SummaryForm class and assigns it to a variable?

A) SummaryForm.ShowDialog();

B) SummaryForm = this.Form();

C) mySummaryForm = SummaryForm();

D) mySummaryForm = new SummaryForm();

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

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

Sample Questions

Q1) When program code instatiates a derived class object, the base class constructor executes first, followed by the derived class constructor.

A)True

B)False

Q2) If a reference to a base class object calls a method that has been overridden by a derived class, the derived class's version of the method is the one that executes.

A)True

B)False

Q3) Properties in a base class can be overridden in the same way that methods can be overridden.

A)True

B)False

Q4) You can think of a derived class as an extended version of some base class. A)True

B)False

Q5) Inheritance involves a base class and a relative 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/21005

Sample Questions

Q1) The table column designated as the primary key must hold a unique value for each row.

A)True

B)False

Q2) The application handles the mechanical details reading of, writing of, and searching for data in a database.

A)True

B)False

Q3) Most database tables have a(n) ____________, which is a column that can be used to identify a specific row.

A) identifier

B) primary key

C) key word

D) column name

Q4) The DBMS works directly with the data and sends the results of operations back to the ____________.

A) application

B) data

C) DBMS

D) CPU

Page 13

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

Turn static files into dynamic content formats.

Create a flipbook