

Introduction to Programming with C# Study Guide Questions
Course Introduction
Introduction to Programming with C# provides students with a comprehensive foundation in computer programming using the C# language. The course covers essential programming concepts such as variables, data types, control structures, methods, and object-oriented principles. Students will learn to design, code, test, and debug simple programs, developing problem-solving skills along the way. Through hands-on exercises and projects, the course emphasizes logical thinking and best practices in software development, preparing students for further coursework in computer science and software engineering.
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) The cost of computing power and communications bandwidth has been
A) about the same each year.
B) going up.
C) going down.
D) undetermined.
Answer: C
Q3) One of W3C's primary goals was to make the web universally accessible to everyone regardless of disabilities,language or culture.
A)True
B)False
Answer: True
To view all questions and flashcards with answers, click on the resource link above.
Page 3

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) This menu contains commands for opening projects,closing projects,printing project data,etc.
A) View menu
B) Edit menu
C) Tools menu
D) File menu
Answer: D
Q2) If the Solution Explorer is not shown,select __________.
A) View > Solution Explorer
B) File > Solution Explorer
C) Edit > Solution Explorer
D) Tools > Solution Explorer
Answer: A
Q3) Dragging and dropping predefined building blocks into place is part of visual programming in C#.
A)True
B)False
Answer: True
To view all questions and flashcards with answers, click on the resource link above.
Page 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) The fractional part in integer division is stored in a variable declared automat ically at run-time.
A)True
B)False
Answer: False
Q2) Statements in C# end with:
A) :
B) ;
C) #
D) \()\) Answer: B
Q3) Namespaces group various C# features into related categories.
A)True
B)False Answer: True
Q4) The "\t" escape sequence moves the screen cursor to the top of the screen.
A)True
B)False Answer: False
To view all questions and flashcards with answers, click on the resource link above. Page 5
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) Consider the code: Public void SetName(string accountName)
{ Name = accountName;// store the account name }
Which of the following statements is false
A) The first line of each method declaration is the method header.
B) The method's return type (which appears to the left of the method's name) specifies the type of data the method returns to its caller after performing its task.
C) The return type void indicates that when SetName completes its task, it does not return any information to its calling method.
D) A method requires one or more parameters that represent the data it needs to perform its task.
Q2) C# is case sensitive,so Name and name are distinct identifiers. A)True B)False
Q3) 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) In an activity diagram,the merge symbol has the same shape as what other symbol
A) decision symbol
B) action symbol
C) transition arrows
D) initial state
Q2) Which of the following statements about the conditional operator ( :)is false
A) The conditional operator is a ternary operator, meaning that it takes three operands.
B) The first operand is a bool expression.
C) The second operand is the result value if the condition evaluates to false.
D) The second operand is the result value if the condition evaluates to true.
Q3) The first operand of the ternary operator is the condition.
A)True
B)False
Q4) The cast operator is formed by enclosing a type name in braces. A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.

7

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) It's possible to specify that a constant is of type decimal by appending the letter m to the constant.
A)True
B)False
Q2) What is the Windows key sequence for typing the end-of-file indicator in Command
Prompt window
A) < Alt > z
B) < Ctrl > z
C) < Windows >z
D) < Shift >z
Q3) The do while repetition statement tests the condition the body of the loop executes. A) before B) while C) after D) None of the above.
Q4) A case that consists of multiple lines must be enclosed in braces.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 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) Identifiers declared within a class have
A) block scope
B) class scope
C) local scope
D) None of the above.
Q2) Which keyword can you use to immediately give control back to a method's caller
A) continue
B) break
C) return
D) next
Q3) Values returned by the Random class method Next are pseudo-random numbers.
A)True
B)False
Q4) Main is declared static so the execution environment can invoke Main without creating an instance of the class.
A)True
B)False
Q5) The return type of a method's return value is specified in the method call.
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) The keyword _______ overrides an existing method with the same signature.
A)replace
B) override
Q2) [C#6] Initializing an auto-implemented property in its declaration is a C# 6 feature known as auto-property initializers.Which of the following is the general syntax for a read-write auto-implemented property with an initializer
A)Type PropertyName {get,set;} = initializer;
B)Type PropertyName {get | set} = initializer;
C)Type PropertyName {get;set} = initializer;
D)Type PropertyName {get;set;} = initializer;
Q3) Changes made to an entire array that has been passed to a method will not affect the original values of the array.
A)True
B)False
Q4) What kinds of arrays can variable-length argument lists work with A) one-dimensional arrays
B) multi-dimensional arrays
C) All of the above
D) None of the above
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) LINQ is used to query collections in the same way it's used to query arrays.
A)True
B)False
Q2) A List< T > is similar to an array,but can also _________.
A) dynamically resize
B) add items anywhere in the List< T >
C) contain objects of any one type
D) Both a and b
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) 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
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) An object's this reference refers to:
A) the object itself
B) what the programmer assigned to this
C) the entry point of the program
D) None of the above.
Q2) Which of the following statements is false
A) Extension methods add functionality to a type by modifying the type's source code.
B) LINQ capabilities are implemented as extension methods.
C) Preceding an object parameter that's the first parameter in the method header with the this keyword indicates that the method extends an existing type. The compiler uses this information to add code into the compiled program that enables extension methods to work with existing types.
D) The type of an extension method's first parameter specifies the type that you're extending.
Q3) Member access modifiers are used to limit how much memory is available for class members.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.

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) To avoid duplicating code (and possibly errors),use ________,rather than
A) inheritance, the "copy-and-paste" approach.
B) the "copy-and-past" approach, inheritance.
C) a class that explicitly extends object, a class that does not extend object.
D) a class that does not extend object, a class that explicitly extends object.
Q2) A base class is often designed by factoring out commonalities among a set of classes.
A)True
B)False
Q3) A derived class cannot access the members of its base class.
A) private
B) static
C) protected
D) None of the above.
Q4) Every object of a base class is an object of that class's derived classes.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
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) Polymorphism involves:
A) the same message sent to a variety of objects, which each interpret their own way
B) a specific message sent to each specific object
C) different messages sent to one object
D) None of the above.
Q2) Polymorphism allows you to command a wide variety of objects even if you do not know the objects' types.
A)True
B)False
Q3) A class that implements an interface but does not declare all of the interface's methods must be declared:
A) public
B) interface
C) abstract
D) final
Q4) Polymorphism helps promote software extensibility.
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) Which of the following statements is false
A) Prior to C# 6, you could catch an exception based only on its type.
B) C# 6's exception filters enable you to catch an exception based on a catch's exception type and a condition that's specified with a when clause.
C) You also can specify an exception filter for a general catch clause that does not provide an exception type.
D) If an exception filter's condition is false, the exception will not be caught and the original exception's stack-trace information will be deleted.
Q2) A NullReferenceException is thrown when there's an attempt to use a reference that points to nothing.
A)True
B)False
Q3) In many cases,handling an exception allows a program to automatically restart execution of the program from the beginning.
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) Pressing Enter to make a Button become depressed is not a key event;it's set in the control's properties.
A)True
B)False
Q2) Delegates act as:
A) ways of sorting events
B) a go-between for objects raising events and the methods that handle the events
C) masks for methods that handle events
D) a way to call many methods at once
Q3) When adding a ToolTip component from the Toolbox,it appears on the arbitrary location on the Form.
A)True
B)False
Q4) In order to use modifier keys you should:
A) use the ModifierKey event.
B) use the KeyData property.
C) use the ModifierKeyHandler.
D) modifier keys have to be dealt with manually.
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) Forms can also inherit visually:
A) size
B) GUI components
C) color and font styles
D) All of the above
Q2) All controls contain the method OnPaint which is used to change the display on a control.
A)True
B)False
Q3) What does the DateTimePicker allow for
A)time selection
B)date selection
C)a and b
D)None of the above
Q4) The MaxDropDownItems property
A) sets the maximum number of items the list can hold
B) creates a scrollbar on the list after it exceeds the set max
C) creates a max to how many items the user can add to the list
D) can be set from 1 to 1000
To view all questions and flashcards with answers, click on the resource link above. Page 17

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) The Length property returns the length of a string.
A)True
B)False
Q2) Method LastIndexOf is used to find the last occurrence of given text in a string.
A)True
B)False
Q3) If a Replace method is passed ('M','m',0,3)it will:
A) replace any letter 'M' with 'm' in the first 3 characters
B) replace any letter 'M' with 'm' in the first 4 characters
C) replace the first letter 'M' with 'm' in the first 3 characters
D) replace the first letter 'M' with 'm' in the first 4 characters
Q4) Another way to concatenate a string is to use the ampersand (&).
A)True
B)False
Q5) When using the Replace method,the first character passed in is the letter to be replaced and the second is what it will be replaced by.
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) The name of the file to open is specified as the first argument to the FileStream constructor.
A)True
B)False
Q2) 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
Q3) .NET provides class _______ for manipulating files.
A) Folder
B) FileUtil
C) File
D) FileManip
Q4) An OpenFileDialog allows a user to select a file to open.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 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) How much faster is the insertion sort with a 15-element array than with a 60-element array
A) 60 times
B) 4 times
C) 15 times
D) 16 times
Q2) 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
Q3) 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
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) Unboxing can be either implicit or explicit.
A)True
B)False
Q2) Like linked lists,stacks,and queues,trees are also linear data structures.
A)True
B)False
Q3) C# programs must explicitly release dynamically allocated memory.
A)True
B)False
Q4) If no memory is available,new throws an OutOfMemoryException.
A)True
B)False
Q5) The insert and remove operations for a queue are known as dequeue and enqueue,respectively.
A)True
B)False
Q6) In a circular linked list,each node is connected to every other node.
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) It's not possible to apply multiple constraints to a type parameter.
A)True
B)False
Q2) The type constraints determine the operations that can be performed on the type parameters.
A)True
B)False
Q3) __________ enable you to specify,with a single class declaration,a set of related classes.
A) Overloaded classes
B) Overriden classes
C) Generic classes
D) Generics
Q4) All generic method declarations have a type parameter section delimited by
A) curly brackets ({ and })
B) angle brackets (< and >)
C) square brackets ([ and ] )
D) parenthesis
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) One should use the collections from the ________ namespace to help specify the exact type that will be stored in a collection.
A) System.Collections
B) System.Collections.Generics
C) System.Collections.Specialized
D) None of the above
Q2) Which of the following is not a property of LinkedListNode
A) Value
B) Reference
C) Previous
D) Next
Q3) C# 6's using static directive ________.
A) converts each of a class's methods to static.
B) converts the class to static.
C) allows access to a class's static members without fully qualifying their names.
D) None of the above.
Q4) Storing everything as objects in a collection will provide a performance boost.
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) It's possible to select only a subset of a relational database table's columns.
A)True
B)False
Q2) A relational database model is a way of organizing data and considering relationships based on the physical structure of the data.
A)True
B)False
Q3) There is a ____________ relationship between a primary key and its corresponding foreign key.
A) one-to-one
B) foreign
C) one-to-many
D) structural
Q4) The extension method ________ is used to filter the results of a LINQ query.
A)Filter
B)Equals
C)Where
D)None of the above
To view all questions and flashcards with answers, click on the resource link above.
Page 24

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) Visual C# apps can have multiple threads of execution,where each thread has its own ________ stack,allowing it to execute concurrently with other threads while sharing with them application-wide resources such as memory and processors.This capability is called multithreading.
A) method-call
B) attribute
C) memory
D) application
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) Task property ________ returns the value returned by a Task.
A) Result
B) Value
C) TaskReturn
D) TaskValue
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) XDocument objects contain other nested XDocuments.
A)True
B)False
Q2) The proper way to make start and end tags is:
A) < name > < /name >
B) < name > < \name >
C) < \name > < name >
D) < /name > < name >
Q3) The schema specifies the type of data that elements and attributes may contain.
A)True
B)False
Q4) The XDocument contstructor sets the given XElement as the root element in the new XML document.
A)True
B)False
Q5) The asterisk (*)after an element means that:
A) there are many occurrences of that item.
B) there could be any number of occurrences of that item.
C) that item could appear but at most once.
D) All of the above

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

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) The app's primary code-behind class has filename _______.
A) Application.xaml
B) Application.xaml.cs
C) Window1.xaml
D) Window1.xaml.cs
Q2) Use the ____________ method to programmatically close an app.
A) Application.Shutdown
B) Application.Exit
C) Application.Current.Exit
D) Application.Current.Shutdown
Q3) A MouseEventArgs object's GetPosition event always returns a position relative to the top left of the WPF window.
A)True
B)False
Q4) 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
To view all questions and flashcards with answers, click on the resource link above.