

Object-Oriented Programming in C# Practice Questions
Course Introduction
This course offers a comprehensive introduction to object-oriented programming (OOP) principles using the C# programming language. Students will explore key concepts such as classes, objects, encapsulation, inheritance, polymorphism, and abstraction, while learning to design and implement robust software solutions. The course includes practical exercises on creating reusable code, error handling, and utilizing C#'s advanced features like collections, interfaces, and events. By the end of the course, students will be equipped with the skills to build scalable, maintainable, and efficient applications using C# and the .NET framework.
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

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) A ____________ object displays text on a form.
A) Text
B) Font
C) Character
D) Label Answer: D
Q2) The data stored in an object are commonly called fields, or ____________.
A) attributes
B) characteristics
C) properties
D) values
Answer: C
Q3) For many years, the only way that the user could interact with a computer was through a command line interface.
A)True
B)False
Answer: True
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) Once a control has been added to a form, it cannot be deleted.
A)True
B)False
Answer: False
Q2) C# code is organized using namespaces, which are contained inside classes, which are contained inside methods.
A)True
B)False
Answer: False
Q3) A(n) ____________ is a method that executes when a specific event (such as clicking the mouse) takes place while an application is running.
A) action sequencer
B) feature coordinator
C) event handler
D) incident manager
Answer: C
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) A form's field values remain in memory as long as the form itself.
A)True
B)False
Answer: True
Q2) When you store a data in a variable, the value replaces any data previously stored inside the variable.
A)True
B)False
Answer: True
Q3) 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
Q4) Only TextBox controls have a TabIndex property.
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
78 Verified Questions
78 Flashcards
Source URL: https://quizplus.com/quiz/20998
Sample Questions
Q1) The ____________ method can be used to determine whether one string is greater than or less than another string.
A) String.Equals
B) String.Compare
C) String.IsGreater
D) String.String
Q2) Once you create a ListBox control, you add items you wish to display to its
A) Display property
B) Text property
C) Items property
D) Values property
Q3) ____________ works by automatically deselecting any other items in the same group when a single item is selected.
A) multiple selection
B) mutually inclusive selection
C) mutually exclusive selection
D) monographic selection
To view all questions and flashcards with answers, click on the resource link above.
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 third expression appearing in the header of a for loop is the ____________, which executes at the end of each iteration. It usually increments the loop's counter variable.
A) test expression
B) update expression
C) initialization expression
D) increment expression
Q2) The ____________ displays a standard Windows Open dialog box.
A) Open method
B) OpenFileDialog control
C) FindFileDialog control
D) SelectFile control
Q3) If you are writing a while loop that has only one statement in its body, you do not have enclose the statement inside curly braces.
A)True
B)False
Q4) A binary file may be opened and viewed in a text editor such as Notepad.
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 can pass int arguments into int parameters, but you cannot pass double or decimal arguments into int parameters.
A)True
B)False
Q2) In C#, you declare a reference parameter by writing the ____________ keyword before the parameter variable's data type.
A) const
B) ref
C) out
D) private
Q3) When you want a method to be able to change the value of a variable that is passed to it as an argument, the variable must be ____________.
A) passed by value
B) a value parameter
C) a variable parameter
D) passed by reference
Q4) A method definition has two parts: a header and a body.
A)True
B)False
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/21001
Sample Questions
Q1) Reference variables can only reference objects.
A)True
B)False
Q2) When calling a method and passing an array variable as an argument, the variable contains a ____________ to the array.
A) variable
B) value
C) reference
D) parameter
Q3) You can call the ____________ method to insert an item at a specific index position in a List object.
A) Put
B) Add
C) Insert
D) Place
Q4) Arrays are reference type objects.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 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) If you pass an uppercase letter to the char.ToLower method, the character it returns will be unchanged.
A)True
B)False
Q2) A variable of the char data type can hold up to 256 characters at a time.
A)True
B)False
Q3) Because enumerators represent integer values, they can be used in a loop to step through the element of an array.
A)True
B)False
Q4) In programming terms, ____________ are a series of words or other items of data contained in a string that are separated by spaces, commas, or other characters.
A) tokens
B) lexicons
C) delimiters
D) key values
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) Because classes are reference types, objects that are instances of a class are always passed by reference.
A)True
B)False
Q2) The compiler uses a method's ____________ to distinguish it from other methods of the same name.
A) binding
B) return type
C) name
D) signature
Q3) When you have multiple forms in a project, you should give each form a meaningful name that describes its purpose.
A)True
B)False
Q4) If two methods have the same names and parameter lists, you cannot overload them by just giving them different return types.
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/21004
Sample Questions
Q1) To allow a property to be overridden, you must include the virtual keyword in the property's declaration in the _________ class.
A) constructor
B) derived
C) base
D) virtual
Q2) Inheritance involves a base class and a relative class.
A)True
B)False
Q3) New fields, properties, and methods cannot be added to a derived class unless these elements already existed in the base class.
A)True
B)False
Q4) When one object is a specialized version of another object, there is a(n) ____________ between them.
A) 1:1 ratio
B) "is a" relationship
C) "has a" relationship
D) shared interest
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) To bind a ListBox control to a column, you must set two of the controls properties: DataSource and DisplayMember.
A)True
B)False
Q2) ____________ is automatically installed on your system when you install Visual Studio.
A) Oracle
B) DB2
C) MySQL
D) Microsoft SQL Server Express Edition
Q3) If an application needs to store only a small amount of data, sequential and binary files are efficient and easy to use.
A)True
B)False
Q4) Rather than retrieving or manipulating the data directly, applications send instructions to the DBMS, and the DBMS carries out those instructions and sends the results back to the application.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 13