

Windows Programming with C#
Chapter Exam Questions
Course Introduction
This course introduces students to the fundamentals of developing Windows applications using the C# programming language within the .NET framework. Topics include the structure of graphical user interface (GUI) applications, event-driven programming, working with forms and controls, input validation, file I/O, and integrating with system resources. Students will gain hands-on experience designing intuitive user interfaces, managing application events, and utilizing libraries to create robust desktop applications. By the end of the course, learners will be equipped to build and debug Windows applications that adhere to best practices in software development.
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(n) ____________ is a set of instructions that a computer follows to perform a task.
A) algorithm
B) program
C) formula
D) method
Answer: B
Q2) Inside the solution folder, you can double-click the ____________ to open the project in Visual Studio.
A) solution file
B) system folder
C) project folder
D) source file
Answer: A
Q3) Each byte is divided into eight smaller storage locations known as ____________.
A) nibbles
B) pixels
C) bits
D) words
Answer: C
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) A line comment does not have to occupy an entire line, so a line comment can appear after an executable statement.
A)True
B)False
Answer: True
Q2) A ____________ is a small pop-up window, also known as a dialog box, that displays a message.
A) standard window
B) pop up
C) banner
D) message box
Answer: D
Q3) A Label control's Text property is initially set to the same value as the Label control's name.
A)True
B)False
Answer: True
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) In C#, all variables have a(n) ____________ method that you can call to convert the variable's value to a string.
A) ToString
B) Convert
C) Parse
D) Text
Answer: A
Q2) A numeric literal that is assumed to be an integer is called a(n) ____________.
A) real number
B) integer literal
C) natural literal
D) common value
Answer: B
Q3) Which one of the following statements initializes a variable with a decimal literal?
A) string displayPrice = "$14.99";
B) decimal budget = 450m;
C) int inventory = 150;
D) double volume = 30.25;
Answer: B
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) Which one of the following expressions determines whether the value of the length variable is greater than or equal to the value of the width variable?
A) length < width
B) width <= length
C) length > width
D) length >= width
Q2) A series of deeply nested if-else statements is usually easier to follow than the logic of an if-else-if statement.
A)True
B)False
Q3) A string can be converted to a decimal with the ____________ method.
A) decimal.ParseString
B) decimal.ToString
C) Try.Parse(decimal)
D) decimal.TryParse
Q4) A switch statement's test expression can be any data type.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.

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) If you specify a path in a string literal, be sure to prefix the string with the ____________ symbol, also known as the literal text character.
A) #
B) @
C) $
D) *
Q2) You can use the StreamReader class's ____________ to determine if the file's read position is at the end of the file.
A) EndOfFile property
B) StreamEnd method
C) EndOfStream property
D) EOF method
Q3) If the user clicks the Open button, the OpenFileDialog control's ShowDialog method returns the value ____________.
A) Result.True
B) DialogResult.OK
C) DialogResult.Open
D) Result.OpenFile
To view all questions and flashcards with answers, click on the resource link above.

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) The top-down design process is sometimes called stepwise engineering.
A)True
B)False
Q2) Every method must have a nonempty parameter list.
A)True
B)False
Q3) When using the debugger, which command lets you follow a method call into the statements in the method's source code?
A) step out
B) step over
C) step into
D) step trace
Q4) You can pass int arguments into int parameters, but you cannot pass double or decimal arguments into int parameters.
A)True
B)False
Q5) 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) The primary advantage of the binary search algorithm is simplicity, but its primary disadvantage, however, is inefficiency.
A)True
B)False
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) A(n) ____________ is a special value that links a variable to an object.
A) linker
B) reference
C) operator
D) delimiter
Q4) If you want to take out all items from a List object, call the ____________ method.
A) Clear
B) Reset
C) ClearAll
D) ReDim
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) A(n) ____________ is an object you can create that contains one or more variables known as fields.
A) object
B) structure
C) list
D) container
Q2) To convert a char variable to a string, call its ____________ method.
A) CompareTo
B) ToString
C) Equals
D) GetType
Q3) When you pass null as an argument to the Split method, the method tokenizes the string using the comma character as the delimiter.
A)True
B)False
Q4) You will find the ImageList control in the Components section of the Toolbox.
A)True
B)False
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) If you try to pass a property to a ref or an out parameter, an error occurs.
A)True
B)False
Q2) A ____________ allows the user to switch focus to another form while it is displayed.
A) modeless form
B) subsidiary form
C) modal form
D) minimized form
Q3) When you want to create a List object, you follow List with the name of a class inside angled brackets, and it specifies that the List can hold only objects of that class type.
A)True
B)False
Q4) When you add additional forms to a project, you add additional ____________, which are stored in their own source code files.
A) classes
B) objects
C) methods
D) events
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) In the real world you can find many objects that are specialized versions of more general objects.
A)True
B)False
Q2) A(n) ____________ is a property that appears in a base class, and must be overridden in a (non-abstract) derived class.
A) base property
B) abstract property
C) derived property
D) public property
Q3) You can think of a derived class as an extended version of some base class.
A)True
B)False
Q4) 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
To view all questions and flashcards with answers, click on the resource link above.

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 ____________ identifies a column from the table to display in a ListBox control.
A) ShowColumn property
B) column name
C) DisplayMember property
D) DataSource property
Q2) A ____________ is a user interface control that is connected to a data source.
A) table control
B) data-bound control
C) UI data-viewer
D) database module
Q3) In SQL, you use keywords to construct statements, which are also known as ____________.
A) queries
B) expressions
C) determinants
D) solutions
Q4) Data stored in databases is organized into one or more tables.
A)True
B)False

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