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

Application Development With C# Test Questions

The document outlines a course on application development using C# within the .NET framework, covering fundamental programming principles and practical skills for creating applications. It includes sample test questions and resources for each chapter, focusing on topics such as data types, methods, classes, and error handling. The course aims to equip students with the knowledge necessary for robust software design and development.

Uploaded by

z1wns9wbu3
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)
16 views17 pages

Application Development With C# Test Questions

The document outlines a course on application development using C# within the .NET framework, covering fundamental programming principles and practical skills for creating applications. It includes sample test questions and resources for each chapter, focusing on topics such as data types, methods, classes, and error handling. The course aims to equip students with the knowledge necessary for robust software design and development.

Uploaded by

z1wns9wbu3
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

Application Development with

C# Test Questions

https://quizplus.com/study-set/492
15 Chapters
1124 Verified Questions
Application Development with C#
Test Questions
Course Introduction
This course provides an in-depth introduction to application development using the C#

programming language within the .NET framework. Students will learn the fundamental

principles of object-oriented programming, data types, control structures, and error

handling as they apply to C#. The course covers key topics such as designing user

interfaces with Windows Forms, working with files and databases, and integrating

external components and libraries. Practical assignments and projects emphasize best

practices in software design, testing, and debugging, equipping students with the skills

necessary to create robust, scalable, and maintainable applications in a modern

development environment.

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) Which character is called the escape character in C#?
A) #
B) Esc
C) \
D) '
Answer: C

Q2) Comments are considered instructions to the computer.


A)True
B)False
Answer: False

Q3) ___________ marks the end of a block comment.


Answer: */

Q4) In a C# program,namespace is used to ____.


A) display information on the monitor
B) identify where the program begins
C) add a reference to the most common classes in .NET
D) group functionally related types under a single name
Answer: D

Q5) An object is a(n)________ of the class.


Answer: instance
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) Hexadecimal uses the symbols 1,2,3,4,5,6,7 8,9,A,B,C,D,E,F ,G.
A)True
B)False
Answer: False

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) ____________ is the universal character-encoding schema that provides a


unique number for every character in many different languages.
Answer: Unicode

Q4) The ____________ data type was added to the language to eliminate the
problems of loss of precision in mathematical operations that occurred in previous
languages.
Answer: decimal

Q5) A megabyte is approximately a(n)____________ bytes.


Answer: million
Page 4
To view all questions and flashcards with answers, click on the resource link above.
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 standard convention used by C# programmers is to use Pascal case style for
class,data member identifiers,and method identifiers.
A)True
B)False
Answer: False

Q2) Methods are the members of a class that perform an action,and through writing
methods you describe the behavior of data.
A)True
B)False
Answer: True

Q3) Avoid writing long methods.Consider refactoring when the method exceeds
____________ lines of code
Answer: 25

Q4) The first line of a method is called the ____ of the method.
A) signature
B) definition
C) heading
D) declaration
Answer: C

To view all questions and flashcards with answers, click on the resource link above.
Page 5
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) Since the data members of the class are defined as private,their public property
counterpart must be used to assign new values to the data members.
A)True
B)False

Q2) Which of the following is true regarding methods of a class?


A) You must use the keyword static.
B) They are called instance methods.
C) To call methods of the class in the class, you must prefix the method name with the
class name.
D) No return type is used when you define a class method.

Q3) When you define the class,you describe its ____ in terms of data and its
behaviors,or methods,in terms of what kinds of things it can do.
A) attributes
B) fields
C) characteristics
D) all of the above

Q4) As with overloaded methods,____________ must differ for constructors.

Q5) Fields or data members are also called ____________.

Q6) ____________ access modifier is always associated with constructors.


Page 6
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) A company issues $5,000.00 bonuses at the end of the year to all employees who
earn less than $100,000.Salary and bonus are both defined as double data types.Which
of the following selection statements would assign the correct amount to bonus?
A) if (salary < $100,000)
Bonus == $5000;
B) if (salary < 100000)
Bonus = 5000;
C) if (salary <= 100000)
Bonus = 5000;
D) if (salary < 100000);
Bonus = $5000;

Q2) Looking at the example above,when phoneDigit has a value of 'Q',what value is
stored in num?
A) 1
B) 0
C) Q
D) not enough information given

Q3) You cannot use the ____________ statement to test for a range of values.

Q4) The switch statement also goes by the name ____________.

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) Given the code snippet above,how many times will the loop body be executed?
A) 4
B) 5
C) 6
D) 10

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


A)True
B)False

Q3) Iteration is a technique used where a method calls itself repeatedly until it arrives at
the solution.
A)True
B)False

Q4) You often need to do a "prime the read" for counter controlled loops which means
that you would input a value before going into the body of the loop.
A)True
B)False

Q5) An option other than looping that can be used to repeat program statement is
_____________.With this technique a method calls itself repeatedly until it arrives at
the solution.

To view all questions and flashcards with Page 8 click on the resource link above.
answers,
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) When a method uses the params modifier,it indicates that the number of arguments
to the method may vary.
A)True
B)False

Q2) If an array named num is dimensioned to hold 10 values,what happens if you write
num[100] = 50;?
A) A compilation error will be generated
B) A runtime error will be generated
C) 50 will be stored at the 100th indexed location
D) 50 will be stored at the last legal location

Q3) Arrays are ____________ variables.The array identifier memory location does not
actually contain the values,but instead stores an address indicating the location of the
first element in the array.

Q4) Which of the following would copy all of the elements from anotherArray to anArray?
A) Array.Copy(anotherArray, 0, anArray, 0, 10);
B) Array.Copy(anotherArray, anArray)
C) anArray = anotherArray
D) all of the above

Q5) All data values placed in an array must be of the same ____________.

To view all questions and flashcards with Page 9 click on the resource link above.
answers,
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) In C#,a two-dimensional array is usually visualized as a table divided into columns
and rows where data is stored in contiguous memory locations by column.
A)True
B)False

Q2) Normally you will want to use two integral values to reference individual elements in
a two-dimensional array.If you use just one integral value,you get all of the values for
that row.
A)True
B)False

Q3) Using the code shown above,what is added to total during the first iteration?
A) 0
B) 88
C) 86, 66, 76, 92 and 95
D) unknown, because val is not initialized

Q4) The ArrayList class can be used to create a listlike structure that can dynamically
increase or decrease in length.
A)True
B)False

Q5) The property ____________ returns the number of dimensions of the array.

To view all questions and flashcards withPage 10 click on the resource link above.
answers,
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) The field of research that concentrates on the design and implementation of
interactive computing systems is called ____.
A) Human Computer Interaction (HCI)
B) Graphical User Interface (GUI)
C) System Interaction (SI)
D) System Computer Interaction (SCI)

Q2) A derived class ____ methods of another class.


A) inherits
B) overrides
C) extends
D) declares

Q3) With Windows applications,you write methods called processors to indicate what
should be done when a mouse is clicked on a button or the press of a key occurs.
A)True
B)False

Q4) With Windows applications,both the files,Form1.cs and Form1.Designer.cs,only include


part of the definition for the class in their file.Thus,both include the keyword
____________ in their class heading definition.

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

Page 11
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) To have the ListBox or ComboBox Items arranged in alphabetical order ____.
A) the values must be originally type in the desired order.
B) use a drag and drop approach move the items into their correct order.
C) set the Sorted property to true.
D) set the Ordered property to ascending or descending.

Q2) The Form object also has a BackgroundImage property that can be set to display a
picture on the background.Select the form and then use the Properties window to
browse to a location that contains the file.
A)True
B)False

Q3) Multiple selections cannot be made from a ListBox control object.


A)True
B)False

Q4) To set the background color for the ListBox control,use the Back property.
A)True
B)False

Q5) TabControl objects,which are placed on top of button objects,enable multiple tabs
to appear on a form.
A)True
B)False
Page 12
To view all questions and flashcards with answers, click on the resource link above.
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) ILDASM,which must be run from the command line,is a tool used to view an assembly.
A)True
B)False

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


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

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

Q4) Encapsulation enables multiple implementations of the same behaviors so that the
appropriate implementation can be executed based on the situation.
A)True
B)False

Q5) You have experienced the use of polymorphism in programs through the use of the
Main( )method.
A)True
B)False
Page 13

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) Custom exceptions must derive from the ____________ class.

Q2) Exceptions are unexpected conditions that happen frequently.


A)True
B)False

Q3) When code is included in all three blocks for the try...catch...finally construct,____.
A) the finally block is never executed
B) only one of the three blocks gets executed
C) the try block is attempted first
D) all catch clauses are executed

Q4) When the CLR handles the exception by halting the application ____.
A) the exception is thrown back to the calling method
B) the Main( ) method is placed in an infinite loop
C) the computer locks up
D) an unhandled exception is reported

Q5) Selecting ____________ when you are in Debug mode,causes the program to
execute from the halted line until it reaches the next breakpoint,if there is one.

Q6) Writing the catch clause without an argument list is the same as writing
____________.

To view all questions and flashcards withPage


answers,
14 click on the resource link above.
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) The files created using the ____________ class are readable by the computer
but,unlike the files created by the StreamWriter class,you cannot simply open and read
the contents of the file using Notepad.A program is needed to interpret the file contents.

Q2) To invoke File's Copy( )method to make a copy of "source.txt",naming the new file
"target.txt",you would write: File.Copy("source.txt","target.txt");because Copy is a static
member of the File class.
A)True
B)False

Q3) The FileDialog class has a property called ____,which is used by both the
OpenFileDialog and SaveFileDialog classes to set or get the name of the file using a
dialog box.
A) Text
B) Name
C) FileName
D) ID

Q4) The StreamReader's Peek( )method returns the next available character but does
not consume it.
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) Data is stored in tabular format for a relational database.Each row in the table
represents a(n)____.
A) table
B) field
C) key
D) record

Q2) The WSQL Designer in Visual Studio provides a visual representation of the objects
contained in the dataset.It enables you to set relationships between objects and add
additional queries to your application.
A)True
B)False

Q3) Connection strings are vendor specific.


A)True
B)False

Q4) When accessing a database,it is not necessary to close the connection.This is done
automatically for you.
A)True
B)False

Q5) Typically when you are programming for database access,you use
a(n)____________.
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) What is one of the major differences between an ASP .NET application that you build
and a Windows application?
A) You can drag and drop controls onto the Windows form.
B) All of the control classes are organized under a common namespace for Windows
applications.
C) Windows applications are event driven applications.
D) Two separate files are created for the user interface for Web applications.

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

Q3) To develop an ASP.NET application using Microsoft Internet Information Services


(IIS),you must also have administrative debugging privileges on the computer used for
development.
A)True
B)False

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


the Software Development Kit.

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

You might also like