Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.


Overall MCQs for Reference

  1. Which technique is commonly used for converting categorical variables into a numerical format in machine learning?
    a. Normalization
    b. One-hot encoding
    c. Feature scaling
    d. Dimensionality reduction
    Answer: b. One-hot encodingsaidatascience+2​
  2. What does label encoding assign to categorical values?
    a. Floating point values
    b. Unique integer codes
    c. One-hot vectors
    d. Boolean values
    Answer: b. Unique integer codesgeeksforgeeks​
  3. Which encoding technique is best suited for nominal categorical features?
    a. Ordinal encoding
    b. Hash encoding
    c. One-hot encoding
    d. Frequency encoding
    Answer: c. One-hot encodinggeeksforgeeks+1​
  4. Ordinal encoding is most appropriate when:
    a. Categories have no order
    b. Categories have an inherent order
    c. Data is continuous
    d. Data is binary
    Answer: b. Categories have an inherent ordergeeksforgeeks​
  5. What is the primary limitation of label encoding on nominal categorical features?
    a. It loses category names
    b. It introduces an artificial ordering
    c. It creates too many columns
    d. It makes data redundant
    Answer: b. It introduces an artificial orderinggeeksforgeeks​
  6. Which encoding strategy creates as many new columns as there are unique values in the categorical feature?
    a. Label encoding
    b. Frequency encoding
    c. One-hot encoding
    d. Binary encoding
    Answer: c. One-hot encodingsaidatascience+1​
  7. When should frequency encoding be used?
    a. When categories have many unique values
    b. For ordinal data
    c. For binary features only
    d. When categories have a clear hierarchy
    Answer: a. When categories have many unique valuesgeeksforgeeks​
  8. What does binary encoding transform categorical data into?
    a. Boolean arrays
    b. Hexadecimal codes
    c. Binary bit strings
    d. Frequency counts
    Answer: c. Binary bit stringsgeeksforgeeks​
  9. What is a common advantage of using hash encoding?
    a. Preserves category order
    b. Deals with high cardinality
    c. Expands dataset width
    d. Always improves model accuracy
    Answer: b. Deals with high cardinalitygeeksforgeeks​
  10. Which encoder splits categorical features into multiple binary columns and uses hashing for mapping?
    a. Label Encoder
    b. Frequency Encoder
    c. Hash Encoder
    d. Ordinal Encoder
    Answer: c. Hash Encodergeeksforgeeks​
  11. What is the biggest risk with one-hot encoding on features with high cardinality?
    a. Data loss
    b. Overfitting
    c. Curse of dimensionality
    d. Decoding errors
    Answer: c. Curse of dimensionalitysaidatascience+1​
  12. Which of the following is NOT an encoding method?
    a. Label encoding
    b. One-hot encoding
    c. Min-max scaling
    d. Frequency encoding
    Answer: c. Min-max scalingsaidatascience+1​
  13. For which data types is binary encoding typically used?
    a. Continuous
    b. Integer
    c. High cardinality categorical
    d. Boolean
    Answer: c. High cardinality categoricalgeeksforgeeks​
  14. What does ordinal encoding do to the categories?
    a. Groups them
    b. Assigns binary values
    c. Assigns ordered integers
    d. Assigns random numbers
    Answer: c. Assigns ordered integersgeeksforgeeks​
  15. Which method is vulnerable to creating accidental relationships between categories?
    a. One-hot encoding
    b. Ordinal encoding
    c. Frequency encoding
    d. Target encoding
    Answer: b. Ordinal encodinggeeksforgeeks​
  16. In one-hot encoding, the sum of each row over encoded columns for a feature is:
    a. Double the number of unique categories
    b. Equal to 1
    c. Variable
    d. Always zero
    Answer: b. Equal to 1saidatascience+1​
  17. Which package in Python provides OrdinalEncoder for ordinal encoding?
    a. pandas
    b. numpy
    c. scikit-learn
    d. seaborn
    Answer: c. scikit-learngeeksforgeeks​
  18. What is a drawback of frequency encoding?
    a. Incompatible with tree-based models
    b. Can leak target information if not applied properly
    c. Requires unique integers for each value
    d. Increases feature dimensionality
    Answer: b. Can leak target information if not applied properlygeeksforgeeks​
  19. What does hashing encoding NOT guarantee for categories?
    a. Unique integer output
    b. Reverse mapping capability
    c. Fixed-length encoding
    d. Suitability for large data
    Answer: b. Reverse mapping capabilitygeeksforgeeks​
  20. When is target encoding used?
    a. For continuous variables
    b. To add Gaussian noise
    c. To encode categories based on target mean
    d. Only for image data
    Answer: c. To encode categories based on target meangeeksforgeeks​
  21. Which encoding would be appropriate for the variable “education level” (e.g., high school < college < graduate)?
    a. One-hot encoding
    b. Ordinal encoding
    c. Label encoding
    d. Frequency encoding
    Answer: b. Ordinal encodinggeeksforgeeks​
  22. Which encoding can potentially cause multicollinearity among features?
    a. One-hot encoding
    b. Label encoding
    c. Target encoding
    d. Frequency encoding
    Answer: a. One-hot encodingsaidatascience+1​
  23. Which type of encoding handles cases of unseen categories in the test set efficiently?
    a. One-hot encoding
    b. Label encoding
    c. Hash encoding
    d. Frequency encoding
    Answer: c. Hash encodinggeeksforgeeks​
  24. When are integer encoders inappropriate to use?
    a. For ordinal categories
    b. For nominal categories
    c. For binary features
    d. For continuous features
    Answer: b. For nominal categoriesgeeksforgeeks​
  25. Binary encoding is a combination of which two techniques?
    a. One-hot and frequency encoding
    b. Label and hash encoding
    c. One-hot and label encoding
    d. Hash and label encoding
    Answer: d. Hash and label encodinggeeksforgeeks​
  26. Which kind of feature encoding is best when you need to reduce the curse of dimensionality from one-hot encoding?
    a. Label encoding
    b. Binary encoding
    c. Ordinal encoding
    d. Label binarizer
    Answer: b. Binary encodinggeeksforgeeks​
  27. Which method represents categorical values as the count or proportion of each class?
    a. Frequency encoding
    b. Ordinal encoding
    c. Target encoding
    d. Label encoding
    Answer: a. Frequency encodinggeeksforgeeks​
  28. One-hot encoding is most suitable for variables that:
    a. Have natural ordering
    b. Are numeric
    c. Are nominal
    d. Contain only missing values
    Answer: c. Are nominalsaidatascience+1​
  29. What is the main challenge in using hashing encoders?
    a. Too many columns
    b. Possible hash collisions
    c. Slow performance
    d. Requires label order
    Answer: b. Possible hash collisionsgeeksforgeeks​
  30. What does target encoding risk introducing?
    a. Irrelevant binary codes
    b. Target leakage
    c. Duplicate columns
    d. Loss of information
    Answer: b. Target leakagegeeksforgeeks​
  31. What is the output data type of an integer encoder?
    a. Boolean
    b. Integer
    c. String
    d. Float
    Answer: b. Integergeeksforgeeks​
  32. In what scenario would one-hot encoding be discouraged?
    a. Low cardinality categorical features
    b. High cardinality categorical features
    c. Binary categorical features
    d. Ordinal features
    Answer: b. High cardinality categorical featuressaidatascience+1​
  33. What is a common disadvantage shared by both label and ordinal encoding?
    a. Dimensionality curse
    b. Introduce false ordinal relationships
    c. Too many NaNs
    d. Computational inefficiency
    Answer: b. Introduce false ordinal relationshipsgeeksforgeeks​
  34. Frequency encoding encodes a category as:
    a. Index of occurrence
    b. Its probability in data
    c. A string hash value
    d. One-hot bit
    Answer: b. Its probability in datageeksforgeeks​
  35. Which encoder is NON-deterministic with respect to the category labels themselves?
    a. One-hot encoder
    b. Hash encoder
    c. Label encoder
    d. Ordinal encoder
    Answer: b. Hash encodergeeksforgeeks​
  36. What is a key issue with using target encoding on small data sets?
    a. Increased speed
    b. Underfitting
    c. Severe overfitting
    d. NaN values
    Answer: c. Severe overfittinggeeksforgeeks​
  37. Which package provides BinaryEncoder in Python?
    a. scikit-learn
    b. category_encoders
    c. numpy
    d. keras
    Answer: b. category_encodersgeeksforgeeks​
  38. Which statement about hashing encoding is correct?
    a. Always produces the same mapping for a given category
    b. Order of output columns is meaningful
    c. Multiple categories can map to the same hash value
    d. Reverse decoding is always possible
    Answer: c. Multiple categories can map to the same hash valuegeeksforgeeks​
  39. Which encoding technique does not provide for synchronization in data transmission?
    a. NRZ-L
    b. RZ
    c. NRZ-I
    d. Manchester
    Answer: a. NRZ-Lgpberhampur​
  40. In what encoding scheme does one amplitude represent a 1 bit and zero amplitude represents a 0 bit (or vice versa)?
    a. Unipolar
    b. Polar
    c. Bipolar
    d. Biphase
    Answer: a. Unipolarexamradar​
  41. The scheme that substitutes eight consecutive zeros with 000VB0VB is:
    a. B4B8
    b. HDB3
    c. B8ZS
    d. Manchester
    Answer: c. B8ZSgpberhampur​
  42. Which encoding technique uses positive, negative, and zero amplitudes?
    a. Unipolar
    b. Polar
    c. Bipolar
    d. RZ
    Answer: c. Bipolarexamradar+1​
  43. Which type of encoding is most suitable for data with an underlying ordinal relation but irregular spacing?
    a. Hash encoding
    b. Label encoding
    c. Ordinal encoding
    d. Target encoding
    Answer: c. Ordinal encodinggeeksforgeeks​
  44. In one-hot encoding, what is a key characteristic of the resulting data matrix?
    a. Sparse and binary
    b. Dense and integer
    c. Multicollinear and float
    d. No missing values
    Answer: a. Sparse and binarysaidatascience+1​
  45. Which is a potential danger of manual mapping of categories to integers without considering data distribution?
    a. Losing randomization
    b. Bias introduction
    c. Speed improvement
    d. Efficient computation
    Answer: b. Bias introductiongeeksforgeeks​
  46. What is the effect of applying one-hot encoding on a binary variable?
    a. Expands it to three columns
    b. Keeps it as one column
    c. Expands it to two columns
    d. Binarizes all features
    Answer: c. Expands it to two columnssaidatascience+1​
  47. Label encoding is inappropriate for which type of variable?
    a. Ordinal
    b. Nominal
    c. Binary
    d. Numeric
    Answer: b. Nominalgeeksforgeeks​
  48. Which encoding method does not suffer from high memory usage with high cardinality features?
    a. One-hot encoding
    b. Hash encoding
    c. Label encoding
    d. Dummy encoding
    Answer: b. Hash encodinggeeksforgeeks​
  49. Which is the best practice when encoding categorical features before applying tree-based machine learning models?
    a. One-hot encoding always
    b. Only use label encoding for nominal data
    c. Experiment with various encoding methods
    d. Ignore encoding
    Answer: c. Experiment with various encoding methodsgeeksforgeeks​
  50. What should you do if unseen categories appear during the prediction phase after encoding?
    a. Fail the model
    b. Map to a default value or use encoding methods that can handle the unknown
    c. Assign random values
    d. Discard those samples
    Answer: b. Map to a default value or use encoding methods that can handle the unknowngeeksforgeeks​
  1. https://saidatascience.com/data-handling-and-preprocessing/
  2. https://www.examveda.com/data-science/practice-mcq-question-on-data-science-miscellaneous/?page=2
  3. https://www.igmguru.com/blog/machine-learning-mcqs
  4. https://www.geeksforgeeks.org/machine-learning/feature-encoding-techniques-machine-learning/
  5. http://www.gpberhampur.org/BerhampurPolytechnic/StudyMaterial/CSE/DCCN.pdf
  6. https://examradar.com/data-communication-digital-digital-encoding-methods-unipolar-bipolar-polar-mcqs/
  7. https://siteforinfotech.com/mcq-questions-on-encoding-and-modulation/
  8. https://examradar.com/mcqs/data-communication-networking-mcqs/encoding-modulation-techniques-data-communication-and-networking-multiple-choice-questions-answers-mcqs/
  9. https://www.sanfoundry.com/1000-data-science-questions-answers/
  10. https://testbook.com/objective-questions/mcq-on-encoder–5eea6a1439140f30f369f278
  11. https://www.scribd.com/document/856379688/Data-Science-100-MCQs
  12. https://www.sanfoundry.com/1000-data-structure-questions-answers/
  13. https://www.gyansetu.in/blog/data-science-objective-type-mcq-quiz-interview-preparation/
  14. https://www.youtube.com/watch?v=W0y-7R8J1go
  15. https://www.placementpreparation.io/mcq/data-science/
  16. https://www.studocu.com/in/document/institute-of-management-technology-ghaziabad/mba-executive/mcq-on-data-science-part-2/67222456
  17. https://www.sanfoundry.com/1000-digital-communications-questions-answers/
  18. https://testbook.com/question-answer/encoding-technique-is-selected-on-the-basis-of–5ffdd0c1f0d58ffe784d5c0d
  19. https://www.youtube.com/watch?v=S3_X22iVQaI
  20. https://www.scribd.com/document/491146548/CH-4-Digital-Transmission-Media-Multiple-Choice-Questions-and-answers-MCQ-PDF-Data-Communication-and-Networking-pdf

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!