Skip to main content

Introduction to Software Engineering Review Questions - 620 Verified Questions

Page 1


Introduction to Software Engineering Review

Questions

Course Introduction

Introduction to Software Engineering offers an overview of the fundamental principles, methodologies, and tools used in the development of high-quality software systems. The course covers the entire software development lifecycle, including requirements analysis, design, implementation, testing, and maintenance. Students will explore best practices in project management, version control, and software documentation, as well as modern development paradigms such as agile methodologies. Emphasis is placed on teamwork, problem-solving skills, and ethical issues in software engineering, preparing students for collaborative work in real-world software projects.

Recommended Textbook

Starting Out with Java Early Objects 5th Edition by Tony Gaddis

Available Study Resources on Quizplus

16 Chapters

620 Verified Questions

620 Flashcards

Source URL: https://quizplus.com/study-set/1061 Page 2

Chapter 1: Introduction to Computers and Java

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Each byte is assigned a unique number known as an address.

A)True

B)False

Answer: True

Q2) Logical errors are mistakes that cause the program to produce erroneous results. A)True

B)False

Answer: True

Q3) Suppose you are at an operating system command line, and you are going to use the following command to compile a program: javac MyClass.java

Before entering the command, you must

A) close all other Windows on your computer system.

B) make sure you are in the same directory or folder where the MyClass.java file is located.

C) execute the java.sun.com program.

D) save the program with the .comp extension.

Answer: B

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

3

Chapter 2: Java Fundamentals

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Which of the following statements correctly creates a Scanner object for keyboard input?

A) Scanner kbd = new Scanner(System.keyboard);

B) Scanner keyboard = new Scanner(System.in);

C) Scanner keyboard(System.in);

D) Keyboard scanner = new Keyboard(System.in);

Answer: B

Q2) Unlike a console program, a program that uses JOptionPane does not automatically stop executing when the end of the main method is reached.

A)True

B)False

Answer: True

Q3) When saving a Java source file, save it with an extension of A).java.

B) .javac.

C) .src.

D) .class.

Answer: A

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

4

Chapter 3: A First Look at Classes and Objects

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) A method that stores a value in a class's field or in some other way changed the value of a field is known as a mutator method.

A)True

B)False

Answer: True

Q2) Which of the following is not involved in finding the classes when developing an object-oriented application?

A) Describe the problem domain.

B) Write the code.

C) Refine the list of nouns to include only those that are relevant to the problem.

D) Identify all the nouns.

Answer: B

Q3) When an argument is passed by value,

A) the parameter variable holds the address of the argument.

B) the parameter variable cannot be changed.

C) the parameter variable holds a copy of the value passed to it.

D) changes can be made to the argument variable.

Answer: A

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

Chapter 4: Decision Structures

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Which of the following expressions determines whether the char variable chrA is not equal to the letter 'A'?

A) chrA == 'A'

B) chrA != 'A'

C) chrA || 'A'

D) chrA.notEquals('A')

Q2) Java requires that the boolean expression being tested by an if statement be enclosed in

A) a set of parentheses.

B) a set of braces.

C) a set of double quotes.

D) a set of brackets.

Q3) If the expression on the left side of the && operator is false, the expression on the right side will not be checked.

A)True

B)False

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

Chapter 5: Loops and Files

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) You can use this method to determine whether a file exists.

A) the File class's canOpen method

B) the Scanner class's exists method

C) the File class's exists method

D) the PrintWriter class's fileExists method

Q2) This is an item that separates other items.

A) partition

B) delimiter

C) sentinel

D) terminator

Q3) Given the following statement, which statement will write the string "Calvin" to the file DiskFile.txt?

PrintWriter diskOut = new PrintWriter("DiskFile.txt");

A) System.out.println(diskOut, "Calvin");

B) PrintWriter.println("Calvin");

C) DiskFile.println("Calvin");

D) diskOut.println("Calvin");

Q4) You can use the PrintWriter class to open a file and write data to it.

A)True

B)False

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

Chapter 6: A Second Look at Classes and Objects

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) CRC stands for

A) Class, Recyclability, Collaborations.

B) Class, Redundancy, Collections.

C) Class, Responsibilities, Collaborations.

D) Code, Reuse, Constancy.

Q2) The JVM periodically performs this process to remove unreferenced objects from memory.

A) memory shuffling

B) system restore

C) garbage collection

D) memory sweeping

Q3) A declaration for an enumerated type begins with this key word.

A) enumerated

B) enum type

C) ENUM

D) enum

Q4) The names of the enum constants in an enumerated data type must be enclosed in quotation marks.

A)True

B)False

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

Chapter 7: Arrays and the ArrayList Class

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) What does <String> specify in the following statement? ArrayList<String> nameList = new ArrayList<String>();

A) It specifies that String objects may not be stored in the ArrayList object.

B) It specifies that everything stored in the ArrayList object will be converted to a String object.

C) It specifies that only String objects may be stored in the ArrayList object.

D) It specifies that the ArrayList will be converted into a String array.

Q2) When an array is passed to a method

A) it is passed just as any other object would be.

B) the method has direct access to the original array.

C) a reference to the array is passed.

D) All of the above

Q3) Java provides a mechanism known as ________, which makes it possible to write a method that takes a variable number of arguments.

A) variable-length argument lists

B) dynamic parameter lists

C) unary-signature templates

D) polymorphic byte codes

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

9

Chapter 8: Text Processing and Wrapper Classes

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) A series of words or other items of data separated by spaces or other characters are known as

A) strings.

B) tokens.

C) delimiters.

D) captions.

Q2) You will cause an off-by-one error, when working with a character position within a string, if you think of the first position in a string as 1.

A)True

B)False

Q3) What will be the value of position after the following code is executed?

Int position;

String str = "The cow jumped over the moon.";

Position = str.lastIndexOf("ov", 14);

A) 14

B) 1

C) 0

D) -1

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

10

Chapter 9: Inheritance

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Protected class members can be denoted in a UML diagram with the ________ symbol.

A) +

B) -

C) *

D) #

Q2) A subclass can directly access

A) only protected and private members of the superclass.

B) all members of the superclass.

C) only public and private members of the superclass.

D) only public and protected members of the superclass.

Q3) A ________ member's access is somewhere between private and public.

A) package

B) final

C) protected

D) static

Q4) Because every class directly or indirectly inherits from the Object class, every class inherits the Object class's members.

A)True

B)False

Page 11

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

Chapter 10: Exceptions and Advanced File I/O

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) When catching multiple exceptions that are related to one another through inheritance, you should handle the more specialized exception classes before the more general exception classes.

A)True

B)False

Q2) To read data from a binary file, you create objects from the following classes:

A) File and Scanner.

B) File and PrintWriter.

C) BinaryFileReader and BinaryDataReader.

D) FileInputStream and DataInputStream .

Q3) If a method does not handle a possible checked exception, what must the method have?

A) a try clause in its header

B) a catch clause in its header

C) a finally clause in its header

D) a throws clause in its header

Q4) The throws clause causes an exception to be thrown.

A)True

B)False

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

Chapter 11: GUI Applications Part 1

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Even if you write an event listener, it will not execute unless it has been registered with the correct component.

A)True

B)False

Q2) In a Swing application, you create a frame from this class.

A) JFrame

B) JPanel

C) JLabel

D) JButton

Q3) If panel references a JPanel object, which of the following statements adds the GridLayout to it?

A) panel.GridLayout(2,3);

B) panel.addLayout(new GridLayout(2,3));

C) panel.attachLayout(GridLayout(2,3));

D) panel.setLayout(new GridLayout(2,3));

Q4) A JFrame object's content pane is automatically given a ________ manager.

A) BorderLayout

B) GridLayout

C) FlowLayout

D) RegionLayout

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

Chapter 12: GUI Applications Part 2

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) A tool tip is

A) used to make programming easier.

B) a guide provided by the Help menu.

C) text that is displayed in a small box when the user holds the mouse cursor over a component.

D) a key that you press while holding down the Alt key to interact with a component.

Q2) To add a component to a scroll pane, you must pass a reference to the component as an argument to the JScrollPane constructor.

A)True

B)False

Q3) The default selection mode for a JList component is

A) single selection mode.

B) multiple interval selection mode.

C) multiple selection mode.

D) single interval selection mode.

Q4) The indices for a list or combo box start at 1, not 0.

A)True

B)False

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

Chapter 13: Applets and More

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Web pages are normally written in

A) Hypertext Markup Language (HTML).

B) Extensible Markup Language (XML).

C) Standard Generalized Markup Language (SGML).

D) Generalized Markup Language (GML).

Q2) The HTML tag that is used to insert a link has the following general format:

A) <url href="Address">Text</url>.

B) <link href="Address">Text</link>.

C) <a href="Address">Text</a>.

D) <html href="Address">Text</html>.

Q3) If you need to load a sound file to be played multiple times, you should use this object.

A) Album

B) Track

C) SoundByte

D) AudioClip

Q4) There is no static main method needed to create an instance of the applet class because the browser creates an instance of the class automatically.

A)True

B)False

Page 15

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

Chapter 14: Creating GUI Applications with JavaFX

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) Which of the following is true concerning the sample controller skeleton provided by Scene Builder?

A) It has all of the necessary import statements.

B) It has private field declarations for all of the components that have an fx:id.

C) You just need to change the name of the class, and write the code for the event listener methods.

D) All of the above

Q2) This variable references the window that the GUI will be displayed in.

A) window

B) stage

C) component

D) frame

Q3) Which of the following import statements is necessary to make the connection between the controller class and the application's FXML file?

A) import javafx.lang;

B) import javafx.scene.control;

C) import javafx.fxml;

D) import javafx.fxml.FXML;

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

16

Chapter 15: Recursion

Available Study Resources on Quizplus for this Chatper

20 Verified Questions

20 Flashcards

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

Sample Questions

Q1) A method is called from the main method for the first time. It then calls itself seven times. What is the depth of recursion?

A) 1

B) 7

C) 8

D) 6

Q2) The recursive case does not require recursion, so it stops the chain of recursive calls.

A)True

B)False

Q3) Recursion is never absolutely required to solve a problem.

A)True

B)False

Q4) The recursive binary search algorithm is a good example of repeatedly breaking a problem down into smaller pieces until it is solved.

A)True B)False

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

Page 17

Chapter 16: Databases

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) What do most developers prefer to use when developing applications that work with an intensive amount of data?

A) text files

B) binary files

C) a database management system

D) Java DB

Q2) This SQL statement can be used to create a database table.

A) NEW TABLE

B) MAKE TABLE

C) BUILD TABLE

D) CREATE TABLE

Q3) Although SQL is a language, you don't use it to write applications.

A)True

B)False

Q4) In SQL, this character can be used as a wildcard to represent a single character.

A) %

B) $

C) _

D) *

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

Turn static files into dynamic content formats.

Create a flipbook
Introduction to Software Engineering Review Questions - 620 Verified Questions by Quizplus - Issuu