| preferred AP College board partner for AP classes
AP Computer Science A/Unit 5: Writing Classes
Start Practice TestPractice Test
About Exam
hard
Ethical Implications of a Recommendation Algorithm
< Prev
Next >

The code segment below is used by a social media company to recommend content to users. Which statement describes a potential social or ethical implication of using this algorithm?

public class ContentRecommendation {
    private ArrayList<Post> posts;
    private User currentUser;
    
    public ArrayList<Post> getRecommendedPosts() {
        ArrayList<Post> recommended = new ArrayList<>();
        
        for (Post post : posts) {
            if (post.getEngagementScore() > 8.0) {
                recommended.add(post);
            }
        }
        
        // Sort by engagement score descending
        recommended.sort((a, b) -> 
            Double.compare(b.getEngagementScore(), a.getEngagementScore()));
        
        return recommended.subList(0, Math.min(10, recommended.size()));
    }
}
A

The algorithm ensures users see the most popular content, guaranteeing high-quality posts

B

The algorithm prioritizes highly engaging content, which may create filter bubbles and promote addictive usage patterns

C

The algorithm prevents spam by only showing posts with high engagement scores

D

The algorithm promotes diverse content by limiting results to 10 posts maximum

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy