Java Interview Guide : 200+ Interview Questions and Answers - What is Cohesion?

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does cohesion in a class refer to?
How related the responsibilities of a class are
The speed at which a class executes
The amount of data a class can handle
The number of methods in a class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is the 'download and store' class considered to have low cohesion?
It is too complex to understand
It has too few methods
It uses too many external libraries
It handles multiple unrelated responsibilities
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a responsibility of the 'download and store' class?
Storing data into a database
Parsing data
Rendering data on a webpage
Downloading data from the Internet
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can cohesion be improved in the 'download and store' example?
By reducing the number of lines of code
By splitting responsibilities into separate classes
By adding more methods to the class
By using a different programming language
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main responsibility of the 'Internet downloader' class?
Rendering data on a webpage
Downloading data from the Internet
Storing data into a database
Parsing data
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the benefit of having a 'database storer' class?
It can handle multiple types of databases
It focuses solely on storing data into a database
It can parse and store data simultaneously
It reduces the need for a database
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the 'download and store' class in a high cohesion design?
To parse data from the Internet
To directly interact with the database
To create instances of other classes and coordinate their actions
To handle all responsibilities related to data processing
Similar Resources on Wayground
4 questions
Multi-Paradigm Programming with Modern C++ - Class and Structs

Interactive video
•
University
8 questions
Multi-Paradigm Programming with Modern C++ - Class and Structs

Interactive video
•
University
6 questions
Design Microservices Architecture with Patterns and Principles - Apache Kafka Cluster Architecture

Interactive video
•
University
3 questions
PM urges unity against militants in run up to US withdrawal

Interactive video
•
University
2 questions
CompTIA Security+ Certification SY0-601: The Total Course - Data Types and Roles

Interactive video
•
University
2 questions
Risk Management for Cyber Security Managers - Risk Management Scope and Roles

Interactive video
•
University
8 questions
Java Interview Guide : 200+ Interview Questions and Answers - MultiThreading - Need for Threads and Creating Threads

Interactive video
•
University
4 questions
Digital Surveillance in a Post-Roe Era

Interactive video
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University