

Intermediate Programming Question
Bank
Course Introduction
Intermediate Programming builds on fundamental programming concepts to deepen students proficiency in software development. The course focuses on advanced programming constructs such as data structures (arrays, lists, stacks, queues, trees), algorithms, recursion, file I/O, and modular program design. Students will explore object-oriented programming principles, including encapsulation, inheritance, and polymorphism, and apply them to design and implement more complex software solutions. Emphasis is placed on code readability, debugging, testing, and effective use of development tools. Through hands-on projects, students will strengthen their ability to solve computational problems and prepare for more advanced coursework in computer science.
Recommended Textbook
C# Programming From Problem Analysis to Program Design 4th Edition by Barbara Doyle
Available Study Resources on Quizplus
15 Chapters
1124 Verified Questions
1124 Flashcards
Source URL: https://quizplus.com/study-set/492

Page 2

Chapter 1: Introduction to Computing and Programming
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9090
Sample Questions
Q1) A(n)____ is a collection of one or more program statements combined to perform some action.
A) class
B) object
C) method
D) field
Answer: C
Q2) Console is a ____ and WriteLine( )is a ____.
A) method, class
B) namespace, method
C) class, namespace
D) class, method
Answer: D
Q3) An IDE enables you to ____.
A) type your program statements into an editor
B) debug an application
C) compile an application
D) all of the above
Answer: D
To view all questions and flashcards with answers, click on the resource link above.
Page 3

Chapter 2: Data Types and Expressions
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9091
Sample Questions
Q1) Probably the most important rule for naming identifiers is ____.
A) do not use over 12 characters for the identifier
B) number the identifiers and begin each identifier with an numeric character representing its number
C) use a lowercase character for the first character of the identifier
D) be descriptive and select a meaningful name
Answer: D
Q2) For a mixed expression equation involving an integer and a double,the result is a(n)____.
A) error
B) double
C) int
D) float
Answer: B
Q3) A variable of type bool can store ____.
A) "true"
B) TRUE
C) true
D) all of the above
Answer: C
To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Methods and Behaviors
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9092
Sample Questions
Q1) Methods can be defined globally outside of a class in C#.
A)True
B)False
Answer: False
Q2) One way to ensure that you have one entry and one exit from a method is to include a single return statement as the last statement in the method.
A)True
B)False
Answer: True
Q3) One required entry for a method heading is the return type.
A)True
B)False
Answer: True
Q4) The term ____________ is often used to indicate where an identifier has meaning and can be used
Answer: visible
Q5) Call by ____________ is the default parameter type.
Answer: value
To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Creating Your Own Classes
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9093
Sample Questions
Q1) Constructors are used to ____________ a class.
Q2) The ToString( )method is automatically invoked when an object reference is made in the ____.
A) class constructor
B) Write( ) method
C) mutator method
D) object class
Q3) A class named River will have a constructor named River.
A)True
B)False
Q4) Which of the following is NOT a true statement relating to constructors?
A) To add full functionality to your classes, write multiple constructors
B) If you write one constructor, you lose the default one that is created automatically.
C) The default constructor must be the first one written for the class.
D) Constructors are used to provide values to the object's data members.
Q5) If you overwrite the ToString( )method,you should also override the other methods of the object class.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 6
Chapter 5: Making Decisions
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9094
Sample Questions
Q1) The not equal (!=),and equal (==)symbols are overloaded operators.
A)True
B)False
Q2) Conditional expressions produce a(n)____________ result.
Q3) With an if statement,when you place a semicolon on the line that has the conditional expression,you create a null (empty)statement body for the true portion of the if statement.
A)True
B)False
Q4) The conditional expression true || false produces false.
A)True
B)False
Q5) Forms of the if statement include one-way,two-way,____________,multiway,and compound.
Q6) By properly ____________ the else clauses with their corresponding if clauses,you encounter fewer logic errors that necessitate debugging.
Q7) No fall through is permitted in C# if the previous case label has code.
A)True
B)False

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

Chapter 6: Repeating Instructions
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9095
Sample Questions
Q1) The do...while statement is a posttest loop,which means that the conditional expression is tested before any of the statements in the body of the loop are performed.
A)True
B)False
Q2) int sum = 0; int number = 1; while (number < 100)
{ sum = sum + number; }
The program statements above produce an infinite loop.
A)True
B)False
Q3) An interpretation of the while statement is "while the condition is true,perform statement(s)".
A)True
B)False
Q4) The ___________ loop structure,which restricts access to read-only,is used to iterate or move through a collection,such as an array.
To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: Arrays
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9096
Sample Questions
Q1) Given an array declared to hold 100 values,the smallest index that can be used with the array is ____.
A) based on what index is used when the first value is placed in the array
B) 1
C) 0
D) undetermined
Q2) All arrays are objects of the base type ____ class.
A) Object
B) Base
C) Super
D) Array
Q3) One of the special properties in the Array class is ____________.It returns an int representing the total number of elements in an array.
Q4) The ____________ loop structure can be used to iterate through an array.However,it can be used for read-only access to the elements.
Q5) All data values placed in an array must be of the same ____________.
Q6) Elements in an array are sometimes referred to as ____________ variables.
Q7) When you do a compile-time initialization of array elements,values are separated by ____________.
Page 9
To view all questions and flashcards with answers, click on the resource link above.

Chapter 8: Advanced Collections
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9097
Sample Questions
Q1) The ____________ method is used with the ArrayList class to push items on the list.
Q2) Looking above,what does name[0,1] reference?
A) l
B) Ben
C) Alex
D) Al
Q3) There are several ways to do a compile-time initialization of two-dimensional arrays.All of the following are valid ways EXCEPT ____.
A) int [, ] anArray = {{100, 100, 100} {100, 100, 100}};
B) int [ , ] anArray = new int [ , ] {{100, 100, 100} {100, 100, 100}};
C) int [ , ] anArray = new int [2, 3 ] {{100, 100, 100} {100, 100, 100}};
D) int [ ] anArray = new int [10 ] {{100, 100, 100} {100, 100, 100}};
Q4) Using the Substring( )method with sValue,which of the following references the word choices?
A) sValue.Substring(14, 7);
B) sValue.Substring(3);
C) sValue.Substring("choices");
D) sValue.Substring(15, 7);
Q5) Like traditional arrays,indexes of ArrayList objects are ____________.
To view all questions and flashcards with answers, click on the resource link above. Page 10

Chapter 9: Introduction to Windows Programming
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9098
Sample Questions
Q1) The Form property used to set the title bar on the Windows form is ____.
A) Title
B) Caption
C) Text
D) Bar
Q2) Which property can be set to indicate whether text in the TextBox is read-only or not?
A) InputOnly
B) AcceptsText
C) ReadOnly
D) TextInputOnly
Q3) A large field of research in the field of computing is focused on ____________.The research concentrates on the design and implementation of interactive computing systems for human use.
Q4) Which TextBox property can be set to enable several lines of data to be entered by the user?
A) MultiLine
B) ScrollBars
C) MaxLength
D) Lines
To view all questions and flashcards with answers, click on the resource link above. Page 11

Chapter 10: Programming Based on Events
Available Study Resources on Quizplus for this Chatper
74 Verified Questions
74 Flashcards
Source URL: https://quizplus.com/quiz/9099
Sample Questions
Q1) The Form object also has a BackgroundImage property that can be set to display a picture on the background.Select the form and then use the Properties window to browse to a location that contains the file.
A)True
B)False
Q2) ListBox objects have an added feature in that they contain their own text box field as part of the object.
A)True
B)False
Q3) The ____ class in the System.Windows.Forms namespace enables you to add more functionality to your application by offering additional user options,such as adding layers of menus.
A) MenuStrip
B) MenuDialog
C) Main
D) DialogMenu
Q4) You can assign a(n)____________ to controls,such as text boxes or menu items,so that text is displayed when the cursor is rested on top of the component.
To view all questions and flashcards with answers, click on the resource link above. Page 12

Chapter 11: Advanced Object-Oriented Programming
Features
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9100
Sample Questions
Q1) To keep subclasses from overriding a method,add the keyword ____________ to the method's heading.
Q2) Through ____________ the CLR determines which method to call at run time based on which object calls the method.
Q3) The distinguishing characteristic of an abstract method is ____.
A) no implementation details are included
B) they cannot be included in abstract classes
C) no parameters are found in the heading for the method
D) methods may not include a return type
Q4) A stack represents a simple ____________ collection.
Q5) With C#,you have single inheritance,but a class can ____________ multiple interfaces.
Q6) Once a DLL is available,any application can add a reference to the DLL.The referenced file with the .dll extension becomes part of the application's private assembly.
A)True
B)False
Q7) If a class implements more than one ____________,they all appear on the class definition line separated by commas.
To view all questions and flashcards with answers, click on the resource link above. Page 13
Chapter 12: Debugging and Handling Exceptions
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9101
Sample Questions
Q1) Which of the following would not throw an exception?
A) attempting to write to a file that does not exist
B) storing a double value into an int
C) division by zero involving floating-point operands
D) calling a method with an invalid argument
Q2) Bugs are normally labeled as ____.
A) programmer mistakes
B) logic errors
C) handled exceptions
D) unhandled exceptions
Q3) Custom exceptions classes must derive from the System.SystemException class.
A)True
B)False
Q4) Syntax errors are normally associated with programs that run but produce incorrect results.
A)True
B)False
Q5) You cannot write a catch clause unless you include it within a try block.
A)True
B)False

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

Chapter 13: Working with Files
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9102
Sample Questions
Q1) If you do not specify the full path for the filename,Visual Studio uses the ____________ subdirectory of the current project.
Q2) The constructor for the StreamWriter can include additional arguments indicating whether the file should be appended to or overwritten if it already exists.
A)True
B)False
Q3) When you place an @ in front of a string,the string becomes a(n)____.
A) comment
B) verbatim string
C) numeric value
D) argument
Q4) When writing text files,if you add true to the constructor for the Append argument,____.
A) lines are added onto the end of the file
B) a backup is made of the old file
C) "file already exists" message is displayed if a file by the same name exists
D) new data is added onto the end of each line in the file
Q5) Archive is a(n)____________ value for the Attributes property of the File class.
To view all questions and flashcards with answers, click on the resource link above. Page 15

Chapter 14: Working with Databases
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9103
Sample Questions
Q1) In order to use the dataReader object to retrieve the lastName,which is located in the third field of a data record,you could write ____.
A) dataReader["lastName"]
B) dataReader[3]
C) lastName.dataReader
D) dataReader.get(lastName)
Q2) The CommandBuilder object used for accessing data from database tables can be used for datasets that map to one or more database tables.
A)True
B)False
Q3) Select * from memberTable retrieves all records from the memberTable table that do not have any blank fields.
A)True
B)False
Q4) DataAdapter classes are used to exchange data between a database source and a dataset object.
A)True
B)False
Q5) Typically when you are programming for database access,you use a(n)____________.
16
To view all questions and flashcards with answers, click on the resource link above.

Chapter 15: Web-Based Applications
Available Study Resources on Quizplus for this Chatper
75 Verified Questions
75 Flashcards
Source URL: https://quizplus.com/quiz/9104
Sample Questions
Q1) For retrieving data from a database,you can use a GridView object. However,by default,the GridView control displays data on a Web form in a read-only format.
A)True
B)False
Q2) Web sites are reopened differently from a Windows application.To reopen a Web application in Visual Studio,select the Web sites name under the TOOLS Options menu.
A)True
B)False
Q3) To work with the calendar control programmatically,an object of the ____________ class is can be used to assign dates to the calendar's SelectedDate property.
Q4) For ASP.NET applications,property settings are not stored in the Web Form Designer Generated Code region for Web applications. They are stored in the file containing the HTML tags.
A)True B)False
Q5) A(n)____________ that simulates a Windows Phone device is included as part of the Software Development Kit.
To view all questions and flashcards with answers, click on the resource link above. Page 17