0% found this document useful (0 votes)
25 views17 pages

Introduction To Programming Review Questions

The document provides an overview of an 'Introduction to Programming' course, which covers foundational programming principles, algorithmic thinking, and syntax of languages like Python or Java. It includes study resources such as verified questions and flashcards for various chapters, along with sample questions for practice. The recommended textbook for the course is 'C# Programming From Problem Analysis to Program Design 4th Edition' by Barbara Doyle.

Uploaded by

26a7sh3x9k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views17 pages

Introduction To Programming Review Questions

The document provides an overview of an 'Introduction to Programming' course, which covers foundational programming principles, algorithmic thinking, and syntax of languages like Python or Java. It includes study resources such as verified questions and flashcards for various chapters, along with sample questions for practice. The recommended textbook for the course is 'C# Programming From Problem Analysis to Program Design 4th Edition' by Barbara Doyle.

Uploaded by

26a7sh3x9k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Introduction to Programming

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

the basics of algorithmic thinking, problem-solving strategies, and the syntax of a

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

problems logically and to create basic software solutions.

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) ____ 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

Q3) When should test plans be developed?


A) During the analysis and design phases
B) After the solution has been designed
C) During the implementation phase
D) After the solution has been coded
Answer: A

Q4) A(n)___________ is a collection of one or more statements combined to perform


an action.
Answer: method

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

Q3) The number 3.45 is an example of a(n)____ type.


A) bool
B) int
C) floating point
D) char
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) 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)____________.

Q2) Data members should be defined with an access mode of ____________.

Q3) With the object-oriented approach,objects send messages to other objects and
receive messages from objects.
A)True
B)False

Q4) Accessors are also referred to as ____.


A) mutators
B) properties
C) getters
D) classes

Q5) When you define a class method,you define its characteristics or fields in terms of
the data.
A)True
B)False

Q6) A class is an instance of an object.


A)True
B)False
Page 6
Q7) ____________ access modifier is always associated with constructors.

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)

Q2) When you place an if statement within another if statement,____.


A) a syntax error is generated
B) curly braces are required
C) you create a switch statement
D) you create a nested if statement

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.

Q5) A conditional expression is also referred to as a(n)____________.

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

Q4) The ___________ loop structure,which restricts access to read-only,is used to


iterate or move through a collection,such as an array.

Q5) One of the major strengths of programming languages can be attributed to loops.
A)True
B)False

Q6) The conditional expression is sometimes called the loop condition.


A)True
B)False
Page 8
To view all questions and flashcards with answers, click on the resource link above.
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 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

Q3) When you do a compile-time initialization of array elements,values are separated


by ____________.

Q4) BinarySearch( )is ____.


A) a method in the Array class
B) an instance method
C) usable as long as you declare an array
D) must be used with integer arguments

Q5) To create an array to hold the 5 numeric scores,you could write ____________.

Q6) The Copy( )method,shown above,is a(n)____________ method.


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) 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.

Q2) 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.

Q3) To cause the cursor to be positioned in a specific TextBox,invoke the


____________ method on that control.

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

Q2) With a ListBox of numbers,the SelectedItem property returns ____.


A) the one selected in an int or double format.
B) an object representing the one selected.
C) a string representing the one selected.
D) the index of the one selected.

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.

Q5) The default event-handler method for CheckBox objects is ____________.

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

Q2) A stack represents a simple ____________ collection.

Q3) Abstract classes can include ____.


A) regular data field and method members
B) only virtual methods
C) only abstract methods
D) properties and virtual methods

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&lt;T&gt; 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) &lt;asp:visible&gt;
D) &lt;serverControl&gt;

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

You might also like