
Quiz 5

Quiz
•
Computers
•
University
•
Medium
Farah Habib
Used 5+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Exceptions allow code to indicate an error occurred without specifying the details of handling that error. This is ____.
Abstraction
Inheritance
Encapsulation
Polymorphism
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The keyword used to produce a new Exception is ____.
handle
launch
start
throw
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following exception does not need to be caught:
ClassNotFoundException
FileNotFoundException
IOException
NullPointerException
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Within Java, files are represented as ____.
streams
exceptions
fountains
writer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Implementing the ____ interface allows objects of a class to be written/read directly to/from files.
Writable
Comparable
Implementable
Serializable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following classes writes binary data to a file?
DataInputStream
DataOutputStream
Filewriter
PrintWriter
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming a class is properly implemented, if x.hashCode() == y.hashCode(), then ____.
x.equals(y) == true
x.equals(y) == false
It is uncertain
NullPointerException
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x.compareTo(y) returns a negative number, then ____.
x.hashCode() < y.hashCode()
x.hashCode() > y.hashCode()
x.hashCode() == y.hashCode()
There is no correlation between compareTo() and hashCode()
Similar Resources on Wayground
11 questions
Final Keamanan Komputer / Sistem Keamanan Jaringan

Quiz
•
University
8 questions
Tut11 - Exceptions

Quiz
•
University
9 questions
Cryptocurrency

Quiz
•
University
10 questions
DEBUG THE CODE

Quiz
•
University
10 questions
Information Coding Scheme

Quiz
•
1st Grade - University
8 questions
FST Class 2023- Quiz 4

Quiz
•
University
5 questions
Python 04112023

Quiz
•
University
12 questions
Quizz Cours 1 ADA

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University