

Programming Fundamentals
Review Questions

Course Introduction
Programming Fundamentals introduces students to the basics of computer programming and problem-solving using a high-level programming language. The course covers essential concepts such as variables, data types, control structures (selection and iteration), functions, arrays, and basic algorithms. Through hands-on exercises and projects, students develop logical thinking and coding skills necessary for building simple applications and preparing for more advanced programming courses. No prior coding experience is required, making it an ideal starting point for those new to computer science.
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) Logical decisions are made by the CPU.
A)True
B)False
Answer: False
Q2) The order of simplicity to a human of the three basic types of languages is: (easiest to hardest)
A) high-level, assembly, machine
B) assembly, machine, high-level
C) machine, high-level, assembly
D) machine, assembly, high-level
Answer: A
Q3) Almost any __________ can be reasonably represented as an object.
A)verb
B)behavior
C)adjective
D)noun
Answer: D
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) The text in the form's title bar is determined by the form's Text property.
A)True
B)False
Answer: True
Q3) The Properties window
A)allows you to modify control's properties without writing any code.
B)displays a control's information.
C)has the same set of options for every control.
D)a and b
E)a and c
Answer: D
To view all questions and flashcards with answers, click on the resource link above.
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) It's good practice to fit as many statements as possible on a single line.
A)True
B)False
Answer: False
Q2) Apps that contain only text output are referred to as
A) text apps
B) console apps
C) simple apps
D) None of the above.
Answer: B
Q3) What does the following statement display Console.WriteLine(
$"{"Welcome to "}\n{"C# Programming!"}");
A) Welcome to C# Programming!
B) Welcome to C# Programming!
C) {"Welcome to "} {"C# Programming!"}
D) None of the above
Answer: A
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) Which of the following properly declares an auto-implemented Name property of type string
A) public string Name { get, set }
B) public string Name { get, set, }
C) public string Name { get; set; }
D) public string Name { get: set: }
Q2) Which of the following statements is false
A) Set and Get methods can validate attempts to modify private data and control how that data is presented to the caller, respectively.
B) If an instance variable were public, any client of the class could see the data and modify it, including setting it to an invalid value.
C) public data allows client-code programmers to write code that depends on the class's data format. If the class's owner changes that format, any client code dependent on it would "break" and would need to be adjusted to the new format, making it subject to break again.
D) All of the above are true.
Q3) Keywords set and value can be used only in set accessors.
A)True
B)False

Page 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) A decision symbol in an activity diagram takes the shape of a ________.
A) diamond
B) rectangle
C) circle
D) question mark
Q2) It is essential to have an understanding of a problem before writing a program to solve it.
A)True
B)False
Q3) Repetition in which the number of iterations is unknown before the loop begins executing is called ________.
A) indefinite repetition
B) controlled repetition
C) top-down repetition
D) None of the above.
Q4) Which primitive type can hold the largest value
A) int
B) long
C) float
D) double
To view all questions and flashcards with answers, click on the resource link above. Page 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) A control variable that's declared in a for statement header is not accessible outside of the body of the for statement.
A)True
B)False
Q2) A while statement automatically increments a variable that a programmer specifies.
A)True
B)False
Q3) A default case must be provided for every switch statement.
A)True
B)False
Q4) The initialization and increment expressions in a for statement can be comma-separated lists that enable you to use ________.
A) multiple initialization expressions
B) multiple increment expressions
C) multiple initialization expressions and/or multiple increment expressions
D) neither multiple initialization expressions nor multiple increment expressions
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) What does the Framework Class Library hold A)namespaces
B) classes
C) methods
D) All of the above.
Q2) An overloaded method is one that
A) has a different name than another method, but the same parameters.
B) has the same name as another method, but different parameters.
C) has the same name and parameters as a method defined in another class.
D) has the same name and parameters, but a different return type than another method.
Q3) Which directive allows you to use the Framework Class Library
A)import
B)using
C)load
D) namespace
Q4) Methods defined by the programmer may consist only of predefinedNET method calls.
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) Constant variables also are called.
A) write-only variables
B) finals
C) named constants
D) All of the above
Q2) Consider array items,which contains the values 0,2,4,6 and 8.If method changeArray is called with changeArray(items,items[2]),what values are stored in items after the method has finished executing
Public static void ChangeArray(int[] passedArray,int value)
{ PassedArray[value] = 12;
Value = 5; }
A) 0, 2, 5, 6, 12
B) 0, 2, 12, 6, 8
C) 0, 2, 4, 6, 5
D) 0, 2, 4, 6, 12
Q3) Arrays remain the same size once they're created.
A)True
B)False
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 allows you to select from a data source items that meet a set of conditions.
A)True
B)False
Q2) In a LINQ query,the where clause specifies .
A) the data source
B) where to put the data
C) the condition(s) for including the item
D) the Location property
E) the data type
Q3) 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
Q4) Visual C# requires you to write SQL to query data sources.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.

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) The use of references to objects of preexisting classes as members of new objects is called
A) inheritance
B) composition
C) polymorphism
D) None of the above.
Q2) A class cannot have references to objects of other classes as members.
A)True
B)False
Q3) Instance variables declared readonly do not or cannot:
A) use the principle of least privilege
B) be initialized
C) be modified once the object is constructed
D) cause syntax errors if used as a left-hand value
Q4) Every class inherits directly or indirectly from class _________.
A) Inheritor
B) Base
C) Super
D) object
To view all questions and flashcards with answers, click on the resource link above. Page 12
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) An object of one class cannot be an object of another class.
A)True
B)False
Q2) A derived class can effect state changes in base class private members only through public,protected,internal methods provided in the base class and inher ited into the derived class.
A)True
B)False
Q3) 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.
Q4) A method must be declared
__________ for it to be overridden by derived classes.
A) overrides
B) overridable
C) virtual
D) None of the above

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

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) A(n)________ is best used for providing services that bring together objects of otherwise unrelated classes.
A) abstract class
B) concrete class
C) interface
D) None of the above.
Q2) Which is used to specify that a class will be implementing an interface
A) using
B) :
C) implements
D) extends
Q3) The major drawback to polymorphically designed programs is that they do not take into account the future addition or deletion of classes.
A)True
B)False
Q4) An interface can not provide properties with get and set accessors.
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) In the catch block below,what is e ? catch (DivideByZeroException e) { Console.WriteLine(e); }
A) The type of the exception being caught
B) The name of catch block's exception parameter
C) A finally block
D) An exception handler
Q2) The Message property of an exception is what is displayed to the user should that exception be thrown.
A)True
B)False
Q3) Which of the following statements is true
A)The throw statement is used to throw an exception.
B)The throw statement is used to specify that a method will throw an exception.
C)The throw statement is used to access an exception parameter.
D)All of the above.
To view all questions and flashcards with answers, click on the resource link above. Page 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) Events occur,for example,when the user clicks the mouse or types on the keyboard and interacts with controls.
A)True
B)False
Q2) An active control is one that:
A) can move about the screen.
B) is most commonly clicked by the user
C) has the focus
D) one that changes, whether it is color or another property, on an event.
Q3) The major difference between a CheckBox and a RadioButton is that:
A) RadioButtons are generally grouped to allow choices
B) CheckBoxes usually represent options that allow more than one to be used
C) Only one RadioButton per group can be selected at once
D) b and c
Q4) KeyPress events cannot deal with modifier keys.
A)True
B)False
Q5) RadioButtons can be used interchangeably with CheckBoxes.
A)True
B)False

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

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) What does the MonthCalendar allow for
A)time selection
B)date selection
C)a and b
D)None of the above
Q2) In order to clear a ListBox's items,the syntax is:
A) ListBox.Items.Clear()
B) ListBox.Items.DeleteItem.All()
C) ListBox.Clear()
D) ListBox.Items.DeleteAll()
Q3) To add an item to a CheckedListBox use:
A) the Add method
B) the AddRange method
C) the String Collection Editor
D) All of the above
Q4) There are three selection modes for a ListBox;none,one,or multi.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.

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) Replace is a method that allows the user to change any character in a StringBuilder to the given argument.
A)True
B)False
Q2) There are many character methods,some of which are capable of determining whether a character is a letter,a digit,a symbol,or a punctuation.
A)True B)False
Q3) You can use classes Regex and Match to find patterns in a string.
A)True
B)False
Q4) Concatenating two strings merges the two strings into another string. A)True B)False
Q5) If a number is formatted with the D3 formatter,it means that:
A) the number has to have at least three digits even if they are zero
B) the number has a dollar sign and is at least three digits long C) creates each number in three dimensions
D) it is an error
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 standard output stream object enables a program to output data to the screen.
A)True
B)False
Q2) An OpenFileDialog allows a user to select a file to open.
A)True
B)False
Q3) Each resource should be released as soon as it's no longer needed.
A)True
B)False
Q4) In a class that's marked with the [Serializable] attribute or that implements inter face ISerializable,not every instance variable of the class needs to be seri alizable.
A)True
B)False
Q5) Class File can only create new files.
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) A linear search algorithm will always search each and every element.
A)True
B)False
Q2) The selection sort is a simple and efficient algorithm.
A)True
B)False
Q3) The merge sort algorithm sorts an array by splitting it into two equal-sized subarrays,sorting each subarray and merging them in one larger array.
A)True
B)False
Q4) Which of the following is a negative aspect of binary search
A) It requires significantly more memory than linear search
B) It is slower than linear search
C) The data must be in sorted order
D) None of the above
Q5) What is the efficiency of linear search
A) O(1).
B) O(log n).
C) O(n).
D) O(n2).
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) A doubly linked list can be traversed both forwards and backwards.
A)True
B)False
Q2) Which statement is false
A) The shape of a binary search tree that corresponds to a set of data can vary, depending on the order in which the values are inserted into the tree.
B) A node can be inserted at any point in a binary search tree.
C) The process of creating a binary search tree actually sorts the data, and thus this process is called the binary tree sort.
D) The binary search tree facilitates duplicate elimination.
Q3) C# programs must explicitly release dynamically allocated memory.
A)True
B)False
Q4) Typecasting anything that's not an object into an object is known as _________.
A) unboxing
B) converting
C) wrapping
D) boxing
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) __________ 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
Q2) 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
Q3) A generic method's body is declared differently than that of any other method.
A)True
B)False
Q4) A ________ provides a means for describing a class in a type-independent manner.
A) subclass
B) generic class
C) concrete class
D) parameterized class
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) Which of the following is not a collection class in C#
A) ArrayList
B) HashTable
C) SortedDictionary
D) BitArray
E) None of the above
Q2) All arrays implicitly inherit from abstract base class Collection.
A)True
B)False
Q3) Which of the following statements is false
A) A delegate variable can hold a reference to any method.
B) The real power of delegates is in passing method references as arguments to methods.
C) A method name can be passed directly to a delegate parameter, rather than first assigning it to a delegate variable.
D) A delegate type is declared by preceding a method header with keyword delegate (placed after any access specifiers, such as public or private) and following the method header with a semicolon.
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) A LINQ query may contain only one from clause.
A)True
B)False
Q2) DBExtensions method Load loads an entire database's data into a DbContext.
A)True
B)False
Q3) A primary key must be unique for each record in the relational database table.
A)True
B)False
Q4) A relational database model allows relationships between data to be considered without concern for the ________.
A) meaning of the data
B) structure of the data
C) application of the data
D) All of the above
Q5) SQL is an acronym for:
A) Smart Query Language
B) Simulated Query Language
C) Structured Query Language
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) A method is declared async to indicate to the compiler that the method will
A) wait for a callback
B) perform a synchronous activity
C) create multiple threads
D) await an asynchronous task
Q2) A Task promises to ________.
A) behave itself
B) run to completion
C) create multiple threads
D) return a result at some point in the future
Q3) Class Task is part ofNET's Task Parallel Library (TPL)for asynchronous programming.Task static method Run receives a ________ as an argument and executes a method in a separate thread.The method returns a Task< TResult > where TResult represents the type of value returned by the method being executed.
A) callback
B) Func< TResult > delegate
C) Task
D) thread
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) XML elements _________________.
A)cannot begin with "xml"
B) cannot begin with any combination of uppercase and lowercase of "xml"
C) can begin with "xml"
D) a and b
Q2) Method ________ adds a node,or collection of nodes,as children of the given node.
A) Add
B) XAdd
C) AddChildren
D) XAddChildren
Q3) When using a namespace,the prefix must always be included.
A)True
B)False
Q4) Using XML,authors can describe any type of data,including
A) music
B) mathematical formulas
C) software-configuration instructions
D) All of the above
To view all questions and flashcards with answers, click on the resource link above. Page 26

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) XAML is used to describe the ___________ of a WPF app.
A) classes
B) program logic
C) code-behind file
D) GUI
Q2) A content control can have text or several child elements.
A)True
B)False
Q3) A key benefit of WPF is that it provides a single platform to handle GUI,images,animation 2D and 3D graphics,audio and video.
A)True
B)False
Q4) Events which can travel up or down the container hierarchy are called ______.
A) expandable events
B) sourced events
C) bubble events
D) routed events
Q5) A CollectionViewSource provides multiple "views" of the same data. A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.