Introduction To Programming MCQ PDF
Introduction To Programming MCQ PDF
MCQ PDF
https://quizplus.com/study-set/492
15 Chapters
1124 Verified Questions
Introduction to Programming
MCQ PDF
Cou
Introduction to Programming is a foundational course designed to teach students the
basic concepts and skills required to write computer programs. Through the use of a
variables, data types, control structures (such as loops and conditional statements),
thinking, debugging, and the development of efficient and readable code. By the end of
the course, students will be able to design, implement, and test simple programs,
providing them with a strong starting point for further studies in computer science and
software development.
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) What object-oriented feature enables you to define subclasses that share some of
the characteristics of other classes?
A) encapsulation
B) polymorphism
C) abstraction
D) inheritance
Answer: D
Q2) The System namespace contains classes that define commonly used types or
classes.
A)True
B)False
Answer: True
Q3) When you use the ____________ approach to solving a problem,you break the
problem into subtasks.
Answer: divide and conquer
Sample Questions
Q1) One convention used for naming identifiers is called Pascal case. This convention
requires that ____.
A) the first letter be lowercase with the first letter of each subsequent word capitalized
B) all letters appear in uppercase characters
C) the first letter be uppercase with the first letter of each subsequent word capitalized
D) all letters appear in lowercase with words separated by an underscore
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) A method that does not return any value on exit,____.
A) must be called with the void keyword
B) cannot include the return keyword
C) must be defined to have a void return type
D) is not allowed in C#
Answer: C
Q2) The access modifier in the heading above is the keyword ____.
A) public
B) static
C) void
D) Main( )
Answer: A
Q3) Ceiling( ),Pow( ),and Floor( )are all static members of the Console class.
A)True
B)False
Answer: False
Q4) One option to holding the screen at the end of a program is to invoke Console.Read(
).Another option is to call ____________.It obtains the next character or function key
from the user.
Answer: ReadKey( )
To view all questions and flashcards with Page 5 click on the resource link above.
answers,
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) A class is normally associated with a(n)____,which often describes a
person,place,or thing and is normally a noun.
A) method member
B) behavior
C) data member
D) entity
Q3) When you define a class,you can use ____ to display all public members of the
class (once an object is instantiated).
A) constructors
B) intellisense
C) instance methods
D) class diagrams
To view all questions and flashcards with Page 6 click on the resource link above.
answers,
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) When you compare characters stored in char memory locations using relational
operators,____.
A) they are compared lexicographically
B) you receive an error message
C) they are always considered equal
D) you get inconsistent results
Q4) C# does not allow a fall through and requires the ____________ statement for
any case that has an executable statement.
Q5) What is stored in result when a,b and c are equal to 200?
A) 1
B) 2
C) 3
D) 4
Page 7
To view all questions and flashcards with answers, click on the resource link above.
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) Inside the for statement,when you place a semicolon after the parentheses without
anything to the left of it,it indicates that no statement or a(n)____________
statement is associated with the initialize portion.
Q3) With nested loops,the outermost loop is always totally completed before the
innermost loop is executed.
A)True
B)False
Q4) When one of the program statement included within the body of a loop is another
loop,a(n)____________ loop is created.
To view all questions and flashcards with answers, click on the resource link above.
Page 8
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) One of the special properties in the Array class is ____________.It returns an int
representing the total number of elements in an array.
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) Looking above,the value of price.Length is 10.
A)True
B)False
Q3) C# has two types of string literals.Quoted string literals appear between double
quotation marks (" ") and verbatim string literal,which start with the at symbol (@).
A)True
B)False
Q4) Using the Substring( )method with sValue,which of the following references the word
choices?
A) sValue.Substring(14, 7);
B) sValue.Substring(3);
C) sValue.Substring("choices");
D) sValue.Substring(15, 7);
Q5) The GetLength( )method can be called to return the number of rows or columns.
A)True
B)False
Sample Questions
Q1) Most of the classes used to develop Windows-based applications are organized in
which namespace?
A) System
B) System.Windows.Forms
C) System.Windows
D) System.Forms
Q3) The statement above adds the text "An Example" as the first entry on the form in the
bottom left-hand corner.
A)True
B)False
Q4) The ____________ options enable you to increase or decrease the amount of
blank space displayed between objects.
Sample Questions
Q1) You can assign a(n)____________ to controls,such as text boxes or menu
items,so that text is displayed when the cursor is rested on top of the component.
Q2) ____________ objects have an added feature over a ListBox objects that they
contain their own text box field as part of the object,but they allow only a single selection
to be made.
Q3) The delegate signature indicates what the method signatures must look like if they
are to be referenced by the delegate.
A)True
B)False
Q4) The ____ class in the System.Windows.Forms namespace enables you to add more
functionality to your application by offering additional user options,such as adding
layers of menus.
A) MenuStrip
B) MenuDialog
C) Main
D) DialogMenu
Q5) The ____________ method associated with the predefined dialog classes,like
FontDialog or ColorDialog causes the dialog box to be displayed.
To view all questions and flashcards with answers, click on the resource link above.
Page 12
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) All .NET languages support multiple inheritance.
A)True
B)False
Q2) Components that can be referenced from any number of applications are created
as class library files with a dynamic link library (DLL)extension.
A)True
B)False
Q3) ____________ is an object oriented feature that packages data attributes and
behaviors into a single unit,thus hiding implementation details.
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) A listing of all the methods that are in the execution chain when an exception is
thrown is called a(n)____.
A) exception list
B) method list
C) stack trace
D) chain of methods
Q2) During the compilation stage,the errors that are detected are those that violate the
logic of the application.
A)True
B)False
Q3) If an event that creates a problem happens frequently,it is best to write instructions
to take care of the problem with ____.
A) try...catch clauses
B) conditional expressions
C) exceptions
D) try...catch...finally blocks
Q4) A breakpoint is a point in output that separates correct from incorrect results.
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) If you do not specify the full path for the filename,Visual Studio uses the
____________ subdirectory of the current project.
Q2) Streams are also used in C# to read and write data to binary files.
A)True
B)False
Q3) The ____________ class provides static methods that aid in creating and moving
through folders and subdirectories.
Q4) When you close a file,no arguments are sent to the method;however,the Close(
)method must be called with a file object such as fileObjectInFile.Close( ).
A)True
B)False
Q5) The StreamReader class is most often used to retrieve single characters,one
character at a time,from a file.
A)True
B)False
Q6) FileInfo and DirectoryInfo classes expose only static data members.
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) Which class is automatically instantiated when a table from the Data Sources
window is dragged onto the form?
A) TabControl
B) BindingNavigator
C) BindingStrip
D) MenuStrip
Q2) When accessing a database,it is not necessary to close the connection.This is done
automatically for you.
A)True
B)False
Q3) The CommandBuilder object used for accessing data from database tables can be
used for datasets that map to one or more database tables.
A)True
B)False
Q4) The DataGridView is a customizable control that can be bound to a data source.
A)True
B)False
Q5) Typically when you are programming for database access,you use
a(n)____________.
Sample Questions
Q1) When you set the Web Forms control's property using the Properties window in Visual
Studio,the settings are stored in the code behind file-the file ending with the .aspx.cs
extension.
A)True
B)False
Q2) Dynamic Web pages normally involve some processing in addition to rendering the
formatting of HTML tags.
A)True
B)False
Q3) By default only a few Web Forms server control events trigger a postback to the
server. Common user interface events such as mouse moves and key presses are not
automatically posted to the server.
A)True
B)False