Quizzes
Search
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Create a Quiz
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Search
Create A Quiz
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Products
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Quizzes
Quizzes
Java Exam 7 November 2014
10 Questions
|
By Kuskus | Updated: Mar 15, 2022
| Attempts: 49
Share
Start
Share on Facebook
Share on Twitter
Share on Whatsapp
Share on Pinterest
Share on Email
Copy to Clipboard
Embed on your website
Question
1
/ 10
0 %
0/100
Score
0/100
1.
Which statement(s) are true? (Choose all that apply.)
Cohesion is the OO principle most closely associated with hiding implementation details
Cohesion is the OO principle most closely associated with making sure that classes knowabout other classes only through their APIs
Cohesion is the OO principle most closely associated with making sure that a class isdesigned with a single, well-focused purpose
Cohesion is the OO principle most closely associated with allowing a single object to beseen as having many types
Submit
Start Quiz
About This Quiz
2.
What's your name?
We’ll put your name on your report, certificate, and leaderboard.
2.
Given:
What is the result?
5 7
5 8
8 7
8 8
Compilation fails
An exception is thrown at runtime
Submit
3.
Given:
What is the result? (Choose all that apply.)
Compilation succeeds
Compilation fails due to an error on line 8
Compilation fails due to an error on line 10
Compilation fails due to an error on line 12
Compilation fails due to an error on line 14
Submit
4.
Given:
What is the result?
Furry bray
Stripes bray
Furry generic noise
An exception is thrown at runtime
Stripes generic noice
Compilation fails
Submit
5.
Given:
What is the result?
Compilation fails
Button key lint nickelnickel lint key button
Nickel button key lintbutton key lint nickel
Nickel button key lintnickel button key lint
Nickel button key lintnickel lint key button
An exception is thrown at runtime
Submit
6.
Given:
2
4
An exception is thrown at runtime
Compilation fails due to an error on line 4
Compilation fails due to an error on line 5
Compilation fails due to an error on line 6
Compilation fails due to an error on line 7
Submit
7.
Given:
What is the result?
-124
-134
-424
-434
-444
Compilation fails
Submit
8.
Which are true? (Choose all that apply.)
It is appropriate to use assertions to validate arguments to methods marked public
It is appropriate to catch and handle assertion errors
It is NOT appropriate to use assertions to validate command-line arguments
It is appropriate to use assertions to generate alerts when you reach code that should notbe reachable
It is NOT appropriate for assertions to change a program’s state
Submit
9.
Which are true about a static nested class? (Choose all that apply.)
You must have a reference to an instance of the enclosing class in order to instantiate it
It does not have access to non-static members of the enclosing class
Its variables and methods must be static
If the outer class is named MyOuter, and the nested class is named MyInner, it can beinstantiated using new MyOuter.MyInner();
It must extend the enclosing class
Submit
10.
Given:
Which could be used to create an appropriate catch block? (Choose all that apply.)
ClassCastException
IllegalStateException
IllegalStateException
IllegalStateException
ExceptionInInitializerError
ArrayIndexOutOfBoundsException
Submit
View My Results
Related Quizzes
Java Ch 5 Quiz
Java Ch 5 Quiz
Loops In Java: Trivia Exam Quiz!
Loops In Java: Trivia Exam Quiz!
Programming 11: Java Assesement Exam
Programming 11: Java Assesement Exam
Thank you for your feedback!
Would you like to edit this question to improve it?
No thanks
Name:
Email:
Oops! Give us more information:
Incorrect Question
Incorrect Answer
Typos
I have a feedback
Submit
Please provide name and email to proceed.
Please provide correct email to proceed.
Please provide feedback.
Please select the option.
All (10)
Unanswered (
)
Answered (
)
Which statement(s) are true? (Choose all that apply.)
Given:What is the result?
Given:What is the result? (Choose all that apply.)
Given:What is the result?
Given:What is the result?
Given:
Given:What is the result?
Which are true? (Choose all that apply.)
Which are true about a static nested class? (Choose all that apply.)
Given:Which could be used to create an appropriate catch block?...
X
OK
X
OK
Cancel
X
OK
Cancel
Back to top
Back to top
Advertisement