Applied Machine Learning Assessment Test ArticleVideos ArticleVideos How will you assign 4 to a variable ‘num’ and ‘Robin’ to another variable ‘name’? num = 4 Name = Robin Robin = name 4 = num ‘Robin’ = name 4 = num num = 4 Name = ‘Robin’ ArticleVideos Select the right code to get the following output: p y t h o n for i in "python": print(i) for i in "python": print(1) for i in print("python") for i == "python": print(i) ArticleVideos Read the following pseudo code and answer the correct option. if age is less than 5 : output is “A” else if age is less than 50 : if age if less than 15 : output is “B” else : output is “C” else : output is “D” The output for Age 40 is “C” The output for Age 90 is “B” The output for Age 10 is “A” The output for Age 55 is “B” ArticleVideos Study the following flowchart and select the correct option. It will return the sum of first five integers It will take input of five numbers and return their sum It will take input of five numbers and return the last number It will take input of five numbers and return the first number ArticleVideos In machine learning, what does classification mean? Validation of a concept that is based on a certain theory Segregation of a set of observations into a number of classes Both ArticleVideos Given below is a scatter plot of two numerical variables X and Y. A new data point, denoted by the star symbol, is likely to belong to which of the two classes. Class A Class B ArticleVideos What will be the output of the following flowchart for a married person with a family size of 3 and earning less than 80,000? 3BHK 2BHK 1BHK None of These ArticleVideos Given below is a loan dataset with customer name, loan amount, loan repayment status and fraud status as its attributes. Which attribute is more important to determine the fraud status? Loan Amount Loan Repaid ArticleVideos A data scientist is trying to build a model to classify images as either containing a cat and dog. He built 3 models for this task. The details of these models’ performance are given below: Model 1 Correctly classified 75% of the images containing a cat. Correctly classified 45% of the images containing a dog. Model 2 Correctly classified 30% of the images containing a cat. Correctly classified 60% of the images containing a dog. Model 3 Correctly classified 80% of the images containing a cat. Correctly classified 22% of the images containing a dog. Which model combination, if used together, will correctly classify at least 50% of the images containing a cat and a dog, respectively? Mode 1, Model 2, and Model 3 Model 2 and Model 3 Model 1 and Model 2 Cannot be determined ArticleVideos Let’s say you want to build a predictive model to detect if a patient has a certain disease or not. You have decided to evaluate your model based on the accuracy score, i.e., ratio of number of correctly predicted cases and the total number of cases in the dataset. What should be the proportion of the target classes in the data used to build the predictive model, give the evaluation metric is accuracy? Data of 20% patients with the disease and 80% of patients without the disease Data of 5% patients with the disease and 95% of patients without the disease Data of 87% patients with the disease and 13% of patients without the disease Data of 52% patients with the disease and 48% of patients without the disease ArticleVideos A data scientist has developed a breast cancer classification model. He wants to predict if the cancer diagnosis is benign or malignant based on several features. He wants to test his model on a dataset of 10,000 observations with 97% of them as benign and the rest as malignant. What should be the expectations from his model? Select the correct option. The model should correctly predict all the malignant cases even if some benign cases are wrongly predicted. The model should correctly predict all the benign cases even if some malignant cases are wrongly predicted. The model should have an accuracy of 90% even if not a single malignant case is predicted correctly. ArticleVideos A variable x contains grades of students from a college. The unique values of x are A, B, C, and D. Select the correct option. x is a nominal variable x is an ordinal variable x is an integer variable None of the above ArticleVideos Select the code which will give the output “Hello World”: a = “Hello” print(a + “World”) print(“Hello” + “World”) a = “Hello” print(a, “World”) print(“Hello” - “World”) ArticleVideos Consider the python list below: A = [23, 58, 49, 99, 120, 256, 1024] What is the result of A[5] – A[1] ? 233 198 97 966 ArticleVideos How can we add a element ‘Jim’ to the list ‘names’? names = [233, ‘Paul’, ‘A34’] names = names + ‘Jim’ names.append(‘Jim’) names.add(‘Jim’) All of the above ArticleVideos What will be the output of the code below? dict = {‘p’:2,’q’:5,’r’:8} print(dict[‘q’]) 'p' 'q':5 Key Error 5 ArticleVideos What will be the output of the variable ‘sum’ in the following code? num = [3,6,1,7,8] sum = 0 for i in num: sum+= i 0 8 30 25 ArticleVideos What will be the output of the code below? import numpy as np np.arange(10) 10 array([10]) array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) ArticleVideos Create a dataframe from the dictionary below: dict ={‘a’:[5,2,8], ‘b’:[8,4,2], ‘c’:[3,4,5]} import pandas as pd pd.DataFrame(dict) import pandas as pd pd.DataFrame[dict] import pandas as pd pd.DataFrame{dict} import pandas as pd pd.DataFrame[(dict)] ArticleVideos How will you find the sum of every row in the dataframe below? Import pandas as pd df = pd.DataFrame({‘a’: [20,30,40], ‘b’: [200, 300, 400]}) df.sum( ) df.sum(axis = 0) df.sum(axis = 2) df.sum(axis = 1) ArticleVideos Thank you for taking our survey. Name:Email:Phone:« Back Next » This article is quite old and you might not get a prompt response from the author. We request you to post this comment on Analytics Vidhya's Discussion portal to get your queries resolved Download PDF