Search Your Question...!
Git: Stashing changes - Basic (Java)
Welcome to Git: Stashing changes - Basic (Java).
This question is used to evaluate your skills on stashing the
changes in Git.
For this, you will be evaluated based on the following
operations. The remote repository has been pre-configured into your local git
repository.
- Your
local git repository will be linkedlist_java.
- Push
the master branch of local git repository to the remote repository.
- Create
a new branch with the name new_branch.
- Make
a change to the Java program file (do not remove it), make a commit and
push the branch.
- Make a few more changes to the Java program file and stash those changes.
FOOD FEST Using Python
There are N number of boxes arranged in a single queue. Each box has an integer I written on it. From the given queue, the participant has to select two contiguous subsequences A and B of the same size. The selected subsequences should be such that the summation of the product of the boxes should be maximum. The product is not calculated normally though. To make the game interesting, the first box of subsequence A is to be multiplied by the last box of subsequence B. The second box of subsequence A is to be multiplied by the second last box of subsequence B and so on. All the products thus obtained are then added together.
If the participant is able to find the correct such maximum summation, he/she will win the game and will be awarded the food voucher of the same value.
Note: The subsequences A and B should be disjoint.
Rajesh Repair & Services
Rajesh Repair and Service in Mumbai
Machine Learning Using scikit-learn MCQ's
1. Which of the following utility of Pandas can be used to read from Oracle database?
View Answerread_sql
2. What do the methods starting with fetch, of sklearn.datasets module do?
View AnswerIt downloads a specific dataset from a library.
3. Which of the following function is used for loading famous iris dataset from sklearn.datasets?
View Answerload_iris()
4. Which of the following Python library is used for Machine Learning?
View AnswerScikit-Learn
5. Which of the following module of sklearn contains popular datasets, which are processed?
View Answerdatasets
Find the Winner using Python
At the beginning of the game, someone will call out "Even" or "Odd". The first move depends on which is called. If "Even" is called, the player's top cards are flipped so they can see the face value. If instead "Odd" is called, the top card is removed from each deck and discarded, then each flips her next card. Andrea subtracts the value of Maria's card from her own and adds the result to her score. Likewise, Maria subtracts the value of Andrea's card from her own and adds the result to her score.
From this point forward, each alternately discards then flips a card. Each time two cards are flipped, the players' scores are computed as before. Once all the cards have been played, whoever has the most points wins.
As an example, Maria's cards, face down, are [3, 5, 6] and Andrea's are [4, 5, 7]. After calling "Even" at random, the game begins. The following table represents game play with cumulative score at the bottom. Maria's score is -2, Andrea's is +2 so Andrea wins.
Area of Triangle using Javascript
You are given 3 sets of coordinates that form a triangle. Write code to find the area of the triangle enclosed by those coordinates.
For example, the 3 points have coordinates given as x = [0, 3, 6] and y = [0, 3, 0], aligned by index, so the 3 coordinates are [0,0], [3,3], [6,0]. The height of the triangle is 3, and the width is 6, so the area of the triangle is 6 * 3 / 2 = 9. All resulting areas will be whole numbers. Not all triangles will contain a right angle.
Image Classification MCQ's
1. Identify the unstructured data from the following
View Answerboth image and Video clip
2. Which preprocessing technique is used for dimensinality reduction?
View AnswerSVD
3. Technique used to evaluate a classifier by dividing the data set into train set to train the classifier and test set to test the same.
View Answercross validation
4. True Negative is when
View Answerpredic are and actual negative
5. True Positive is when
View Answerpredic are and actual not negative
Shifting Strings using R Language
We define the following operations on a string:
- Left
Shift:
A single circular rotation of the string in which the first character
becomes the last character and all other characters are shifted one index
to the left. For example, abcde becomes bcdea after
one left shift and cdeab after two left shifts.
- Right
Shift:
A single circular rotation of the string in which the last character
becomes the first character and all other characters are shifted one index
to the right. For example, abcde becomes eabcd after
one right shift and deabc after two right shifts.