Skip to main content

Software Development Exam Questions - 981 Verified Questions

Page 1


Software Development Exam Questions

Course Introduction

Software Development is a comprehensive course that introduces students to the fundamental principles, methodologies, and tools used in the creation of reliable, efficient, and maintainable software systems. The course covers the entire software development lifecycle, including requirements gathering, system design, coding practices, testing, version control, and deployment. Students will gain hands-on experience with modern programming languages, software engineering frameworks, and collaborative development environments, preparing them for both individual and team-based software projects. Emphasis is placed on problem-solving, best coding practices, agile and waterfall methodologies, and the importance of documentation and communication within development teams.

Recommended Textbook

Starting Out with Java From Control Structures through Data Structures 2nd Edition by

Available Study Resources on Quizplus

22 Chapters

981 Verified Questions

981 Flashcards

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

Page 2

Tony Gaddis

Chapter 1: Introduction to Computers and Java

Available Study Resources on Quizplus for this Chatper

42 Verified Questions

42 Flashcards

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

Sample Questions

Q1) The data contained in an object is known as:

A) Methods

B) Attributes

C) Classes

D) Atriums

Answer: B

Q2) Software refers to:

A) The physical components that a computer is made of.

B) Firmware

C) Programs

D) Peopleware

Answer: C

Q3) Encapsulation refers t the combining of data and code into a single object.

A)True

B)False

Answer: True

Q4) The contents of a variable cannot be changed while the program is running.

A)True

B)False

Answer: False

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

Chapter 2: Java Fundamentals

Available Study Resources on Quizplus for this Chatper

53 Verified Questions

53 Flashcards

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

Sample Questions

Q1) Class names and key words are examples of variables.

A)True

B)False

Answer: False

Q2) The ___________ is normally considered the standard output and standard input devices,and usually refer to the monitor and keyboard.

A) CRT

B) CPU

C) secondary storage devices

D) console

Answer: D

Q3) The boolean data type may contain values in the following range of values

A) true or false

B) -128 to + 127

C) - 2,147,483,648 to +2,147,483,647

D) - 32,768 to +32,767

Answer: A

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

Chapter 3: Decision Structures

Available Study Resources on Quizplus for this Chatper

52 Verified Questions

52 Flashcards

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

Sample Questions

Q1) When testing for character values,the switch statement does not test for the case of the character.

A)True

B)False

Answer: False

Q2) The _________ statement is used to make simple decisions in Java.

A) do/while

B) for

C) branch

D) if Answer: D

Q3) An important style rule you should follow when writing if statements is to line up the conditionally executed statement with the if statement.

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

48 Verified Questions

48 Flashcards

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

Sample Questions

Q1) When you pass the name of a fi le to the PrintWriter constructor,and the file already exists,it will be erased and a new empty file with the same name will be created.

A)True

B)False

Q2) When you open a file with the PrintWriter class,the class can potentially throw an IOException.

A)True

B)False

Q3) What will be the value of x after the following code is executed? int x = 10; Do

{ X *= 20;

} While (x < 5);

A) 10

B) 200

C) This is an infinite loop.

D) The loop will not be executed,the initial value of x > 5.

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

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) What will be returned from the following method? public static int methodA()

{ Double a = 8.5 + 9.5; Return a;

}

A) 18.0

B) 18 (as an integer)

C) 8.0

D) This is an error

Q2) The lifetime of a method's local variable is

A) the duration of the program

B) the duration of the class to which the method belongs

C) the duration of the method that called the local variable's method

D) only while the method is executing

Q3) You should always document a method by writing comments that appear

A) just before the method's definition.

B) just after the method's definition.

C) at the end of the file.

D) only if the method is more than five lines long.

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

49 Verified Questions

49 Flashcards

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

Sample Questions

Q1) In UML diagrams,this symbol indicates that a member is public.

A) /

B) @

C) -

D) +

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

A) Describe the problem domain.

B) Identify all the nouns.

C) Write the code.

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

Q3) Quite often you have to use this statement to make a group of classes available to a program.

A) import

B) use

C) link

D) assume

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

Chapter 7: A First Look at Gui Applications

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

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

Sample Questions

Q1) Which of the following statements creates a class that is extended from the JFrame class?

A) JFrame DerivedClass = new JFrame();

B) class JFrame DerivedClass;

C) JFrame(DerivedClass);

D) public class DerivedClass extends JFrame{}

Q2) The GridLayout manager limits each cell to only one component.To put two or more components in a cell,do this.

A) Resize the cells so they can hold more

B) You can nest panels inside the cells,and add other components to the panels

C) The statement is false.The GridLayout manager does not have this restriction

D) Resize the components to fit in the cell

Q3) In Java,the ability to display splash screens was introduced in Java 6.

A)True

B)False

Q4) The System.exit method will end the application.

A)True

B)False

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

9

Chapter 8: Arrays and the Arraylist Class

Available Study Resources on Quizplus for this Chatper

52 Verified Questions

52 Flashcards

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

Sample Questions

Q1) To return an array of long values from a method,use this as the return type for the method.

A) long

B) long[]

C) long[ARRAY_SIZE]

D) []long

Q2) What would be the results of the following code? int[] x = { 55,33,88,22,99, 11,44,66,77 };

Int a = 10;

If(x[2] > x[5])

A = 5;

Else

A = 8;

A) a = 5

B) a = 8

C) a = 10

D) This is a compilation error,you cannot compare array elements

Q3) Java limits the number of dimensions that an array may have to 15.

A)True

B)False

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

Chapter 9: 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/72360

Sample Questions

Q1) If the following is from the method section of a UML diagram,which of the following statements is true? + equals(object2:Stock): boolean

A) This is a private method that receives two objects from the Stock class and returns a boolean value

B) This is a public method that accepts a Stock object as its argument and returns a boolean value

C) This is a private method that returns a boolean value

D) This is a public method that returns a Stock object

Q2) Enumerated types have this method,which returns the position of an enum constant in the declaration list.

A) toString

B) position

C) ordinal

D) location

Q3) When a field is declared static,there will be

A) a copy of the field in each class object

B) only one copy of the field in memory

C) a copy of the field for each static method in the class

D) only two copies of the field in memory

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

Page 11

Chapter 10: Text Processing and More About Wrapper

Classes

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

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

Sample Questions

Q1) Which of the following statements will print the maximum value a double variable may have?

A) System.out.println(MAX_VALUE);

B) System.out.println(double.MAX_VALUE);

C) System.out.println(Double.MAX_VALUE);

D) System.out.println(Double.MAXIMUM_VALUE);

Q2) What will be the value of loc after the following code is executed? int loc; String str = "The cow jumped over the moon."; Loc = str.lastIndexOf("ov",14);

A) 15

B) 16

C) 0

D) -1

Q3) In a string that contains a series of words or other items of data separated by spaces or other characters,the programming term for the spaces or other characters is A) token

B) delimiter

C) buffer

D) separator

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

Chapter 11: Inheritance

Available Study Resources on Quizplus for this Chatper

49 Verified Questions

49 Flashcards

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

Sample Questions

Q1) Which of the following statements declares Salaried as a subclass of PayType?

A) public class Salaried extends PayType

B) public class Salaried implements PayType

C) public class Salaried derivedFrom(Paytype)

D) public class PayType derives Salaried

Q2) Protected members are

A) not quite private

B) not quite public

C) Both A and B

D) Neither A or B

Q3) Which of the following is true about protected access?

A) Protected members may be accessed by methods in the same package or in a subclass,even when the subclass is in a different package.

B) Protected members may be accessed by methods in the same package or in a subclass,but only if the subclass is in the same package.

C) Protected members cannot be accessed by methods in any other classes.

D) Protected members are actually named constants.

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

13

Chapter 12: Exceptions and Advanced File Io

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

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

Sample Questions

Q1) What will be the result of the following code? FileOutputStream fstream new FileOutputStream("Output.dat");

DataOutputStream outputFile = new DataOutputStream(fstream);

A) The outputFile variable will reference an object that is able to write text data only to the Output.dat file.

B) The outputFile variable will reference an object that is able to write binary data to the Output.dat file.

C) The outputFile variable will reference an object that is able to read binary data from the Output.dat file.

D) The outputFile variable will reference an object that is able to write to Output.dat as a random access file.

Q2) When writing a string to a binary file or reading a string from a binary file,it is recommended that you use

A) Methods that use UTF-8 encoding

B) The Scanner class methods

C) The FileReader and Writer class methods

D) The System.In and System.Out methods

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

Chapter 13: Advanced Gui Applications

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

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

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) A mnemonic is

A) A single key on the keyboard that you press to quickly access a component such as a button.

B) A key on the keyboard that you press in combination with the SHIFT key to quickly access a component such as a button.

C) A key on the keyboard that you press in combination with the ALT key to quickly access a component such as a button.

D) A key on the keyboard that you press in combination with the CTRL key to quickly access a component such as a button.

Q3) A menu system may consist of each of the following,except

A) check box menu item

B) combo box menu item

C) radio button menu item

D) menu item

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

39 Verified Questions

39 Flashcards

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

Sample Questions

Q1) The Applet class requires that you write a constructor to create an object of the class.

A)True

B)False

Q2) If you want to make sure that an applet is compatible with all Java-enabled browsers,use Swing components instead of AWT.

A)True

B)False

Q3) Which of the following will load the applet,TestApplet?

A) < applet code="TestApplet.class" width=200 height=50 >< /applet >

B) < applet code=TestApplet.class width=200 height=50 >< /applet >

C) < load code="TestApplet.class" width=200 height=50 >< /load >

D) < load code=TestApplet.class width=200 height=50 >< /load >

Q4) Which of the following sound file formats does Java not support?

A) .wav

B) .au

C) .mid

D) Java supports all of the above

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

Chapter 15: Recursion

Available Study Resources on Quizplus for this Chatper

34 Verified Questions

34 Flashcards

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

Sample Questions

Q1) Look at the following method. public static int test2(int x,int y)

{ If ( x < y)

{ Return -5; } Else

{ Return (test2(x - y,y + 5)+ 6);

What is returned for test2(10,20)?

A) 6

B) 10

C) 1

D) -5

Q2) Indirect recursion occurs when a method calls another method that in turn calls the first method.

A)True

B)False

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

Page 17

Chapter 16: Sorting, Searching, and Algorithm Analysis

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

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

Sample Questions

Q1) The worst case complexity function is a good measure to use when

A) the load on the system is heaviest

B) we want a guarantee on the performance of an algorithm

C) the best case complexity would lead to incorrect results

D) we want to create an efficient algorithm

Q2) Binary Search is in the complexity class

A) O(1)

B) O(log n.

C) O(n.

D) O(n log n.

Q3) Suppose that we are searching for an item X in an array sorted in descending order.If we find that X is smaller than the middle item of the array,then we should continue our search in the half of the array whose elements

A) have higher subscripts than the middle of the array

B) have lower subscripts than the middle of the array

C) have the same subscript as the middle of the array

D) None of the above

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

18

Chapter 17: Generics

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Erasure is the process of

A) removing references to generic interfaces during execution

B) returning the null value when the compiler cannot determine the value of a generic reference

C) replacing generic types with their upper bound,or with Object,during compilation

D) deleting generic types that cannot be correctly resolved during compilation

Q2) When a generic method is called,

A) the programmer must explicitly specify the actual types to use for the type parameters

B) the compiler determines the actual types to use for the type parameters from the context

C) the compiler uses information explicitly specified by the programmer,if available;otherwise,the type defaults to Object

D) None of the above

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

Chapter 18: Collections

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Comparator

A) specifies a single method,compareTo

B) specifies three methods,compareTo,compare,and equals

C) specifies two methods,compare and equals

D) specifies two methods,compare and compareTo

Q2) An object that is used to retrieve objects from a collection is called

A) an iterator

B) a collector

C) an accessor

D) All of the above

Q3) A LinkedHashMap

A) can be set up to maintain its keys in insert or access order

B) is an unordered collection that provides no control over the order of retrieval of stored elements

C) provides an iterator that can be used to retrieve its elements

D) None of the above

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

Chapter 19: Array-Based Lists

Available Study Resources on Quizplus for this Chatper

20 Verified Questions

20 Flashcards

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

Sample Questions

Q1) Assume an array-based list implemented by a class that uses the fields String [ ] list; int nElements;

to represent the array of elements,and the number of elements currently stored.Show the code for a method boolean empty()that determines whether the list is empty.

Q2) The position of an item within a list is called its A) index B) rank C) level

D) number

Q3) What is the difference between the Iterator and Iterable interfaces? How would you use these two interfaces if you had to write a collection class?

Q4) Assume an array-based list implemented by a class that uses the fields String [ ] list; int nElements; to represent the array of elements,and the number of elements currently stored.Show the code for a method int size( )that returns the current size of the list.

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

21

Chapter 20: Linked Lists

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) A list method void add(int index,E x)seeking to add an element x that is an object of a class E to a list,should throw an IndexOutOfBoundsException when A) the index is negative,or greater than the size of the list

B) the index is negative,or greater than,or equal to,the size of the list

C) the index is greater than or equal to the size of the list

D) The element x falls outside of the bounds specified by the index

Q2) A doubly linked list makes it easy to

A) move from any node to its successor,and from any node to its predecessor

B) skip two nodes at a time when moving forward through the list

C) skip two nodes at a time when moving backward through the list

D) to create a second copy of the linked list

Q3) To allocate storage for its elements,an array-based list such as ArrayList uses A) linked allocation

B) contiguous allocation

C) capacity allocation

D) fixed size allocation

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

Chapter 21: Stacks and Queues

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) Consider a class that uses the following variables to implement an array-based stack:

String [ ] s = new String[100];

Int top = 0;

A method that implements the String peek()operation can be written as

A) return s[top];

B) if (top == 0.

Throw new RuntimeException("Underflow".;

Else

Return s[top];

C) if (top == 0.

Throw new RuntimeException("Underflow".;

Else

Return s[top-1];

D) return s[top-1];

Q2) A queue is a container that allows elements to be stored and removed

A) in a last-in-first-out fashion

B) in a first-in-first-out fashion

C) in a first-in-last-out fashion

D) quickly and efficiently

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

Page 23

Chapter 22: Binary Trees, Avl Trees, and Priority Queues

Available Study Resources on Quizplus for this Chatper

45 Verified Questions

45 Flashcards

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

Sample Questions

Q1) A sorting algorithm based on a priority queue is A) quicksort

B) insertion sort

C) bubble sort

D) heap sort

Q2) Traversing a binary search tree in inorder

A) yields the same sequence as a postorder traversal

B) yields a sequence in which the minimum element is at the approximate midpoint of the sequence

C) will yield a sorted sequence

D) is more efficient than traversing the tree in preorder

Q3) The predecessor of a node in a binary tree is called its

A) progenitor

B) ancestor

C) parent

D) precursor

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

Turn static files into dynamic content formats.

Create a flipbook