Apprentice Engineer Interview Questions

5,558 apprentice engineer interview questions shared by candidates

PHASE 3 - Privacy Settings To support privacy controls you will: Create a new service that the ConversationService will use to check the relationship between two users. Add a new method to the ConversationService that allows users to update their privacy settings. Add logic to check if a user can send a message to another user based on their privacy settings. from enum import Enum class Privacy(Enum): PUBLIC = "PUBLIC" FRIENDS = "FRIENDS" class ConversationService: def set_privacy(self, user_id, privacy): pass class FriendService: def is_friend(self, user_id, friend_id): def add_friend(self, user_id, friend_id): def remove_friend(self, user_id, friend_id):
avatar

SnapUp Apprentice

Interviewed at Snap

3.3
Apr 4, 2024

PHASE 3 - Privacy Settings To support privacy controls you will: Create a new service that the ConversationService will use to check the relationship between two users. Add a new method to the ConversationService that allows users to update their privacy settings. Add logic to check if a user can send a message to another user based on their privacy settings. from enum import Enum class Privacy(Enum): PUBLIC = "PUBLIC" FRIENDS = "FRIENDS" class ConversationService: def set_privacy(self, user_id, privacy): pass class FriendService: def is_friend(self, user_id, friend_id): def add_friend(self, user_id, friend_id): def remove_friend(self, user_id, friend_id):

Viewing 3541 - 3550 interview questions

Glassdoor has 5,558 interview questions and reports from Apprentice engineer interviews. Prepare for your interview. Get hired. Love your job.