Introduction To Programming Review Questions
Introduction To Programming Review Questions
Review Questions
https://quizplus.com/study-set/492
15 Chapters
1124 Verified Questions
Introduction to Programming
Review Questions
Course Introduction
Introduction to Programming is designed to give students a foundational understanding
of the principles and practices involved in computer programming. The course covers
chosen programming language such as Python or Java. Students will learn how to write,
test, and debug simple programs, manipulate data types, control program flow with
loops and conditionals, and utilize functions for code modularity. By the end of the
course, students will have developed the skills necessary to approach computational
Recommended Textbook
C# Programming From Problem Analysis to Program Design 4th Edition by Barbara Doyle
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) ____ is normally part of the analysis phase of software development.
A) Making sure you understand the problem definition
B) Designing a prototype of the desired output
C) Coding the solution using an algorithm
D) Developing an algorithm to solve the problem
Answer: A
Q2) Problem specifications often include the desired output of the program in terms of
what is to be displayed,saved,or printed.
A)True
B)False
Answer: True
Page 3
To view all questions and flashcards with answers, click on the resource link above.
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) The value true could be stored in a variable of ____ type.
A) bool
B) decimal
C) char
D) floating point
Answer: A
Q2) 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
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) The following are examples of the access modifiers available in C#:
public,personal,protected.
A)True
B)False
Answer: False
Q2) The ____ of an identifier is the region of the program in which that identifier is
usable.
A) access
B) scope
C) modifier
D) declaration
Answer: B
Q3) Methods may be defined in any order and placed anywhere in the file,in or outside
of the class.
A)True
B)False
Answer: False
Q4) The ____________ type is always listed immediately preceding the name of the
method.
Answer: return
Page 5
To view all questions and flashcards with answers, click on the resource link above.
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) C# is an object-oriented language as such all the code that you write has to be
placed in a(n)____________.
Q3) With the object-oriented approach,objects send messages to other objects and
receive messages from objects.
A)True
B)False
Q5) When you define a class method,you define its characteristics or fields in terms of
the data.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
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) How can the compound conditional expression ((average > 79 && average <=
89))be written to eliminate the logical operator - without changing the logic?
A) remove the && and create a nested if statement
B) (average > 79 <= 89)
C) by replacing the && with ||
D) (79 > average <= 89)
Q3) Class diagrams list the data field members in the center rectangle and the methods
or behaviors in the bottom rectangle.
A)True
B)False
Q4) The ____________ method will convert a string value sent as an argument to its
equivalent numeric value,but it doesn't throw an exception when the conversion fails.
To view all questions and flashcards with answers, click on the resource link above.
Page 7
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) Scope refers to the region in the program in which you can use the variable.
A)True
B)False
Q2) The only posttest loop structure available with C# is the ____________ loop
structure.
Q3) Which of the following is NOT a keyword used to enable unconditional transfer of
control to a different program statement?
A) continue
B) break
C) goto
D) while
Q5) One of the major strengths of programming languages can be attributed to loops.
A)True
B)False
Sample Questions
Q1) Given an array declaration of int anArray[1000],which of the following would be a
valid heading for a method that sends the array in as a parameter?
A) void DisplayContents(int anArray)
B) void DisplayContents(int anArray[])
C) void DisplayContents(int [ ] anArray)
D) void DisplayContents(anArray[1000])
Q2) With parallel arrays,the relationship is established through using the same subscript
or index to refer to the elements in both arrays.
A)True
B)False
Q5) To create an array to hold the 5 numeric scores,you could write ____________.
Sample Questions
Q1) With a two dimensional array,when the number of columns in the rows differs,a
jagged array can be created.
A)True
B)False
Q2) Which of the following segments of code will display the first row of a two
dimensional array?
A) for (int i = 0; i < anArray.GetLength(1); i++)
Console.Write(anArray[0, i] + "\t");
B) for (int i = 0; i < anArray.GetLength(0); i++)
Console.Write(anArray[0, i] + "\t");
C) for (int i = 0; i < anArray.GetLength(0); i++)
Console.Write(anArray[i, 0] + "\t");
D) for (int i = 0; i < anArray.GetLength(1); i++)
Console.Write(anArray[i, 0] + "\t");
Q3) C# is a row major language,which means you specify the column index
____________ when you reference elements in a two-dimensional array.
Q4) If you override the GetHashCode( )method,you must also override the
____________ method to guarantee that two objects considered equal have the
same hash code.Both are inherited from the object class.
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) Using the ____________ feature in Visual Studio,controls can be more easily
aligned when they are initially added to the form.
Q4) The ____ method of the Control class sets the input focus.
A) Select( )
B) Focus( )
C) Set( )
D) Control( )
Q5) After a button click event is registered,the associated method is called ____.
A) using the keyword this.
B) using the object name for the form.
C) using the object name for the button.
D) automatically when the button is clicked.
Q6) Inheriting characteristics from base classes adds ____________ to your program
without the burden of your having to do additional coding
Page 11
To view all questions and flashcards with answers, click on the resource link above.
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) TabControl objects,which are placed on top of button objects,enable multiple tabs to
appear on a form.
A)True
B)False
Q3) SelectedItems and ____ properties can be used to retrieve items from a ListBox
object.
A) Selected
B) SelectedItem
C) Name
D) ListBoxItems
Q4) The ListBox object allows multiple options for retrieving selections.When multiple
selections are made,to retrieve all of the selections,the ____________ property
cannot be used since it retrieves a single selection,the first one selected.
To view all questions and flashcards withPage 12 click on the resource link above.
answers,
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) Today applications are normally designed to be single,self-contained,monolithic
programs.
A)True
B)False
Q4) Instead of running or executing a dynamic link library file (DLL),you use the
____________ option to create the .DLL component.
Q5) Multiple inheritance is not possible in C#;____ provides the closest work around to
this because a class can implement multiple ____.
A) interfaces
B) abstract classes
C) virtual classes
D) components
Page 13
Q6) Classes that inherit from a base class are called ____________ classes.
To view all questions and flashcards with answers, click on the resource link above.
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) With a generic catch,any type of exception is handled by the catch code.
A)True
B)False
Q2) All of the following are problem associated with using a generic catch and not
specifying an Exception class at all,EXCEPT ____.
A) you are never quite sure what
Caused the exception to be thrown
B) you cannot use members like Message to display information about the exception.
C) you cannot keep the program from terminating abnormally
D) you cannot display any error messages identifying the error type
Q3) You should desk check solutions to make sure the program is producing consistently
accurate results.
A)True
B)False
Q4) The catch clause associated with a try...catch can be omitted as long as you have a
finally block.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 14
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) Parent and Root are two key properties of which class?
A) FileInfo
B) StreamReader
C) DirectoryInfo
D) TextReader
Q2) None of the of the method named in the File and Directory classes are available as
instance methods (with the same name)in the FileInfo and DirectoryInfo classes since
they are available in File and Directory.
A)True
B)False
Q3) The gray section below the Form object where dialog objects are placed in Visual
Studio is called the ____.
A) dialog area
B) work tray
C) toolbox
D) component tray
Q4) In C#,when data is written to a file,it is stored in sorted order by a unique key.
A)True
B)False
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) Typically when you are programming for database access,you use
a(n)____________.
Q2) The Data Source Configuration Wizard simplifies connecting your application to a
data source by guiding you through the process,automatically generating the
connection
string,creating dataset and table adapter objects,and bringing the data into your
application.
A)True
B)False
Q3) Typing or inserting an actual SQL query or command as input (as opposed to a
requested value,such as a user login name),gaining access to the tables,and then
stealing or destroying data is an example of a(n)____.
A) SQL query error
B) SQL mistake
C) SQL security reference
D) SQL injection attack
Q4) ____________ provides a general purpose query facility that can be used with
not only relational data sources,but XML data,and any class of data that implemented
the IEnumerable<T> interface with IEnumerable supporting simple iteration over a
collection.
Page 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) You can use the Text property and/or the ErrorMessage property for validation
controls to
____________.
Q2) As you review the Solution Explorer window,you will find a .Designer.cs file similar to
the one you find with Windows applications.
A)True
B)False
Q3) What special attribute can be added to a control's tag in the XHTML file to make the
control visible or accessible to the Web server?
A) runat="server"
B) OnClick( )
C) <asp:visible>
D) <serverControl>
Q4) There are several models used for building ASP.NET Web sites.The ____________
is closer to the Windows Forms event-based programming model.It enables you to use
server controls,encapsulating HTML and CSS so dynamic applications can be created
and enables you to incorporate rich user interface controls,like data grids,into your
application.
To view all questions and flashcards with answers, click on the resource link above.
Page 17