

Introduction to Programming Study Guide Questions
Course Introduction
Introduction to Programming provides students with fundamental concepts and techniques for writing computer programs. The course covers the basics of algorithm development, problem-solving, and logical thinking. Students will learn the syntax and structure of at least one programming language, typically focusing on variables, data types, control structures, functions, arrays, and basic input/output operations. Through practical exercises and projects, learners gain experience in writing, testing, and debugging code, setting a solid foundation for further study in computer science and software development.
Recommended Textbook
Java Programming 7th Edition by Joyce Farrell
Available Study Resources on Quizplus
17 Chapters
1208 Verified Questions
1208 Flashcards
Source URL: https://quizplus.com/study-set/1207

Page 2

Chapter 1: Creating Java Programs
Available Study Resources on Quizplus for this Chatper
68 Verified Questions
68 Flashcards
Source URL: https://quizplus.com/quiz/23890
Sample Questions
Q1) ____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the information to perform its task or carry out its purpose.
A) Applets
B) Methods
C) Arguments
D) Objects
Answer: C
Q2) In a ____ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses, you type cd MyClasses and press Enter.
A) Windows
B) Java
C) graphical
D) DOS
Answer: D
Q3) ____________________ comments are a special case of block comments that are used to generate documentation.
Answer: Javadoc
To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Using Data
Available Study Resources on Quizplus for this Chatper
74 Verified Questions
74 Flashcards
Source URL: https://quizplus.com/quiz/23891
Sample Questions
Q1) Created by placing the desired result type in parentheses
A)operand
B)cast operator
C)assignment
D)operator precedence
E)garbage
F)primitive
G)float
H)boolean
I)escape sequence
Answer: B
Q2) When a numeric variable is concatenated to a String, the entire expression becomes a(n) ____.
A) int
B) constant
C) method
D) String
Answer: D
Q3) A(n) ____________________ is a simple data type.
Answer: primitive type
To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Using Methods, Classes, and Objects
Available Study Resources on Quizplus for this Chatper
68 Verified Questions
68 Flashcards
Source URL: https://quizplus.com/quiz/23892
Sample Questions
Q1) Which is more important: the order in which you place methods' bodies, or the order in which you call methods? Please explain.
Answer: The order in which you place methods' bodies in a class has no bearing on the order in which the methods are called. Any method in a file might call any of the other methods in any order and any number of times. The order in which you call methods does make a difference in how an application executes.
Q2) When a variable ceases to exist at the end of a method, programmers say the variable ____.
A) is undeclared
B) is out of memory range
C) goes out of scope
D) is lost
Answer: C
Q3) You can identify a class that is an application because it contains a public static void main() method.
A)True
B)False
Answer: True
To view all questions and flashcards with answers, click on the resource link above.
5

Chapter 4: More Object Concepts
Available Study Resources on Quizplus for this Chatper
67 Verified Questions
67 Flashcards
Source URL: https://quizplus.com/quiz/23893
Sample Questions
Q1) Declare a GregorianCalendar object named year. Use the GregorianCalendar class and the get() method to display the current year in a println statement.
Q2) Useful when working with dates and times
A)optional classes
B)instance variables
C)comes into scope
D)class methods
E)overloading
F)Math class
G)redeclaring a variable
H)GregorianCalendar
I)constant
Q3) Within any class or method, the code between a pair of curly braces is called a(n)
A) overload
B) argument
C) scope
D) block
Q4) Describe and provide an example of overloading.
Q5) What are the four types of nested classes?
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
70 Verified Questions
70 Flashcards
Source URL: https://quizplus.com/quiz/23894
Sample Questions
Q1) When you block statements, you must remember that any ____ you declare within a block is local to that block.
A) method
B) expression
C) variable
D) decision
Q2) An alternative to using a Boolean expression, such as quizScore == 10, is to store the Boolean expression's value in a Boolean variable. How could you express this in Java?
Q3) A logical structure called a(n) ____ structure is when one step follows another unconditionally.
A) straight
B) decision
C) sequence
D) unconditional
Q4) ____________________ is a tool that helps programmers plan a program's logic by writing plain English statements.
Q5) Why would a programmer execute more than one statement that depends on the evaluation of a Boolean expression, and how could he or she do it in Java?
To view all questions and flashcards with answers, click on the resource link above. Page 7

Chapter 6: Looping
Available Study Resources on Quizplus for this Chatper
72 Verified Questions
72 Flashcards
Source URL: https://quizplus.com/quiz/23895
Sample Questions
Q1) A for loop provides a convenient way to create a(n) ____ loop.
A) counter-controlled
B) posttest
C) while
D) infinite
Q2) How are nested loops implemented in a loop structure?
Q3) Programmers rarely use indefinite loops when validating input data.
A)True
B)False
Q4) When creating a for loop, which statement will correctly initialize more than one variable?
A) for a=1, b=2
B) for(a=1; b=2)
C) for(a=1, b=2)
D) for(a = 1&& b = 2)
Q5) A loop that never ends is called a(n) ____ loop.
A) definite
B) infinite
C) while
D) for
To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: Characters, Strings, and the Stringbuilder
Available Study Resources on Quizplus for this Chatper
73 Verified Questions
73 Flashcards
Source URL: https://quizplus.com/quiz/23896
Sample Questions
Q1) Takes two integer arguments: a start position and an end position
A)parseDouble()
B)toLowerCase()
C)substring()
D)String variable
E)append()
F)buffer
G)setLength()
H)indexOf()
I)insert()
Q2) Describe how a programmer would use the two types of Character class methods (those that begin with "is" and those that begin with "to") for testing the values of characters.
Q3) String greeting = "Welcome back";
Using the above statement, write the length() method that will return the length of the greeting String. Store the length in an integer named greetingLength.
Q4) What is a wrapper and why would you use it?
Q5) How is the String class equalsIgnoreCase() method like the equals() method and how would you use it? Give an example.
To view all questions and flashcards with answers, click on the resource link above. Page 9

Chapter 8: Arrays
Available Study Resources on Quizplus for this Chatper
74 Verified Questions
74 Flashcards
Source URL: https://quizplus.com/quiz/23897
Sample Questions
Q1) When a method returns an array reference, you include ____ with the return type in the method header.
A) { }
B) ( )
C) < >
D) [ ]
Q2) When using parallel arrays, if one array has many possible matches, it is most efficient to place the less common items first so that they are matched right away.
A)True
B)False
Q3) What does an array's name represent and what value does it hold when declared?
Q4) Write the statement to declare an array variable named studentScores with type double. Write a second statement to create an array of 10 objects.
Q5) When you declare or access an array, you can use any expression to represent the size, as long as the expression is a(n) ____________________.
Q6) When any primitive type is passed to a method, the ____________________ is passed.
Q7) Why would you use spacing when initializing parallel arrays?
Page 10
To view all questions and flashcards with answers, click on the resource link above.

Chapter 9: Advanced Array Concepts
Available Study Resources on Quizplus for this Chatper
74 Verified Questions
74 Flashcards
Source URL: https://quizplus.com/quiz/23898
Sample Questions
Q1) How would you create an array named someNumbers that holds three rows and four columns?
A) int[][] someNumbers = new int[4][3]
B) int[][] someNumbers = new int[3][4]
C) int[] someNumbers = new int[3][4]
D) double[][] someNumbers = new int[3][4]
Q2) enum Color {RED, GREEN, BLUE} public class EnumOrdinal
{ public static void main(String[] args)
{ } }
The above code demonstrates the use of the enum ordinal() method to get the ordinal value of an enum constant. Fill in the shaded lines with println() statements that will get the ordinal of the enumeration constant. Describe the output that will display when the code is executed.
To view all questions and flashcards with answers, click on the resource link above.
Page 11

Chapter 10: Introduction to Inheritance
Available Study Resources on Quizplus for this Chatper
70 Verified Questions
70 Flashcards
Source URL: https://quizplus.com/quiz/23899
Sample Questions
Q1) Write the statement to create a class header with a superclass-subclass relationship, with Vehicle as the superclass and Subaru as the subclass.
Q2) The ability to use inheritance in Java makes programs easier to write, ____, and more quickly understood.
A) faster
B) more secure
C) more robust
D) less error prone
Q3) You are never aware that ____ is taking place; the compiler chooses to use this procedure to save the overhead of calling a method.
A) information hiding
B) polymorphism
C) overriding D) inlining
Q4) What is information hiding and how is it used?
Q5) Java's Math class is an example of a protected class.
A)True
B)False
Q6) What does polymorphism mean in Java programming?
Page 12
To view all questions and flashcards with answers, click on the resource link above.

Chapter 11: Advanced Inheritance Concepts
Available Study Resources on Quizplus for this Chatper
70 Verified Questions
70 Flashcards
Source URL: https://quizplus.com/quiz/23900
Sample Questions
Q1) What are the advantages to creating a useful, extendable superclass?
Q2) A(n) ____ class is one from which you cannot create any concrete objects, but from which you can inherit.
A) abstract
B) inheritance
C) parent
D) final
Q3) The javac command to specify a directory
A)dynamic method binding
B)collision
C)GregorianCalendar
D)multiple inheritance
E)equals() method
F)-d option
G)java.lang
H)public, static, and final
I)interface
Q4) Why do many programmers consider multiple inheritance to be a difficult concept?
Q5) What is dynamic method binding and why is it used?
Q6) Compare and contrast abstract classes and interfaces.
Page 13
To view all questions and flashcards with answers, click on the resource link above.

Chapter 12: Exception Handling
Available Study Resources on Quizplus for this Chatper
65 Verified Questions
65 Flashcards
Source URL: https://quizplus.com/quiz/23901
Sample Questions
Q1) Some programmers refer to a catch block as a catch ____.
A) method
B) phrase
C) statement
D) clause
Q2) To create your own throwable Exception class, you must extend a subclass of Catchable.
A)True
B)False
Q3) When an exception is a checked exception, client programmers are forced to deal with the possibility that an exception will be thrown.
A)True
B)False
Q4) To use a method to its full potential, you must know the method name, return type, type and number of arguments required, and type and number of exceptions the method throws.
A)True
B)False
Q5) When a program contains multiple catch blocks, how are they handled?
Q6) What are unchecked exceptions? Give an example.
Page 14
To view all questions and flashcards with answers, click on the resource link above.

Chapter 13: File Input and Output
Available Study Resources on Quizplus for this Chatper
74 Verified Questions
74 Flashcards
Source URL: https://quizplus.com/quiz/23902
Sample Questions
Q1) Which of the following statements will write a line separator?
A) newline();
B) BufferedWriter.newline();
C) FileChannel.newline();
D) ByteBuffer.newline();
Q2) Functions as a pipeline or channel between a Java program and an input device
A)batch processing
B)root
C)buffer
D)flushing
E)stream
F)System.getProperty("line.separator")
G)data file
H)close the files
I)BufferedWriter
Q3) Java's Path class is used to create objects that contain information about files and directories, while the Files class performs operations on files and directories.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 15

Chapter 14: Introduction to Swing Components
Available Study Resources on Quizplus for this Chatper
74 Verified Questions
74 Flashcards
Source URL: https://quizplus.com/quiz/23903
Sample Questions
Q1) A ____ is a component that combines two features: a display area showing an option, and a list box containing additional options.
A) JCheckBox
B) JComboBox
C) JButton
D) JTextBox
Q2) What class is the immediate parent of JFrame?
A) Container
B) Component
C) Frame
D) Window
Q3) The ____ method of JCheckBox sets the state of the JCheckBox to true for selected or false for unselected.
A) void setSelected(boolean)
B) boolean isSelected()
C) void setText(String)
D) String getText()
Q4) Write the code to build a JComboBox named sideDish with no arguments. Then, create the addItem() methods to provide options for "Fries", "Salad", and "Fruit".
To view all questions and flashcards with answers, click on the resource link above. Page 16

Chapter 15: Advanced Gui Topics
Available Study Resources on Quizplus for this Chatper
69 Verified Questions
69 Flashcards
Source URL: https://quizplus.com/quiz/23904
Sample Questions
Q1) The focusGained(FocusEvent) handler is defined in the ____ interface.
A) FocusListener
B) ComponentListener
C) AdjustmentListener
D) ActionListener
Q2) When components in a Swing UI require more display area than they have been allocated, you can use a ____ container to hold the components and allow the user to display the components using scroll bars.
A) JScrollingPane
B) ScrollLayout
C) JPanel
D) JScrollPane
Q3) When you use BorderLayout, you are required to add components into each of the five regions.
A)True
B)False
Q4) Write the statement to establish a GridLayout with three horizontal rows and six vertical columns in a Container named myGrid.
Q5) Describe the two CardLayout constructors.
To view all questions and flashcards with answers, click on the resource link above. Page 17

Chapter 16: Graphics
Available Study Resources on Quizplus for this Chatper
74 Verified Questions
74 Flashcards
Source URL: https://quizplus.com/quiz/23905
Sample Questions
Q1) What parameters does the copyArea() method require?
Q2) Which statement sets the font of a Graphics object named brush to boldFont?
A) Font.setFont = brush
B) setFont = brush(boldFont)
C) brush.setFont(boldFont)
D) Font = setFont(boldFont)
Q3) To create a rectangle with rounded corners, the drawRoundRect() method is used.
Describe the six arguments that are required to create rounded rectangles.
Q4) The ____ method allows you to draw a String in a JFrame window.
A) drawString()
B) setFont()
C) drawLine()
D) setString()
Q5) The ____ method provides information about the system in use.
A) getSystemInfo()
B) getDefaultToolkit()
C) getDefaultControlPanel()
D) getToolkit()
Q6) What are the constructors for the Dimension class?
Q7) What are the three arguments the BasicStroke constructor takes?
To view all questions and flashcards with answers, click on the resource link above. Page 18
Chapter 17: Applets, Images, and Sound
Available Study Resources on Quizplus for this Chatper
72 Verified Questions
72 Flashcards
Source URL: https://quizplus.com/quiz/23906
Sample Questions
Q1) The ____ provides image-manipulation capabilities.
A) Java Speech API
B) Java Media Framework (JMF)
C) Java 3D API
D) Java Advanced Imaging API
Q2) To compile an applet into bytecode, use the ____ command.
A) appletview
B) viewapp
C) javac
D) java
Q3) Which of the following statements will properly code the init() method header?
A) import void init()
B) JApplet void init()
C) JLabel = new init()
D) public void init()
Q4) How is an applet different from a Java application?
Q5) You do not use the java command to execute an applet.
A)True
B)False
Q6) Describe the stop() method.

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