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

Introduction To Programming MCQ PDF

The document is an MCQ PDF for an Introduction to Programming course, covering foundational programming concepts using languages like Python or Java. It includes 15 chapters with 1124 verified questions and flashcards to aid learning. The course aims to equip students with skills in algorithms, data types, control structures, and problem-solving techniques, preparing them for further studies in computer science.

Uploaded by

1ln7rxmakv
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)
29 views17 pages

Introduction To Programming MCQ PDF

The document is an MCQ PDF for an Introduction to Programming course, covering foundational programming concepts using languages like Python or Java. It includes 15 chapters with 1124 verified questions and flashcards to aid learning. The course aims to equip students with skills in algorithms, data types, control structures, and problem-solving techniques, preparing them for further studies in computer science.

Uploaded by

1ln7rxmakv
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

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

programming language such as Python or Java, students learn about algorithms,

variables, data types, control structures (such as loops and conditional statements),

functions, and basic problem-solving techniques. The course emphasizes logical

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

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

Q4) Programmers commonly verify that their design is correct by doing


a(n)_____________.
Answer: desk check

Q5) The most important and frequently used __________ is System.


Answer: namespace
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) 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

Q2) The value 3.42e-4 is equivalent to _____.


A) 3420000
B) .000342
C) -3.420000
D) -.000342
Answer: B

Q3) The ____________ data type is a whole number,between a certain range of


values,and contains no decimal point.
Answer: int

Q4) When you add the keyword ____________ to a declaration,it becomes a


constant.
Answer: const

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

Q2) What will be displayed from the above line?


A) Value = 12,346
B) Value = 12346
C) Value = 12,345
D) Value = 12,346.0

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

Q4) The keyword new is used as an operator to call constructor methods.


A)True
B)False

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

Q2) By properly ____________ the else clauses with their corresponding if


clauses,you encounter fewer logic errors that necessitate debugging.

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

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

Q6) Conditional expressions produce a Boolean result.


A)True
B)False

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.

Q2) int inner; for (int outer = 0;outer < 3;outer++)


{
For (inner = 1;inner < 2;inner++)
Console.WriteLine("Outer: {0}\tInner: {1}",outer,inner);
}
The nested for statement above displays how many lines of output?
A) 2
B) 3
C) 5
D) 6

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.

Q2) anotherArray.Length returns ____.


A) 9
B) 10
C) 11
D) 20

Q3) for (int i = 0;i < anotherArray.Length;i++) total += i;


Using the above declaration along with the for loop,what is stored in total after the
program statements are executed?
A) 10
B) 2
C) 48
D) 45

Q4) Array identifiers are normally defined using a plural noun.


A)True
B)False

Q5) Use the ____________ keyword to instantiate an object of an array.

Q6) The first element of an array is always referenced by index ____________.

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

Q2) With C#,you are limited to 10 dimensions for multi-dimensional arrays.


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

To view all questions and flashcards withPage


answers,
10 click on the resource link above.
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) 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

Q2) In a Windows application,Application.Run(winForm);____.


A) appears as the first line of code in the application
B) causes all the controls on the form to become interactive
C) places the application in a process loop so that it receives messages from the
operating system
D) calls on an event handler method to run a method to handle an event

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.

Q5) When a button is clicked by a user,its ____________ is automatically called up.

To view all questions and flashcards with Page


answers,
11 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) 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.

Q4) ____________ enables algorithms to be written where a number of


details,including the data
type can be specified-later.

Q5) The distinguishing characteristic of an abstract method is ____.


A) no implementation details are included
B) they cannot be included in abstract classes
C) no parameters are found in the heading for the method
D) methods may not include a return type

Q6) To keep subclasses from overriding Page


a method,add
13 the keyword ____________ to
the method's heading.

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

To view all questions and flashcards withPage


answers,
16 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) 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

Q4) To work with the calendar control programmatically,an object of the


____________ class is can be used to assign dates to the calendar's SelectedDate
property.

Q5) A(n)____________ that simulates a Windows Phone device is included as part of


the Software Development Kit.

To view all questions and flashcards withPage


answers,
17 click on the resource link above.

You might also like