Search test library by skills or roles
⌘ K

Adaface Sample Natural Language Programming Questions

Here are some sample Natural Language Programming questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Word Sense Disambiguation
Solve
You have been provided with a pre-trained BERT model (pretrained_bert_model) and you need to perform Word Sense Disambiguation (WSD) on the word "bat" in the following sentence:
            
            "The bat flew around the room."
            
            You have also been provided with a function called cosine_similarity(vec1, vec2) that calculates the cosine similarity between two vectors.
Which of the following steps should you perform to disambiguate the word "bat" in the given sentence using the BERT model and cosine similarity?
            
            1. Tokenize the sentence and pass it through the pre-trained BERT model.
            2. Extract the embeddings of the word "bat" from the sentence.
            3. Calculate the cosine similarity between the "bat" embeddings and each sense's representative words.
            4. Choose the sense with the highest cosine similarity.
            5. Calculate the Euclidean distance between the "bat" embeddings and each sense's representative words.
            6. Choose the sense with the lowest Euclidean distance.
🧐 Question🔧 Skill

Medium

Word Sense Disambiguation
2 mins
Natural Language Programming
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Word Sense Disambiguation
Natural Language Programming
Medium2 mins
Solve

Adaface questions are trusted by enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great default library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1200+ companies in 75+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
Chat with us
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️