Quiz Space

Machine Learning Practice · Quiz 1 · 27 Oct 2024 · September 2024 term

Question 4: | | FlightID | Airline | FlightNumber | Origin | Destinat…

Question 4

+3 marksOne correct option
python
>>> import pandas as pd
>>> df = pd.read_csv('dataset.csv')
>>> print(df)
FlightIDAirlineFlightNumberOriginDestinationDelayMinutesDelayReasonCancelledDivertedAircraftTypeTailNumberDistance
01United4558ORDMIA8WeatherTrueFalseBoeing 737N710661031
12Delta8021LAXMIA2Air Traffic ControlTrueTrueAirbus A320N226571006
23Southwest7520DFWSFO14WeatherTrueTrueBoeing 737N956112980
34Delta2046ORDBOS-10NaNFalseFalseBoeing 777N900291408
45Delta6049LAXSEA24Air Traffic ControlFalseTrueBoeing 737N274172298
56Southwest6311LAXJFK-5NaNFalseFalseBoeing 777N926521386
67Southwest4188ORDJFK7WeatherFalseTrueBoeing 777N253821674
78Southwest3179DFWMIA24WeatherFalseTrueBoeing 777N654102931
89American Airlines3613ORDMIA2WeatherFalseFalseAirbus A320N455702337
910Southwest2186LAXBOS25MaintenanceTrueFalseBoeing 777N15724605
1011American Airlines9317JFKMIA-6NaNTrueTrueAirbus A320N549052848
1112American Airlines5251DFWBOS30WeatherFalseFalseAirbus A320N94983131

Based on the above data, answer the given subquestions.

Which option will sort the flights first by `Airline` in ascending order, then by DelayMinutes in descending order?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 4 of 22 in the IIT Madras BS Machine Learning Practice (MLP) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term (IIT M DIPLOMA AN EXAM QDD2 27 Oct 2024). It carries 3 marks.

More questions from this paper

  1. Q1| | FlightID | Airline | FlightNumber | Origin | Destination | DelayMinutes | DelayReason | Cancelled | Diverted | Airc…
  2. Q2| | FlightID | Airline | FlightNumber | Origin | Destination | DelayMinutes | DelayReason | Cancelled | Diverted | Airc…
  3. Q3| | FlightID | Airline | FlightNumber | Origin | Destination | DelayMinutes | DelayReason | Cancelled | Diverted | Airc…
  4. Q5| | FlightID | Airline | FlightNumber | Origin | Destination | DelayMinutes | DelayReason | Cancelled | Diverted | Airc…
  5. Q6Consider the following dataset and transformer pipeline: Based on the above data, answer the given subquestions.
  6. Q7Consider the following dataset and transformer pipeline: Based on the above data, answer the given subquestions.
  7. Q8Which of the following preprocessing techniques helps in handling categorical features in a dataset?
  8. Q9Which of the following imputation strategies can be used for handling missing values?
  9. Q10Which of the following is correct about cross-validation in machine learning?
  10. Q11Which of the following are valid loss functions for SGDClassifier?
  11. Q12Which of the following could be a correct output from the following code?
  12. Q13Consider the following data and code: Which of the following pairs of data points have the second largest Manhattan dis…
  13. Q14Consider the following data and snippet: Which of the following correctly represents the value of transformed_data[2,0]…
  14. Q15Consider the following code where a ‘Pipeline’ is used for feature scaling, polynomial feature transformation, and appl…
  15. Q16You are working on a machine learning project and have received a dataset containing numeric and categorical features. …
  16. Q17Consider the following code snippet: How many components does the PCA reduce the data to, after transformation?
  17. Q18Consider the below code: What will be the output of the code snippet given above?
  18. Q19Figure question
  19. Q20Figure question
  20. Q21Figure question
  21. Q22Figure question