
CMSC 131 Quiz
Authored by Matt Weber
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
73 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What was the topic on Monday, September 23, 2019, related to software development?
StringBuffers
Returning Values
Software Development
Constructors
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following topics was covered on Wednesday, September 18, 2019?
Nested Loops
Floating-Point Calculations
Uninitialized Variables
Short-Circuiting
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the .equals() method in Java?
To compare two objects for equality
To add two numbers
To print a message to the console
To terminate a loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "this" keyword refer to in Java?
The current object
A static method
A local variable
A global constant
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of a "finally" block in exception handling?
To execute code after a try-catch block, regardless of whether an exception was thrown
To catch exceptions
To declare a variable
To initialize an array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an immutable class in Java?
A class whose objects cannot be modified after creation
A class that can be extended
A class with only static methods
A class that implements an interface
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the ternary operator in Java?
To perform a conditional operation in a single line
To declare a loop
To define a class
To handle exceptions
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?