ISM 3541 EXAM 1
Official Practice Exam | 2026/2027 Edition | Prof. Kerwin
75 Questions | 90 Minutes | 80% Passing Score | Business Application Development
Table of Contents
Section 1: Java Fundamentals and Syntax . . . . Questions 1 - 18
Section 2: Control Structures and Methods . . . . Questions 19 - 34
Section 3: Object-Oriented Programming Concepts . . . . Questions 35 - 50
Section 4: Arrays and String Processing . . . . Questions 51 - 63
Section 5: Exception Handling and File I/O . . . . Questions 64 - 75
Instructions
This practice exam contains 75 multiple-choice questions covering all five content areas of ISM 3541 Exam 1 at
Florida State University. Each question presents a realistic programming scenario followed by four answer
choices. Select the single best answer for each question. A correct answer and rationale are provided
immediately after each question for study purposes. To pass this exam, you must score at least 80% (60 of 75
questions correct). Allocate approximately 90 minutes to complete all questions under timed conditions for the
most realistic practice experience. Review the rationales carefully, especially for questions you answer incorrectly,
to identify areas requiring further study.
,Section 1: Java Fundamentals and Syntax | 2026/2027
Q1 Question 1 of 75
A student is writing a Java program and declares a variable with the statement: int score = 95;. The
student later tries to assign score = "ninety-five";. The compiler generates an error because Java
enforces which concept?
A. Weak typing that allows any assignment
B. Type inference that determines the type at runtime
C. Dynamic typing that converts Strings automatically
D. Strong typing that prevents assigning a String to an int variable
Correct Answer: D
Rationale:
Java is a strongly typed language, meaning variables cannot be reassigned to values of an incompatible type.
An int variable cannot hold a String reference, unlike in weakly typed languages.
Q2 Question 2 of 75
A programmer compiles a Java source file named HelloWorld.java. The Java compiler produces a
file with which extension?
A. .obj
B. .exe
C. .bytecode
D. .class
Correct Answer: D
Rationale:
The Java compiler (javac) compiles .java source files into .class bytecode files. The JVM then interprets or
JIT-compiles this bytecode at runtime, unlike .exe which is native machine code.
,Q3 Question 3 of 75
A developer reviews the following code snippet: final double PI = 3.14159;. The keyword final
indicates which property of the variable PI?
A. PI is a class-level variable shared by all instances
B. PI cannot be reassigned after initialization
C. PI can only be accessed from the same package
D. PI is automatically initialized to zero
Correct Answer: B
Rationale:
The final keyword makes a variable a constant that cannot be reassigned after initialization. It does not control
access visibility or make the variable class-level (that would be static).
Q4 Question 4 of 75
A teaching assistant explains that Java uses the Java Virtual Machine to execute programs. The
primary advantage of the JVM is which capability?
A. Converting Java code directly to native machine language
B. Direct execution of Java source code without compilation
C. Platform independence through bytecode execution on any JVM-equipped system
D. Running multiple operating systems simultaneously
Correct Answer: C
Rationale:
The JVM provides platform independence by executing compiled bytecode on any system with a compatible
JVM implementation. Java source code must first be compiled to bytecode; the JVM does not execute source
directly.
, Q5 Question 5 of 75
A student encounters a syntax error when writing System.out.println("Total: " + 5 + 10);. The
program outputs Total: 510 instead of Total: 15. The student can fix this by making which change?
A. Using parentheses to add the numbers first: System.out.println("Total: " + (5 + 10));
B. Removing the quotation marks from the string literal
C. Using System.out.print instead of println
D. Declaring the numbers as String types
Correct Answer: A
Rationale:
String concatenation proceeds left-to-right, so "Total: " + 5 becomes "Total: 5", then + 10 appends "10".
Adding parentheses forces numeric addition first: (5+10) = 15, then concatenation produces "Total: 15".
Q6 Question 6 of 75
A programmer writes the following declaration: char letter = 'A';. In Java, the char data type
occupies how many bits of memory?
A. 64 bits
B. 8 bits
C. 32 bits
D. 16 bits
Correct Answer: D
Rationale:
Java's char type is 16 bits (2 bytes) because it uses Unicode to represent characters, unlike C/C++ where
char is typically 8 bits. This allows Java to support international character sets.