Software Engineering Final Test Solutions - 1124 Verified Questions

Page 1


Software Engineering

Final Test Solutions

Course Introduction

Software Engineering is an in-depth course that explores the systematic methods for designing, developing, testing, and maintaining high-quality software systems. It covers fundamental principles such as software development life cycles, requirements engineering, software architecture, project management, quality assurance, and maintenance. Through practical assignments and team projects, students apply engineering approaches to solve complex software problems, utilize tools for version control, and explore ethical and professional issues in software development. By the end of the course, students gain essential skills needed for building reliable, scalable, and maintainable software in a collaborative setting.

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

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) A(n)____ version of software has not been fully tested and may still contain bugs or errors.

A) alpha

B) maintenance

C) bug

D) beta

Answer: D

Q2) One class predefined as part of .NET is ____.

A) System

B) Console

C) namespace

D) main

Answer: B

Q3) A method call is the same as a method declaration.

A)True

B)False

Answer: False

Q4) Programmers commonly verify that their design is correct by doing a(n)_____________.

Answer: desk check

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) Unicode includes representation of 2? or 256 unique characters.

A)True

B)False

Answer: False

Q2) The @ symbol in the following string,@ "C :\MyProjects",is called a(n)____________ character.

Answer: verbatim

Q3) Both static and constant are keywords in C#.

A)True

B)False

Answer: False

Q4) What is stored in ans as a result of the arithmetic expression,given the following declarations? int ans = 5,v1 = 2,v2 = 10,v3 = 18; Ans += v1 + 10 * (v2-- / 5)+ v3 / v2;

A) 27

B) 12

C) 29

D) none of the above

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) All programs consist of at least one ____________.

Answer: method

Q2) ____ is added to hold the screen when the program runs.

A) Hold( )

B) return

C) Read( )

D) Pause( )

Answer: C

Q3) The result of the call to Math.Pow( )in the above statement is to store ________ in answer:

A) 9

B) 3, 2

C) 6

D) an error message

Answer: A

Q4) Methods that use the static modifier are called class methods.

A)True

B)False

Answer: True

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) The ToString( )method is automatically invoked when the Write( )or WriteLine( )methods are called.

A)True

B)False

Q2) Accessors are special types of methods in C# used to instantiate an object of the class.

A)True

B)False

Q3) The return type for constructors is always the type of the class.

A)True

B)False

Q4) Use a type prefix,such as C for class name.For example,a student class should be named CStudent.

A)True

B)False

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

A)True

B)False

Q6) The body of the constructor methods consist primarily of ____________.

Q7) Accessor and mutators are ____________ methods

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

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) The switch statement also goes by the name ____________.

Q2) if (examScore > 89) grade = 'A'; The expression above is considered a(n)____.

A) iteration statement

B) two-way if statement

C) one-way if statement

D) simple sequence instruction

Q3) Conditional expressions produce a Boolean result.

A)True

B)False

Q4) Class diagrams list the data field members in the center rectangle and the methods or behaviors in the bottom rectangle.

A)True

B)False

Q5) The short-circuiting logical operators ____.

A) enable doing as little as is needed to produce the final result

B) produce a boolean result of true

C) are performed before any other statements are executed

D) cause the program to stop execution when the expression is evaluated

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

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) With the while loop,the body of the loop is ____.

A) always performed at least one time

B) performed as long as the conditional expression evaluates to true C) must produce a boolean result

D) must be enclosed in curly braces

Q2) How many times will be loop body be executed?

A) 0

B) 4

C) 5

D) 6

Q3) A sentinel value is a(n)____________.It is a value that should not be processed.

Q4) The do...while loop can be used to implement a counter-controlled,sentinel-controlled,or state-controlled loop.

A)True

B)False

Q5) The for statement is a compact method of writing the loops that can be written using while;it packages together the ____________,test,and update all on one line.

Q6) The only posttest loop structure available with C# is the ____________ loop structure.

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) The first element of an array is always referenced by index ____________.

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

Q3) Given an array declaration of int anArray[1000],which of the following would be a valid call to a DisplayContents( )method to send the full array into the method as an argument?

A) DisplayContents(int anArray[1000])

B) DisplayContents(anArray[1000])

C) DisplayContents(anArray[ ] )

D) DisplayContents(anArray)

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

A)True

B)False

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

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

Q7) Array identifiers are normally defined using a ____________.

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 C#,you are limited to 10 dimensions for multi-dimensional arrays.

A)True

B)False

Q2) For a declaration such as,int [ ,] anArray = new int [6,5],a total of 11 memory locations can be accessed using the identifier anArray.

A)True

B)False

Q3) Console.Write("anExample".IndexOf("a"));returns ____.

A) null

B) 4

C) 04

D) 0

Q4) If an array named num is dimensioned to hold 10 values in 5 rows and 2 columns,how would you store 50 in the first physical row and first physical column?

A) num[ 1, 1 ] = 50;

B) num[ 0 , 0 ] = 50;

C) num = 50 [ ] ;

D) num5 = 50;

Q5) Like traditional arrays,indexes of ArrayList objects are ____________.

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

Q2) ____________ objects are normally used to provide descriptive text for another control.

Q3) Inheriting characteristics from base classes adds ____________ to your program without the burden of your having to do additional coding

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.

Q5) Instead of calling on the operating system with a request,as console applications do,Windows applications receive messages from the operating system that an event has occurred.

A)True

B)False

Q6) All changes to the property values can be made in the ____________ window at design time.

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) With Windows Presentation Foundation (WPF)applications,____.

A) you see completely different controls available in the toolbox

B) drag and drop is not an option for placing controls on the form

C) less sophisticated multimedia options are available

D) a new XAML file, resembling an HTML file, is added to the solution

Q2) A ____ control offers the advantage of multiple selections and the opportunity to add or remove items dynamically at runtime.

A) Button

B) TextBox

C) ListBox

D) Label

Q3) Menus offer the advantage of requiring less real estate on the screen.

A)True

B)False

Q4) When the delegate wraps more than one method,it is called a(n)____ delegate.

A) multicast

B) multiple

C) multi-referenced

D) multi-event

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

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) ____ classes cannot be instantiated.____ classes cannot be inherited.

A) Abstract, Sealed

B) Sealed. Abstract

C) Abstract, Abstract

D) Sealed, Sealed

Q2) Use the ____ keyword to mark a class so that it can be used only as the base class from which other classes can be derived.

A) base

B) interface

C) virtual

D) abstract

Q3) Classes that inherit from a base class are called ____________ classes.

Q4) Generics enable you to identify where data will change in the code segment by putting a placeholder in the code for the type parameters.

A)True

B)False

Q5) All .NET languages support multiple inheritance.

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) When an exception is thrown,execution halts in the current method and the CLR attempts to locate an exception handler to handle the exception.

A)True

B)False

Q2) Custom exceptions classes must derive from the System.SystemException class.

A)True

B)False

Q3) If a try block is included,you must also specify a catch clause.

A)True

B)False

Q4) ____________ are unexpected conditions that happen infrequently.

Q5) ____ is/are used to facilitate managing exceptions in a consistent,efficient way.

A) if...else

B) try...catch...finally

C) Event handlers

D) Loops

Q6) A(n)____________ error is associated with a language rule violation.

Q7) C# adheres to a fairly sophisticated set of rules known as C# ____________.

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) In C#,when data is written to a file,it is stored in sorted order by a unique key.

A)True

B)False

Q2) The ____________ method of the StreamReader class enables you to retrieve one line of text from the file.

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) Which of the following is a static member of the Directory class?

A) Encrypted

B) AppendText( )

C) Exists( )

D) DirectoryPath( )

Q5) The ____________ class provides static methods that aid in creating and moving through folders and subdirectories.

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) For simple read-only access to the database,ADO.NET includes a(n)____________ class that can be used to read rows of data from a database.

Q2) The SELECT statement can also be used to retrieve results from multiple tables by joining them using a common field.

A)True

B)False

Q3) When the connection string is saved with the application,it is stored in the ____.

A) App.config file

B) data.file

C) solutions.settings file

D) connection.String file

Q4) The ADO namespace includes a number of classes that allow you to interact with databases.

A)True

B)False

Q5) You use the data adapter object to populate the data reader object.

A)True

B)False

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

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) The server loads an ASP.NET Web page every time it is requested by a client browser and then unloads it back to the browser after it processes the server-side code to render the HTML.

A)True

B)False

Q2) The code-behind file with ASP.NET is saved using which file extension?

A)xaml

B)xaml.cs

C) .aspx

D)aspx.cs

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

Q4) Master pages actually consist of two pieces: the master page itself and one or more ____________ pages.

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

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.