Software Development Midterm Exam - 953 Verified Questions

Page 1


Software Development

Midterm Exam

Course Introduction

Software Development is a comprehensive course that explores the fundamental principles and practices involved in building, testing, and maintaining software applications. Students will gain hands-on experience with the software development life cycle, including requirements gathering, system design, coding, debugging, and deployment. The course emphasizes key concepts such as version control, agile methodologies, software architecture, and collaborative development. Through individual and team-based projects, students will develop problem-solving skills and learn to use industry-standard tools and programming languages to create effective, scalable software solutions.

Recommended Textbook

Starting Out with Java From Control Structures through Objects 6th Edition by Tony Gaddis

Available Study Resources on Quizplus

17 Chapters

953 Verified Questions

953 Flashcards

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

Chapter 1: Introduction to Computers and Java

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

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

Sample Questions

Q1) Key words are:

A) The data names in your program

B) Words that have a special meaning in the programming language

C) Symbols or words that perform operations on one or more operands

D) Words or names defined by the programmer

Answer: B

Q2) Another term for programs is:

A) Hardware

B) Software

C) Firmware

D) Shareware

Answer: B

Q3) Application software refers to:

A) The operating system

B) Pseudocode

C) Key words

D) The programs that make the computer useful to the user

Answer: D

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

61 Verified Questions

61 Flashcards

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

Sample Questions

Q1) If the following Java statements are executed, what will be displayed? System.out.println("The top three winners are\n"); System.out.print("Jody, the Giant\n"); System.out.print("Buffy, the Barbarian"); System.out.println("Adelle, the Alligator");

A) The top three winners are Jody, the Giant Buffy, the Barbarian Adelle, the Alligator

B) The top three winners are Jody, the Giant\nBuffy, the BarbarianAdelle, the Alligator

C) The top three winners are Jody, the Giant\nBuffy, the BarbarianAdelle, and the Albino

D) The top three winners are Jody, the Giant Buffy, the BarbarianAdelle, the Alligator

Answer: D

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

Chapter 3: Decision Structures

Available Study Resources on Quizplus for this Chatper

64 Verified Questions

64 Flashcards

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

Sample Questions

Q1) If str1 and str2 are both Strings, which of the following will correctly test to determine whether str1 is less than str2?

(1) (str1 < str2)

(2) (str1.equals(str2) < 0)

(3) (str1.compareTo(str2) < 0)

A) 1, 2, and 3 will all work

B) 2

C) 3

D) 2 and 3

Answer: C

Q2) The String.format method works exactly like the System.out.printf method, except that it does not display the formatted string on the screen.

A)True

B)False

Answer: True

Q3) Programs never need more than one path of execution.

A)True

B)False

Answer: False

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

Page 5

Chapter 4: Loops and Files

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

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

Sample Questions

Q1) What will be printed after the following code is executed? for (int number = 5; number <= 15; number +=3) System.out.print(number + ", ");

A) 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, B) 5, 8, 11, 14, 17, C) 5, 8, 11, 14,

D) This is an invalid for statement

Q2) What will be the value of x after the following code is executed? int x = 10, y = 20; While (y < 100)

{ X += y;

}

A) 90

B) 110

C) 210

D) This is an infinite loop

Q3) In a for statement, the control variable can only be incremented.

A)True

B)False

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

Page 6

Chapter 5: Methods

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) When writing the documentation comments for a method, you can provide a description of each parameter by using a:

A) @comment tag

B) @doc tag

C) @param tag

D) @return tag

Q2) A value-returning method can return a reference to a non-primitive type.

A)True

B)False

Q3) All @param tags in a method's documentation comment must:

A) end with a */

B) appear after the general description of the method

C) appear before the method header

D) span several lines

Q4) Local variables can be initialized with:

A) constants

B) parameter values

C) the results of an arithmetic operation

D) any of the above

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

Chapter 6: A First Look at Classes

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) In the cookie cutter metaphor, think of the ________ as a cookie cutter and ________ as the cookies.

A) object; classes

B) class; objects

C) class; fields

D) attribute; methods

Q2) When an object is created, the attributes associated with the object are called:

A) instance fields

B) instance methods

C) fixed attributes

D) class instances

Q3) It is common practice in object-oriented programming to make all of a class's:

A) methods private

B) fields private

C) fields public

D) fields and methods public

Q4) A constructor is a method that is automatically called when an object is created.

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

64 Verified Questions

64 Flashcards

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

Sample Questions

Q1) An ArrayList object automatically expands in size to accommodate the items stored in it.

A)True

B)False

Q2) The binary search algorithm:

A) is less efficient than the sequential search algorithm

B) will cut the portion of the array being searched in half each time the loop fails to locate the search value

C) will have a maximum number of comparisons equal to the number of elements in the array

D) will have an average of N/2 comparisons, where N is the number of elements in the array

Q3) Java performs ____________, which means that it does not allow a statement to use a subscript that is outside the range of valid subscripts for the array.

A) active array sequencing

B) array bounds checking

C) scope resolution binding

D) buffer overrun protection

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

9

Chapter 8: A Second Look at Classes and Objects

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) The key word this is the name of a reference variable that an object can use to refer to itself.

A)True

B)False

Q2) The whole-part relationship created by object aggregation is more often called:

A) a has a relationship

B) an inner class relationship

C) an extra class relationship

D) an inside class relationship

Q3) The this key word is the name of a reference variable that is available to all static methods.

A)True

B)False

Q4) If you attempt to perform an operation with a null reference variable:

A) the resulting operation will always be zero

B) the results will be unpredictable

C) the program will terminate

D) Java will create an object to reference the variable

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

Chapter 9: Text Processing and More About Wrapper

Classes

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) Which of the following methods of the String class can be used to tokenize a string?

A) split

B) tokenize

C) trim

D) length

Q2) Sometimes a string will contain a series of words or other items of data separated by spaces or other characters. In programming terms, items such as these are known as what?

A) Tokens

B) Delimiters

C) Key characters

D) Lists

Q3) What does the following statement do?

Double number = new Double(8.8);

A) It creates a Double object.

B) It initializes that object to 8.8.

C) It assigns the object's address to the number variable.

D) All of the above

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

Chapter 10: Inheritance

Available Study Resources on Quizplus for this Chatper

70 Verified Questions

70 Flashcards

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

Sample Questions

Q1) In the following statement, which is the interface?

Public class ClassA extends ClassB implements ClassC

A) ClassA

B) ClassB

C) ClassC

D) Cannot tell

Q2) When an "is a" relationship exists between objects, it means that the specialized object has:

A) some of the characteristics of the general class, but not all, plus additional characteristics

B) some of the characteristics of the general object, but not all

C) none of the characteristics of the general object

D) all the characteristics of the general object, plus additional characteristics

Q3) Protected members are:

A) not quite private

B) not quite public

C) both A and B

D) neither A nor B

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

Chapter 11: Exceptions and Advanced File IO

Available Study Resources on Quizplus for this Chatper

56 Verified Questions

56 Flashcards

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

Sample Questions

Q1) Unchecked exceptions are those that inherit from:

A) the Error class or the RuntimeException class

B) the Error class or the Exception class

C) the Exception Class or the RuntimeException class

D) only the Error class

Q2) If, within one try statement you want to have catch clauses of the following types, in which order should they appear in your program: (1) Exception

(2) IllegalArgumentException

(3) RuntimeException

(4) Throwable

A) 1, 2, 3, 4

B) 2, 3, 1, 4

C) 4, 1, 3, 2

D) 3, 1, 2, 4

Q3) The throw statement informs the compiler that a method throws one or more exception.

A)True

B)False

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

Chapter 12: A First Look at GUI Applications

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) To end an application, pass this as the argument to the JFrame class's setDefaultCloseOperation() method.

A) END_ON_CLOSE

B) JFrame.END_ON_CLOSE

C) JFrame.EXIT_ON_CLOSE

D) JFrame.CLOSE_NOT_HIDE

Q2) ________ is a library of classes that do not replace ________, but provide an improved alternative for creating GUI applications.

A) AWT, Swing

B) Swing, AWT

C) JFC, AWT

D) JFC, Swing

Q3) When using the BorderLayout manager, how many components can each region hold?

A) 1

B) 2

C) 5

D) No limit

Q4) All operating systems offer the same set of GUI components.

A)True

B)False

14

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

Chapter 13: Advanced GUI Applications

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) Which of the following is NOT a class used in constructing a menu system?

A) JMenuItem

B) JCheckBoxMenuItem

C) JButton

D) JRadioButtonMenuItem

Q2) If a user enters a value in the text box of an editable combo box and the value is NOT in the list, what will the method getSelectedItem return?

A) The value that the user replaced

B) The index of the item the user entered

C) The value that appears in the text field, even if it is not in the combo box's list

D) Nothing, since the item is not in the list

Q3) Which of the following is NOT a class used in constructing a menu system?

A) JMenuItem

B) JCheckBoxMenuItem

C) JComboBoxMenuItem

D) JRadioButtonMenuItem

Q4) By default the scroll bars are always displayed in a JList component.

A)True

B)False

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

Chapter 14: Applets and More

Available Study Resources on Quizplus for this Chatper

54 Verified Questions

54 Flashcards

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

Sample Questions

Q1) What does the tag &lt;p /&gt; cause to happen?

A) A double space

B) A paragraph break

C) Indentation for a paragraph

D) Plain text to be displayed

Q2) In the following code, which line has an error?

1 public class TestApplet extends JApplet

JLabel("Test label"); 7 setLayout(new FlowLayout()); 8 add(label);

3 C) 5

D) There are no errors

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

Chapter 15: Creating GUI Applications With Javafx and Scene Builder

Available Study Resources on Quizplus for this Chatper

40 Verified Questions

40 Flashcards

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

Sample Questions

Q1) In JavaFX, this component is commonly used as a GUI's root node.

A) List

B) AnchorPane

C) Button

D) ComboBox

Q2) Like RadioButtons, CheckBoxes may be selected or deselected at run time.

A)True

B)False

Q3) This is an action that takes place within a program, such as the clicking of a button.

A) Response

B) Input

C) Event

D) Incident

Q4) This is a graphical window or a system of graphical windows presented by an application for interaction with the user.

A) Graphical user interface (GUI)

B) Human-computer interface (HCI)

C) Man-machine interface (MMI)

D) Object-oriented user interface (OOUI)

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

Chapter 16: Recursion

Available Study Resources on Quizplus for this Chatper

42 Verified Questions

42 Flashcards

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

Sample Questions

Q1) Look at the following pseudocode algorithm: algorithm Test14(int x)

If (x < 8)

Return (2 * x)

Else

Return (3 * Test14(x - 8) + 8)

End Test14

What value is returned for Test14(7)?

A) 0

B) 7

C) 14

D) -5

Q2) The number of times that a method calls itself is known as the:

A) height of recursion

B) depth of recursion

C) width of recursion

D) length of recursion

Q3) If method A calls method B, which in turn calls method A, it is called indirect recursion.

A)True

B)False

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

Chapter 17: Databases

Available Study Resources on Quizplus for this Chatper

48 Verified Questions

48 Flashcards

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

Sample Questions

Q1) What Java class is a Swing component that displays data in a two-dimensional table?

A) JTable

B) JFrame

C) JPanel

D) JTable2D

Q2) SQL statements that are stored in the DBMS are called resident queries.

A)True

B)False

Q3) What does JDBC stand for?

A) Java data binary collection

B) Java database connectivity

C) Java database collection

D) Java data basic computation

Q4) Which of one the following SQL data types would be the best choice for storing financial data?

A) INT

B) REAL

C) DOUBLE

D) VARCHAR

Page 19

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

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.