Coforge
Juniper Networks Interview Questions and Answers
Q1. coding question of finding index of 2 nos. having total equal to target in a list, without using nested for loop? l= [2,15,5,7] t= 9 output》》[0,3]
Finding index of 2 numbers having total equal to target in a list without nested for loop.
Use dictionary to store the difference between target and each element of list.
Iterate through list and check if element is in dictionary.
Return the indices of the two elements that add up to target.
Q2. 1) How decision tree works 2) what are the parameters used in OpenCV?
Decision tree is a tree-like model used for classification and regression. OpenCV parameters include image processing and feature detection.
Decision tree is a supervised learning algorithm that recursively splits the data into subsets based on the most significant attribute.
It is used for both classification and regression tasks.
OpenCV parameters include image processing techniques like smoothing, thresholding, and morphological operations.
Feature detection parameters include...read more
Q3. what is random forest, knn?
Random forest and KNN are machine learning algorithms used for classification and regression tasks.
Random forest is an ensemble learning method that constructs multiple decision trees and combines their outputs to make a final prediction.
KNN (k-nearest neighbors) is a non-parametric algorithm that classifies new data points based on the majority class of their k-nearest neighbors in the training set.
Random forest is useful for handling high-dimensional data and avoiding overf...read more
Q4. find unique keys in 2 dictionaries
To find unique keys in 2 dictionaries.
Create a set of keys for each dictionary
Use set operations to find the unique keys
Return the unique keys
Q5. aws ec2 model deployment procedure
AWS EC2 model deployment involves creating an instance, installing necessary software, and deploying the model.
Create an EC2 instance with the desired specifications
Install necessary software and dependencies on the instance
Upload the model and any required data to the instance
Deploy the model using a web server or API
Monitor the instance and model performance for optimization
Q6. overloading concept of oop
Overloading is the ability to define multiple methods with the same name but different parameters.
Overloading allows for more flexibility in method naming and improves code readability.
Examples include defining multiple constructors for a class with different parameter lists or defining a method that can accept different data types as input.
Overloading is resolved at compile-time based on the number and types of arguments passed to the method.
Overloading is different from ove...read more
Top Data Scientist Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month