Docsity

PYTHON FOR DATA SCIENCE EXAMINATION QUESTIONS AND CORRECT ANSWER WITH EXPLANATION GRADED, Exams of Data Acquisition

Toggle sidebar
bg1
PYTHON FOR DATA SCIENCE EXAMINATION QUESTIONS
AND CORRECT ANSWER WITH EXPLANATION GRADED
A+ STUDY GUIDE SOUTHERN NEW HAMPSHIRE
UNIVERSITY
1. Python is widely used in data science because it is:
A. Simple and has rich libraries
B. Only for web design
C. Hardware-based
D. A database system
Answer: A
Rationale: Python is easy to use and has powerful data libraries.
2. Which library is used for numerical computing in Python?
A. NumPy
B. Django
C. Flask
D. Tkinter
Answer: A
Rationale: NumPy supports arrays and math operations.
3. Pandas is mainly used for:
A. Data manipulation and analysis
B. Game development
C. Network security
D. Web hosting
Answer: A
Rationale: Pandas handles structured data.
4. A DataFrame in Pandas is:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download PYTHON FOR DATA SCIENCE EXAMINATION QUESTIONS AND CORRECT ANSWER WITH EXPLANATION GRADED and more Exams Data Acquisition in PDF only on Docsity!

PYTHON FOR DATA SCIENCE EXAMINATION QUESTIONS

AND CORRECT ANSWER WITH EXPLANATION GRADED

A+ STUDY GUIDE SOUTHERN NEW HAMPSHIRE

UNIVERSITY

1. Python is widely used in data science because it is: A. Simple and has rich libraries B. Only for web design C. Hardware-based D. A database system Answer: A Rationale: Python is easy to use and has powerful data libraries. 2. Which library is used for numerical computing in Python? A. NumPy B. Django C. Flask D. Tkinter Answer: A Rationale: NumPy supports arrays and math operations. 3. Pandas is mainly used for: A. Data manipulation and analysis B. Game development C. Network security D. Web hosting Answer: A Rationale: Pandas handles structured data. 4. A DataFrame in Pandas is:

A. A 2D table structure B. A function C. A loop D. A chart Answer: A Rationale: Data organized in rows and columns.

5. A Series in Pandas is: A. A one-dimensional array B. A database C. A table D. A plot Answer: A Rationale: Single column structure. 6. NumPy array is: A. Faster than Python lists for numerical operations B. Slower than lists C. A database D. A web tool Answer: A Rationale: Optimized for computation. 7. Matplotlib is used for: A. Data visualization B. Database management C. Networking D. Encryption Answer: A Rationale: Plotting graphs. 8. Seaborn is built on top of:

A. Handling missing values B. Deleting all data C. Encrypting data D. Compressing files Answer: A Rationale: Preparing data for analysis.

13. Missing values in Pandas are represented as: A. NaN B. NULL only C. Zero only D. Empty string only Answer: A Rationale: Not a Number indicator. 14. The function dropna() is used to: A. Remove missing values B. Add data C. Encrypt data D. Plot graphs Answer: A Rationale: Cleans NaN values. 15. fillna() is used to: A. Replace missing values B. Delete columns C. Encrypt data D. Sort data Answer: A Rationale: Fills missing values. 16. head() function returns:

A. First rows of data B. Last rows C. Random rows D. Column names only Answer: A Rationale: Quick data preview.

17. tail() function returns: A. Last rows of data B. First rows C. Middle rows D. Sorted data Answer: A Rationale: End preview. 18. info() function shows: A. Data types and non-null counts B. Graphs C. Missing files D. Encryption status Answer: A Rationale: Dataset summary. 19. describe() function gives: A. Statistical summary B. Graphs C. File paths D. Encryption details Answer: A Rationale: Mean, std, min, max. 20. Index in Pandas is used for:

A. Middle value B. Average C. Sum D. Random value Answer: A Rationale: Central value.

25. mode() returns: A. Most frequent value B. Average C. Middle value D. Random value Answer: A Rationale: Most common element. 26. Matplotlib plot() is used for: A. Line graph B. Database C. Encryption D. File handling Answer: A Rationale: Basic plotting. 27. scatter() is used for: A. Relationship between variables B. Sorting data C. Encrypting data D. File storage Answer: A Rationale: Correlation visualization. 28. bar() is used for:

A. Category comparison B. Time series C. Encryption D. Sorting Answer: A Rationale: Bar chart creation.

29. histogram shows: A. Data distribution B. File size C. Code structure D. Encryption Answer: A Rationale: Frequency distribution. 30. legend() is used to: A. Label chart elements B. Delete data C. Encrypt data D. Store files Answer: A Rationale: Chart explanation. 31. title() function adds: A. Chart title B. Data deletion C. Encryption D. Sorting Answer: A Rationale: Label visualization. 32. xlabel() sets:

A. Model learns noise B. Model is simple C. Model is empty D. Model is deleted Answer: A Rationale: Poor generalization.

37. Underfitting means: A. Model too simple B. Model perfect C. Model complex D. Model encrypted Answer: A Rationale: Poor learning. 38. Supervised learning uses: A. Labeled data B. Unlabeled data C. Random data D. No data Answer: A Rationale: Input-output mapping. 39. Unsupervised learning uses: A. Unlabeled data B. Labeled data C. Images only D. Text only Answer: A Rationale: Pattern discovery. 40. Classification is:

A. Predicting categories B. Predicting numbers C. Sorting files D. Encrypting data Answer: A Rationale: Label prediction.

41. Regression is: A. Predicting continuous values B. Categories C. Encryption D. Sorting Answer: A Rationale: Numeric prediction. 42. Accuracy measures: A. Correct predictions B. Speed only C. Memory usage D. File size Answer: A Rationale: Model performance. 43. Precision measures: A. Correct positive predictions B. Total accuracy C. Data size D. Speed Answer: A Rationale: True positives ratio. 44. Recall measures:

A. K-Nearest Neighbors B. Kernel Neural Network C. Key Node Network D. Known Node Name Answer: A Rationale: Classification algorithm.

49. Logistic regression is used for: A. Classification B. Regression only C. Encryption D. Storage Answer: A Rationale: Binary classification. 50. Linear regression predicts: A. Continuous values B. Categories C. Text D. Images Answer: A Rationale: Numeric prediction. 51. Correlation measures: A. Relationship between variables B. File size C. Speed D. Encryption Answer: A Rationale: Variable association. 52. Positive correlation means:

A. Both increase together B. One increases, other decreases C. No relation D. Random Answer: A Rationale: Direct relationship.

53. Negative correlation means: A. Opposite movement B. Same movement C. No relation D. Random Answer: A Rationale: Inverse relationship. 54. Standard deviation measures: A. Data spread B. Average C. Median D. Mode Answer: A Rationale: Variability. 55. Variance is: A. Square of standard deviation B. Average C. Median D. Mode Answer: A Rationale: Spread measure. 56. Feature engineering is:

A. Combine DataFrames B. Delete data C. Encrypt data D. Plot graphs Answer: A Rationale: Data joining.

61. concat() is used to: A. Append data B. Delete data C. Encrypt data D. Sort data Answer: A Rationale: Data stacking. 62. pivot_table is used for: A. Summary tables B. Encryption C. Sorting D. Deletion Answer: A Rationale: Aggregation tool. 63. apply() function is used for: A. Function application B. Deleting data C. Encrypting data D. Sorting Answer: A Rationale: Row/column operations. 64. lambda function is:

A. Anonymous function B. Loop C. Class D. Database Answer: A Rationale: Short function.

65. Python loops include: A. for and while B. if only C. switch only D. goto Answer: A Rationale: Iteration structures. 66. if statement is used for: A. Decision making B. Looping C. Storing data D. Plotting Answer: A Rationale: Conditional logic. 67. list in Python is: A. Ordered collection B. Database C. Chart D. Function Answer: A Rationale: Data structure. 68. tuple is:

A. Load NumPy B. Delete NumPy C. Encrypt NumPy D. Compile NumPy Answer: A Rationale: Library alias.

73. Python comments start with: A. # B. // C. D. ** Answer: A Rationale: Comment syntax. 74. print() is used for: A. Output display B. Data deletion C. Encryption D. Sorting Answer: A Rationale: Console output. 75. input() function is used for: A. User input B. Output C. Encryption D. Plotting Answer: A Rationale: Data entry. 76. exception handling uses:

A. try-except B. for-if C. while-switch D. do-while Answer: A Rationale: Error handling.

77. dataframe.shape returns: A. Rows and columns B. Data types C. File size D. Index only Answer: A Rationale: Dataset dimensions. 78. dataframe.columns shows: A. Column names B. Rows C. Values only D. Index only Answer: A Rationale: Structure info. 79. machine learning pipeline includes: A. Data prep, training, testing B. Only coding C. Only storage D. Only visualization Answer: A Rationale: Full ML process. 80. main goal of Python in data science is: