Skip to main content

Software Engineering Principles Test Questions - 1353 Verified Questions

Page 1


Software Engineering Principles

Test Questions

Course Introduction

Software Engineering Principles provides a foundational understanding of the key concepts, practices, and methodologies involved in the development and maintenance of software systems. This course covers software development life cycles, requirements analysis, system design, testing strategies, version control, and project management. Emphasis is placed on software quality assurance, documentation, and teamwork within the context of real-world software projects. Students will learn to apply structured, object-oriented, and agile approaches to system development, fostering skills in both technical and collaborative problem-solving essential for successful software engineering.

Recommended Textbook

Visual C# How to Program 6th Edition by Paul

Available Study Resources on Quizplus

25 Chapters

1353 Verified Questions

1353 Flashcards

Source URL: https://quizplus.com/study-set/2449 Page 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) Which of the following statements is false

A)The impressive functions performed by computers involve only the simplest manipulations of 1s and 2s.

B)ASCII is a popular subset of Unicode.

C)Fields are composed of characters or bytes.

D)On some operating systems,a file is viewed simply as a sequence of bytes.

Answer: A

Q2) The CPU is the heart of the computer.It tells the computer when input is received and when output should be displayed.It also helps in the storage of data to memory.

A)True

B)False

Answer: True

Q3) The order of simplicity to a human of the three basic types of languages is: (easiest to hardest)

A) high-level, assembly, machine

B) assembly, machine, high-level

C) machine, high-level, assembly

D) machine, assembly, high-level

Answer: A

Page 3

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

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 purpose of the Visual Studio Community is to

A) create a program.

B) run a program.

C) debug a program.

D) All of the above.

Answer: D

Q2) Commands for managing the IDE and for developing,maintaining and executing programs are contained in the menus,which are located on the menu bar.

A)True

B)False

Answer: True

Q3) By default,the Visual Studio Community2015 IDE assigns this name to a new Windows Forms project:

A) NewProject1

B) WindowsFormsApplication1

C) NewProject

D) MyProject

Answer: B

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

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) What will the variable x have at end of the following code

Int x = 10;

X = 20;

X = 30;

X = 10;

A) 10

B) 20

C) 30

D) The sum of the values

E) The code will produce an error

Answer: A

Q2) The fractional part in integer division is stored in a variable declared automat ically at run-time.

A)True

B)False

Answer: False

Q3) "\" is known as an escape sequence.

A)True

B)False

Answer: False

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) Consider the code: MyAccount.Name = theName; Which assigns the string theName to myAccounts's Name property.Which of the following is false regarding when property Name is invoked by the expression myAccount.Name on the left of an assignment

A) The app transfers program execution to Name's set accessor.

B) Property Name's set accessor performs its task-that is, it stores in the myAccount object's name instance variable the string value that was assigned to property Name.

C) When Name's set accessor completes execution, program control returns to where the Name property was accessed, then execution continues at the next statement.

D) All of the above are true.

Q2) You should think of a C# class's attributes as instance variables.

A)True

B)False

Q3) The benefits of data integrity are automatic when instance variables are made private.

A)True

B)False

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 statement is true

A) A while statement cannot be nested inside another while statement.

B) An if statement cannot be nested inside another if statement.

C) A while statement cannot be nested inside an if statement.

D) None of the above.

Q2) Which of the following is not a benefit of "goto-free programs"

A) easier to debug and modify

B) shorter

C) clearer

D) more likely to be bug free

Q3) During the 1960s,it became clear that the indiscriminate use of transfers of control was the root of much difficulty experienced by software development groups.

A)True

B)False

Q4) Which primitive type can hold the largest value

A) int

B) long

C) float

D) double

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) A variable used as a counter should be initialized when it's declared.

A)True

B)False

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

A)True

B)False

Q3) The while statement is sufficient to perform any type of repetition.

A)True

B)False

Q4) Counting loops should be controlled with values.

A) double

B) int

C) char

D) None of the above.

Q5) A case with no statements is called an empty case,and requires only the break statement.

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) If a change is made to an underlying value in an enumeration,you must change the pro gram in every place that the old value was used. A)True

B)False

Q2) Values produced by random-number generating methods are truly random.There is no way to predict the next result. A)True B)False

Q3) Recursion takes a complex problem and splits it up among many methods. A)True B)False

Q4) Value types normally represent single pieces of data. A)True B)False

Q5) When a return statement executes,control proceeds immediately to the first statement after the method that issues the return. 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) By convention,the first set of brackets of a two-dimensional array identifies an element's column and the second identifies the row.

A)True

B)False

Q2) The number in square brackets after an array name is the of an item.

A) value

B) position

C) size

D) None of the above.

Q3) The parameter in the Main header allows for ________

A) the use of strings

B) command-line arguments

C) input and output capacity

D) All of the above

Q4) An array must be declared and allocated in the same statement.

A)True

B)False

Q5) Tables are often represented with rectangular arrays.

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) A let clause is used to create _______.

A) a method within a LINQ query

B) a subquery

C) a new range variable

D) None of the above

Q2) A List< T > can automatically resize itself to accommodate additional elements.

A)True

B)False

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

A)True

B)False

Q4) The range variable is implicitly defined in the _____ clause and used to produce results in the ______ clause

A) where, put

B) from, put

C) from, select

D) where, select

E) in, foreach

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) Which of the following statements is true

A) Methods and instance variables can be public, protected or private.

B) Information hiding is achieved by restricting access to class members via keyword public.

C) The public members of a class are not directly accessible to the client of a class.

D) None of the above is true.

Q2) Which of the following statements is true

Constructors:

A) initialize instance variables

B) when overloaded, can have identical argument lists C) when overloaded, are selected by number and types of parameters

D) a and c

Q3) this is often used to distinguish between a local variable and class variable that share an identical name.

A)True

B)False

Q4) Composition is a form of software reuse.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 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 base class's constructors are inherited into its derived classes.

A)True

B)False

Q2) When a derived class constructor calls its base class constructor,what happens if the base class's constructor does not assign a value to an instance variable

A) a syntax error occurs

B) a compile-time error occurs

C) a run-time error occurs

D) the program compiles and runs correctly because the instance variables are initialized to their default values

Q3) When a derived-class member overrides a base-class member,the base-class member can be accessed from the derived-class by using the keyword

A) base

B) top

C) super

D) None of the above

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) Polymorphism helps promote software extensibility.

A)True

B)False

Q2) All methods in an abstract class are inherently abstract.

A)True

B)False

Q3) Which statement best describes the relationship between base class and derived class types

A)A derived class reference cannot be assigned to a base class variable and a base class Reference cannot be assigned to a derived class variable.

B)A derived class reference can be assigned to a base class variable and a base class Reference can be assigned to a derived class variable.

C)A base class reference can be assigned to a derived class variable,but a derived class Reference cannot be assigned to a base class variable.

D)A derived class reference can be assigned to a base class variable,but a base class Reference cannot be assigned to a derived class variable.

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) Which of the following is not a property of Exception

A) HelpLink

B) Source

C) TargetSite

D) PrintError

Q2) In many cases,handling an exception allows a program to automatically restart execution of the program from the beginning.

A)True

B)False

Q3) The finally block is an ideal location for code that releases resources to prevent "resource leaks."

A)True

B)False

Q4) Variables local to a try block are usable in the corresponding catch and finally blocks.

A)True

B)False

Q5) The base class for all exception classes is System.Exception. 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) Delegates act as:

A) ways of sorting events

B) a go-between for objects raising events and the methods that handle the events

C) masks for methods that handle events

D) a way to call many methods at once

Q2) Visual Studio provides snap lines to help align controls.

A)True

B)False

Q3) An active control is one that:

A) can move about the screen.

B) is most commonly clicked by the user

C) has the focus

D) one that changes, whether it is color or another property, on an event.

Q4) GroupBoxes can display captions and do not include scrollbars,whereas Panels can include scrollbars and do no include a caption.

A)True

B)False

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

Page 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) All controls contain the method OnPaint which is used to change the display on a control.

A)True

B)False

Q2) A ComboBox is a TextBox with a drop-down list.

A)True

B)False

Q3) Windows within windows are called the sub-windows of the original windows.

A)True

B)False

Q4) LinkLabels are used to:

A) organize a group of labels

B) bring the user to a desired location

C) allow many labels to be modified during runtime all at once

D) All of the above

Q5) The ItemSize property is used to determine

A) how big controls on each TabPage can be

B) the actual size of each TabPage

C) the size of the tab for each TabPage

D) there is no ItemSize property

17

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

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) Properties Length and Capacity are used to return the number of characters in the StringBuilder and the total length allowed (at that time)of the StringBuilder,respectively.

A)True

B)False

Q2) Method Match will only return a single match with a character. A)True

B)False

Q3) The method IsWhiteSpace is used to determine whether a character is a space or not.

A)True

B)False

Q4) The proper way to convert a string to all lowercase is:

A) STRING = string; B) ToLower(string); C) string.ToLower(); D) string.ToLower(string);

Q5) A string is a composition of characters used as one object. 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) In a class that's marked with the [Serializable] attribute or that implements inter face ISerializable,not every instance variable of the class needs to be seri alizable.

A)True

B)False

Q3) What exception is thrown when an error occurs during serialization or deserialization

A) SerialException

B) DeserialException

C) SerializationException

D) DeserializationException

E) c and d, respectively

Q4) Class File can only create new files.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 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) Which of the following is a negative aspect of binary search

A) It requires significantly more memory than linear search

B) It is slower than linear search

C) The data must be in sorted order

D) None of the above

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

A)True

B)False

Q3) If the search key is not in an array of 10 elements,how many comparisons must the linear search algorithm make

A) 0

B) 10

C) 9

D) 5

Q4) The selection sort is a simple and efficient algorithm.

A)True

B)False

Q5) Insertion sort is a simple and inefficient algorithm.

A)True

B)False

Page 20

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) Like linked lists,stacks,and queues,trees are also linear data structures.

A)True

B)False

Q2) The two primary operations when manipulating a stack are push and pop.

A)True

B)False

Q3) Which statement is false

A) The shape of a binary search tree that corresponds to a set of data can vary, depending on the order in which the values are inserted into the tree.

B) A node can be inserted at any point in a binary search tree.

C) The process of creating a binary search tree actually sorts the data, and thus this process is called the binary tree sort.

D) The binary search tree facilitates duplicate elimination.

Q4) Every simple type struct inherits from class ________.

A)SimpleType

B) Number

C) ValueType

D) Struct

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

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

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

Q3) When the compiler encounters a method call,it attempts to locate a method declaration that has the same signature as the method call.

A)True

B)False

Q4) Type constraints restrict the type of the argument supplied to a particular type parameter.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 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) Which of the following statements about functional programming is false

A) You do not need to specify how to iterate through the elements or declare and use any mutable (that is, modifiable) variables. This is known as internal iteration, because the library code (behind the scenes) iterates through all the elements to perform the task.

B) A key aspect of functional programming is immutability-not modifying the data source being processed or any other program state, such as counter-control variables in loops. This eliminates common errors that are caused by modifying data incorrectly.

C) A filter operation combines the elements of a collection into a single new value, typically using a lambda that specifies how to combine the elements.

D) A map operation results in a new collection in which each element of the original collection is mapped to a new value (possibly of a different type). The new collection has the same number of elements as the collection that was mapped.

Q2) Enumerators must implement the IEnum interface.

A)True

B)False

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) When various databases are combined,this is known as data binding.

A)True

B)False

Q2) A relational database model is a way of organizing data and considering relationships based on the physical structure of the data.

A)True

B)False

Q3) It's possible to nest LINQ queries to produce hierarchical results.

A)True

B)False

Q4) The BindingNavigator allows the user _________.

A)to control which row of the table is currently in view

B) to add new and delete new rows

C) to save changes to the data in view

D) All of the above

Q5) A LINQ query may contain only one from clause.

A)True

B)False

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

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) The async ________ and await _________ greatly simplify asynchronous programming,reduce errors and enable your apps to take advantage of the processing power in today's multicore computers,smartphones and tablets.

A) modifier, operator

B) modifier, modifier

C) operator, operator

D) operator, modifier

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

Page 25

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

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) Flag xe "#PCDATA flag"#PCDATA specifies that an element can store xe "parsed character data"parsed character data.

A)True

B)False

Q2) Method ________ adds a node,or collection of nodes,as children of the given node.

A) Add

B) XAdd

C) AddChildren

D) XAddChildren

Q3) A DTD describes the contents of an XML document's elements.

A)True

B)False

Q4) An XML document can optionally reference a DTD or schema that defines the proper structure of the document.

A)True

B)False

Q5) The XML declaration identifies the document as an XML document.

A)True

B)False

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) It's a good practice to use ranges for the size and relative location for the position of WPF controls.

A)True

B)False

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

A) const

B) readonly

C) static

D) None of the above.

Q3) Flow-based layouts allow the GUI to display correctly when the user resizes the window.

A)True

B)False

Q4) Every XAML document must define the presentation XAML namespace and the standard XAML namespace.

A)True

B)False

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

Turn static files into dynamic content formats.

Create a flipbook