Web Application Development with C# Chapter Exam Questions - 1353 Verified Questions

Page 1


Web Application Development with C#

Chapter Exam Questions

Course Introduction

This course covers the design and development of dynamic, data-driven web applications using C#. Students will learn essential concepts such as the structure and behavior of web applications, server-side programming, handling HTTP requests and responses, and integrating databases for persistent storage. Emphasis will be placed on using frameworks like ASP.NET to build secure, responsive web interfaces. Through hands-on projects, learners will develop skills in managing user authentication, state management, web APIs, and deploying applications to cloud or on-premises servers, equipping them with practical expertise for building robust C# web solutions.

Recommended Textbook

Visual C# How to Program 6th Edition by Paul J. Deitel

Available Study Resources on Quizplus

25 Chapters

1353 Verified Questions

1353 Flashcards

Source URL: https://quizplus.com/study-set/2449

2

Chapter 1: Introduction to Computers, the Internet and Visual C#

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

Source URL: https://quizplus.com/quiz/48667

Sample Questions

Q1) Java enables you to write programs that will run on a great variety of computer systems and computer-control devices.

A)True

B)False

Answer: True

Q2) What was the most important capability of C++ that C did not provide

A) networking technology

B) data type technology

C) object-oriented technology

D) adding dynamic content to web pages.

Answer: C

Q3) To distinguish fields or records there has to be one that is different from every other,this is called the record key.

A)True

B)False

Answer: True

Q4) Developers can createNET applications only in Visual Basic.

A)True

B)False Answer: False

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

Chapter 2: Dive Into Visual Studio Community

Available Study Resources on Quizplus for this Chatper

25 Verified Questions

25 Flashcards

Source URL: https://quizplus.com/quiz/48668

Sample Questions

Q1) The View menu:

A) Contains commands for displaying IDE windows and toolbars

B) Contains commands for arranging a form's controls.

C) Contains commands for managing a project and its files.

D) Contains commands for compiling a program.

Answer: A

Q2) You cannot browse the web from within the Visual Studio Community environment.

A)True

B)False

Answer: False

Q3) The toolbox contains icons representing controls used to customize forms.

A)True

B)False

Answer: True

Q4) The Microsoft Developers Network (MSDN)online library provides:

A) tutorials

B) articles

C) downloads

D) All of the above.

Answer: D

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

Chapter 3: Introduction to C# Apps

Available Study Resources on Quizplus for this Chatper

41 Verified Questions

41 Flashcards

Source URL: https://quizplus.com/quiz/48669

Sample Questions

Q1) Using redundant parentheses in mathematical expressions may cause errors.

A)True

B)False

Answer: False

Q2) Concatenation is the process that enables a string and another string or a value of another data type to be combined to form a new string.

A)True

B)False

Answer: True

Q3) Where can't you see errors

A)The line where the error occurred

B)The Error List window

C)The Solution window

Answer: C

Q4) A single line comment in C# begins with:

A) */

B) #

C) //

D) \\

Answer: C

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

Chapter 4: Introduction to Classes,Objects,Methods and Strings

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

Source URL: https://quizplus.com/quiz/48670

Sample Questions

Q1) The code

myAccount.SetName(theName); calls myAccounts's SetName method,passing theName's value as SetName's argument. A)True

B)False

Q2) Attempting to use an uninitialized local variable is a runtime error.

A)True

B)False

Q3) Which of the following statements is false

A) Set and Get methods can validate attempts to modify private data and control how that data is presented to the caller, respectively.

B) If an instance variable were public, any client of the class could see the data and modify it, including setting it to an invalid value.

C) public data allows client-code programmers to write code that depends on the class's data format. If the class's owner changes that format, any client code dependent on it would "break" and would need to be adjusted to the new format, making it subject to break again.

D) All of the above are true.

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

Chapter 5: Control Statements: Part 1

Available Study Resources on Quizplus for this Chatper

94 Verified Questions

94 Flashcards

Source URL: https://quizplus.com/quiz/48671

Sample Questions

Q1) Which of the following is not included in an activity diagram for a control statement

A) transition arrows

B) attribute

C) action state

D) decision symbols

Q2) A can be used in repetition structures to indicate the end of data entry.

A) counter

B) boolean

C) sentinel value

D) None of the above.

Q3) A transfer of control occurs when:

A) a program changes from input to output, or vice versa

B) a logic error occurs in a program

C) a statement other than the next one in the program executes

D) None of the above.

Q4) Top-down,stepwise refinement helps lead to well-structured algorithms.

A)True

B)False

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

Chapter 6: Control Statements: Part 2

Available Study Resources on Quizplus for this Chatper

66 Verified Questions

66 Flashcards

Source URL: https://quizplus.com/quiz/48672

Sample Questions

Q1) The header for (int i = 0;i < = 10;++i)will cause i to be incremented:

A) before the body begins execution

B) after the body begins to execute, but before it finishes C) after the entire body executes

D) None of the above.

Q2) A variable used as a counter should be initialized when it's declared.

A)True

B)False

Q3) Only the statements for one case can be executed in any one execution of a switch statement.

A)True

B)False

Q4) The && operator has higher precedence than the || operator.

A)True

B)False

Q5) The C# operator ^ can be used for exponentiation.

A)True B)False

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

Chapter 7: Methods: a Deeper Look

Available Study Resources on Quizplus for this Chatper

95 Verified Questions

95 Flashcards

Source URL: https://quizplus.com/quiz/48673

Sample Questions

Q1) When a return statement executes,control proceeds immediately to the first statement after the method that issues the return.

A)True

B)False

Q2) A static variable represents class-wide information.

A)True

B)False

Q3) A particular seed value passed to the Random class's constructor causes the Random object to always produce the same series of random numbers.

A)True

B)False

Q4) Overloaded methods normally perform similar tasks,but on different types of data.

A)True

B)False

Q5) The values produced by Random are weighted so that some values will be generated with greater frequency than others.

A)True

B)False

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

Chapter 8: Arrays;Introduction to Exception Handling

Available Study Resources on Quizplus for this Chatper

90 Verified Questions

90 Flashcards

Source URL: https://quizplus.com/quiz/48674

Sample Questions

Q1) When an exception is caught,the program can access the exception object's built-in ________ property to get the error message and display it.

A) Error

B) Fault

C) Message

D) Note

Q2) Constant variables also are called.

A) write-only variables

B) finals

C) named constants

D) All of the above

Q3) When an app is executed from the Command Prompt,the execution environment passes the command-line arguments to the Main method as a string.

A)True

B)False

Q4) The first element in every array is the 0th element.

A)True

B)False

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

Page 10

Chapter 9: Introduction to Linq and Generic Collections

Available Study Resources on Quizplus for this Chatper

27 Verified Questions

27 Flashcards

Source URL: https://quizplus.com/quiz/48675

Sample Questions

Q1) What method returns the number of items in LINQ query result q

A) Length

B) Size

C) getUpperBound

D) Count

Q2) LINQ is used to query collections in the same way it's used to query arrays.

A)True

B)False

Q3) A LINQ query is executed when it's created.

A)True

B)False

Q4) TheNET collection classes provide flexible,efficient alternatives to arrays.

A)True

B)False

Q5) If multiple properties are listed in the select clause,the results will be of type SelectedList.

A)True B)False

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

Chapter 10: Classes and Objects: A Deeper Look

Available Study Resources on Quizplus for this Chatper

79 Verified Questions

79 Flashcards

Source URL: https://quizplus.com/quiz/48676

Sample Questions

Q1) Instance variables or methods declared with the modifier are accessible only in that class definition.

A) protected

B) static

C) private

D) None of the above.

Q2) Which statement is false

A) The actual data representation used within the class is of no concern to the class's clients.

B) Clients generally care about what the class does but not how the class does it.

C) Clients are usually involved in a class's implementation.

D) Hiding the implementation reduces the possibility that other program parts will become dependent on class-implementation details.

Q3) Attempting to modify a readonly instance variable after it's initialized is a fatal execution-time error.

A)True

B)False

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

12

Chapter 11: Object-Oriented Programming: Inheritance

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

Source URL: https://quizplus.com/quiz/48677

Sample Questions

Q1) A class that inherits from another class is referred to as the derived class.

A)True

B)False

Q2) How can a derived class call a base class constructor

A)implicitly

B) explicitly

C) a and b

D) the derived class cannot call the base class constructor

Q3) Inheritance is represented by a(n)________ relationship.

A) "uses"

B) "is-a"

C) "has-a"

D) None of the above.

Q4) When creating derived classes,you must use discretion in choosing the proper base class.Ideally,the base class will not contain excessive capabilities or information.

A)True

B)False

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

13

Chapter 12: Object-Oriented Programming: Polymorphism

Available Study Resources on Quizplus for this Chatper

62 Verified Questions

62 Flashcards

Source URL: https://quizplus.com/quiz/48678

Sample Questions

Q1) Abstract classes can provide data and services for objects.

A)True

B)False

Q2) The purpose of an interface is to:

A) provide similar objects with the same functionality, even though each will imple

B) provide different types of objects with the comparable functionality, even though each will imple

C) provide default implementations of methods and properties

D) None of the above.

Q3) Declaring a method sealed means:

A) it will prepare the object for garbage collection

B) it cannot be accessed from outside its class

C) it cannot be overloaded

D) it cannot be overridden

Q4) An interface reference may invoke only the methods that the interface declares. A)True

B)False

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

14

Chapter 13: Exception Handling: A Deeper Look

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

Source URL: https://quizplus.com/quiz/48679

Sample Questions

Q1) When an exception occurs it is said to have been:

A) caught

B) thrown

C) declared

D) handled

Q2) In C#,after an exception is handled,control resumes.This is known as the model of exception handling.

A) after the last catch block, termination

B) after the last catch block, resumption

C) just after the throw point, termination

D) just after the throw point, resumption

Q3) C# does not guarantee that a finally block (if one is present)will be executed if a try block is exited via a return,break or continue statement.

A)True

B)False

Q4) The StackTrace property keeps track of all the method calls that occur in a program,and that's how a program knows which method caused the error.

A)True

B)False

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

Chapter 14: GUI With Windows Forms: Part 1

Available Study Resources on Quizplus for this Chatper

64 Verified Questions

64 Flashcards

Source URL: https://quizplus.com/quiz/48680

Sample Questions

Q1) In order to create an event you must click on the event icon in the properties window.

A)True

B)False

Q2) An example of a component would be:

A) a button

B) a timer

C) a form

D) All of the above

Q3) What does the method InitializeComponent contain

a) code provided by the user which sets the properties of controls that were added

b) code provided by Visual Studio which sets the properties of controls that were added

c) a and b

d) None of the above

A)True

B)False

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

16

Chapter 15: GUI With Windows Forms: Part 2

Available Study Resources on Quizplus for this Chatper

73 Verified Questions

73 Flashcards

Source URL: https://quizplus.com/quiz/48681

Sample Questions

Q1) In a ComboBox only the programmer can enter items to the list.

A)True

B)False

Q2) The only controls available are the ones provided in C#.

A)True

B)False

Q3) The MultiLine property determines whether tabs can fill more than one row or not.

A)True

B)False

Q4) In order to have a tree,you must first make a root node that acts as the base for all the other nodes in the tree.

A)True

B)False

Q5) To add an item to a ListBox use the Add method of the Items property.

A)True

B)False

Q6) The View property can be changed to LargeIcon,SmallIcon,List or Details.

A)True

B)False

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

Chapter 16: Strings,Characters and Regular Expressions

Available Study Resources on Quizplus for this Chatper

92 Verified Questions

92 Flashcards

Source URL: https://quizplus.com/quiz/48682

Sample Questions

Q1) The IndexOf method returns the indices of all occurrences of the given string.

A)True

B)False

Q2) Replace is a method that allows the user to change any character in a StringBuilder to the given argument.

A)True

B)False

Q3) structs are like classes in that they encapsulate reference types.

A)True

B)False

Q4) The difference between {n} and {n,} is:

A) {n} matches at least n occurrences

B) {n} matches exactly n occurrences

C) {n,} matches exactly n occurrences

D) {n,} generates a syntax error

Q5) Another way to concatenate a string is to use the ampersand (&).

A)True

B)False

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

Page 18

Chapter 17: Files and Streams

Available Study Resources on Quizplus for this Chatper

39 Verified Questions

39 Flashcards

Source URL: https://quizplus.com/quiz/48683

Sample Questions

Q1) The name of the file to open is specified as the first argument to the FileStream constructor.

A)True

B)False

Q2) For variables of reference types,you must check the class declaration to ensure that the type is serializable.

A)True

B)False

Q3) Console.In,Console.Out and Console.Error are used to take data in,to display data and to show error messages,respectively.

A)True

B)False

Q4) To create a new file and return a stream that can be used to process the file,use the:

A) CreateFile method of class File

B) NewFile method of class File

C) Create method of class File

D) New method of class File

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

19

Chapter 18: Searching and Sorting

Available Study Resources on Quizplus for this Chatper

19 Verified Questions

19 Flashcards

Source URL: https://quizplus.com/quiz/48684

Sample Questions

Q1) O(1)means that the algorithm has a constant run time.

A)True

B)False

Q2) What is the efficiency of merge sort

A) O(log n)

B) O(n)

C) O(n log n)

D) O(n2)

Q3) What does the first pass of selection sort do

A) Splits the array into two approximately equal pieces.

B) Orders the first two elements of the array.

C) Partitions the array into two unequal pieces depending on whether each element in the array is greater or less that some pivot element.

D) Locates the smallest element in the array and swaps it into the zeroth position.

Q4) Linear search is faster and more complex than the binary search.

A)True

B)False

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

Chapter 19: Data Structures

Available Study Resources on Quizplus for this Chatper

28 Verified Questions

28 Flashcards

Source URL: https://quizplus.com/quiz/48685

Sample Questions

Q1) Boxing can be either implicit or explicit.

A)True

B)False

Q2) Like linked lists,stacks,and queues,trees are also linear data structures.

A)True

B)False

Q3) C# programs must explicitly release dynamically allocated memory.

A)True

B)False

Q4) Dynamic data structures grow and shrink at ______ time.

A)compilation

B) execution

C) a and b

D) None of the above

Q5) Unboxing can be either implicit or explicit.

A)True

B)False

Q6) An array is a dynamic data structure.

A)True

B)False

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

Chapter 20: Generics

Available Study Resources on Quizplus for this Chatper

22 Verified Questions

22 Flashcards

Source URL: https://quizplus.com/quiz/48686

Sample Questions

Q1) All generic method declarations have a type parameter section delimited by __________.

A) curly brackets ({ and })

B) angle brackets (< and >)

C) square brackets ([ and ] )

D) parenthesis

Q2) A type parameter _____________.

A) is an identifier that is used in place of an actual type name

B) can be used to declare the return type

C) acts as a placeholder for the type of an argument passed to the generic method

D) All of the above

Q3) IComparable objects cannot,by default,be used with generic code.

A)True

B)False

Q4) It's not possible to apply multiple constraints to a type parameter.

A)True

B)False

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

22

Chapter 21: Collections

Available Study Resources on Quizplus for this Chatper

35 Verified Questions

35 Flashcards

Source URL: https://quizplus.com/quiz/48687

Sample Questions

Q1) Classes which implement the IEnumerator interface must contain which of the following methods

A.MoveNext

B.Reset

C.Current

D.Reverse

A) A, B, C

B) B, C, D

C) A, B, D

D) A, C, D

Q2) All collection classes in theNET Framework implement some combination of collection interfaces.

A)True

B)False

Q3) Which of the following is not a property of LinkedListNode

A) Value

B) Reference

C) Previous

D) Next

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

Page 23

Chapter 22: Databases and LING

Available Study Resources on Quizplus for this Chatper

25 Verified Questions

25 Flashcards

Source URL: https://quizplus.com/quiz/48688

Sample Questions

Q1) Relational databases can be thought of as ________.

A) rows

B) columns

C) tables of rows and columns

D) three-dimensional arrays

Q2) Each foreign key can be created independently.

A)True

B)False

Q3) A relational database model allows relationships between data to be considered without concern for the ________.

A) meaning of the data

B) structure of the data

C) application of the data

D) All of the above

Q4) You can call a BindingSource's ________ method to move to the first row of the result.

A)First

B)MoveFirst

C)FirstRow

D)None of the above

Page 24

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

Chapter 23: Asynchronous Programming With Async and Await

Available Study Resources on Quizplus for this Chatper

37 Verified Questions

37 Flashcards

Source URL: https://quizplus.com/quiz/48689

Sample Questions

Q1) Task static method ________ enables you to wait for any one of several Tasks specified as arguments to complete-the method returns the Task that completes first.

A) FirstToComplete

B) AnyMethod

C) OneOfSeveral

D) WhenAny

Q2) Which of the following statements is false

A) ProgressBar property Minimum gets or sets a ProgressBar's minimum value.

B) ProgressBar property Maximum gets or sets a ProgressBar's maximum value.

C) ProgressBar property Value gets or sets a ProgressBar's current value. As this number increases, a ProgressBar fills with color.

D) None of the above is false.

Q3) Executing asynchronous methods in separate threads on a dual-core computer typically ________ executing the same tasks sequentially.

A) takes more time than B) takes about the same amount of time as C) takes less time than D) takes an unpredictable amount of time compared to

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

Chapter 24: XML

Available Study Resources on Quizplus for this Chatper

72 Verified Questions

72 Flashcards

Source URL: https://quizplus.com/quiz/48690

Sample Questions

Q1) All XML files must end in thexml extension

A)True

B)False

Q2) The transformation process,where formatted text-based documents are cre

Ated from XML documents,involves:

A) 0 trees

B) 1 tree; the source.

C) 2 trees; the source and the result tree.

D) 3 trees; the source, the result, and the temp tree.

Q3) The proper way to make start and end tags is:

A) < name > < /name >

B) < name > < \name >

C) < \name > < name >

D) < /name > < name >

Q4) Which of the following about the XML prolog is true

A)The XML prolog is the lines that precede the root element.

B) The XML declaration must appear before comments and any other markup.

C) The XML prolog is limited to a certain number of lines.

D) a and b.

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

Chapter 25: GUI With Windows Presentation Foundation

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

Source URL: https://quizplus.com/quiz/48691

Sample Questions

Q1) A WPF Grid control allows child elements to be positioned using explicit coordinates.

A)True

B)False

Q2) A routed command declared in the XAML changes a control's appearance when that control enters a certain state.

A)True

B)False

Q3) Keyword ________ is used for constants whose values cannot be determined at compile time.

A) const

B) readonly

C) static

D) None of the above.

Q4) WPF uses _________ graphics,which allows graphics to scale without losing quality.

A) bitmap

B) vector

C) raster-based

D) jpeg

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

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Web Application Development with C# Chapter Exam Questions - 1353 Verified Questions by Quizplus - Issuu