0% found this document useful (0 votes)
22 views24 pages

Manali Ma'am QB Python Updated

Python Quizes

Uploaded by

Dev Mekle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views24 pages

Manali Ma'am QB Python Updated

Python Quizes

Uploaded by

Dev Mekle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Q1. Which of the following statements is true about Python?

a) Python is a compiled language


b) Python is a high-level language
c) Python is primarily used for numerical computation only
d) Python is not suitable for web development

Answer: b
Explanation: Python is a high-level programming language known for its readability and simplicity.

Q2. Which symbol is used for single-line comments in Python?

a) //
b) #
c) –
d) /* */

Answer: b
Explanation: The hash symbol (#) is used for single-line comments.

Q3. What will be the output of the following code snippet?

x=5
y=2
print(x ** y)

a) 10
b) 7
c) 25
d) 3

Answer: c
Explanation: The ** operator in Python represents exponentiation. Therefore, x ** y equals 5 raised
to the power of 2, which is 25.

Q4. Which of the following is a valid Python variable name?

a) 2var
b) _myVar
c) my-var
d) my var

Answer: b
Explanation: Variable names in Python can start with a letter or an underscore (_) followed by
letters, digits, or underscores.

Q5. What does the range() function in Python return?

a) A list of numbers
b) A tuple of numbers
c) A sequence of numbers
d) A dictionary of numbers
Answer: c
Explanation: The range() function in Python returns a generator object that generates a sequence of
numbers.

Q6. Which of the following is not a valid data type in Python?

a) int
b) float
c) char
d) str

Answer: c
Explanation: In Python, there is no separate data type called “char”. Characters are represented as
strings of length 1.

Q7. What does the strip() method do in Python?

a) Removes all leading and trailing spaces from a string


b) Splits a string into a list of substrings
c) Joins multiple strings into one
d) Replaces occurrences of a substring within a string

Answer: a
Explanation: The strip() method in Python removes all leading and trailing whitespace characters
from a string.

Q8. Which of the following statements is true about Python’s variable naming convention?

a) Variables must start with a capital letter.


b) Variables cannot contain numbers.
c) Variable names can include underscores (_).
d) Variable names cannot be longer than 10 characters.

Answer: c
Explanation: Python’s variable naming convention allows the use of underscores (_) to separate
words in variable names, making them more readable.

Q9. What will be the output of the following code snippet?

print(3 * 'abc')

a) abcabcabcabc
b) abcabc
c) abcabcabc
d) Error: cannot multiply sequence by non-int of type ‘str’

Answer: c
Explanation: The expression 3 * ‘abc’ will concatenate the string ‘abc’ three times, resulting in
‘abcabcabc’.

Q10. Which of the following is used to open a file in Python for reading and writing?

a) r+
b) rw
c) a+
d) Both a and c

Answer: d
Explanation: Both the modes ‘r+’ and ‘a+’ can be used to open a file for reading and writing in
Python.

Q11. What does the __init__ method do in Python?

a) It initializes all the variables in a class.


b) It is a constructor method that is automatically called when a new instance of a class is created.
c) It is used to delete an instance of a class.
d) It is a reserved keyword and cannot be used as a method name.

Answer: b
Explanation: The __init__ method is a constructor method in Python that is automatically called
when a new instance of a class is created. It is used to initialize the object’s state.

Q12. Which of the following is NOT a valid way to comment out multiple lines of code in Python?

a) Using triple single quotes (”’ ”’)


b) Using triple double quotes (“”” “””)
c) Using the pound sign (#) at the beginning of each line
d) Using the semicolon (;) at the end of each line

Answer: d
Explanation: Using a semicolon (;) at the end of each line is not a valid way to comment out multiple
lines of code in Python. The correct options are a), b), and c).

Q13. What is the output of the following code snippet?

print(9 / 2)

a) 4.5
b) 4
c) 4.0
d) Error: division by zero

Answer: a
Explanation: In Python 3, division of two integers using the ‘/’ operator results in a float, so the
output will be 4.5.

Q14. Which of the following is NOT a valid data type in Python?

a) tuple
b) array
c) set
d) dictionary

Answer: b
Explanation: In Python, an array is not a built-in data type. However, arrays can be implemented
using libraries like NumPy.

Q15. What does the break statement do in Python?


a) It terminates the program immediately.
b) It breaks out of the current loop and resumes execution at the next statement.
c) It raises an exception.
d) It continues to the next iteration of the loop.

Answer: b
Explanation: The break statement in Python is used to exit the current loop prematurely.

Q16. Which of the following is a mutable data type in Python?

a) tuple
b) string
c) list
d) set

Answer: c
Explanation: Lists are mutable, meaning their elements can be changed after the list is created.

Q17. What will be the output of the following code snippet?

x = 10
y=5
print(x > y and x < 15)

a) True
b) False
c) Error: invalid syntax
d) Error: x and y are not defined

Answer: a
Explanation: The expression x > y and x < 15 evaluates to True because both conditions are True: x is
greater than y and x is less than 15.

Q18. Which of the following statements is true about Python?

a) Python is a statically typed language


b) Python is not suitable for machine learning tasks
c) Python is not an open-source language
d) Python uses indentation to define code blocks

Answer: d
Explanation: Python uses indentation to indicate blocks of code, making it highly readable.

Q19. What does the len() function in Python return?

a) The length of a string


b) The number of elements in a list or tuple
c) The number of keys in a dictionary
d) All of the mentioned

Answer: d
Explanation: The len() function in Python can be used to find the length of strings, lists, tuples,
dictionaries, and other iterable objects.
Q20. Which of the following is the correct way to open a file named “example.txt” in Python for
reading?

a) file = open(“example.txt”, “r”)


b) file = open(“example.txt”, “read”)
c) file = open(“example.txt”, “w”)
d) file = open(“example.txt”, “write”)

Answer: a
Explanation: The correct mode for opening a file for reading in Python is “r”.

Q21. What does the append() method do when used with lists in Python?

a) Adds an element to the end of the list


b) Removes the last element of the list
c) Sorts the elements of the list
d) Reverses the order of elements in the list

Answer: a
Explanation: The append() method adds an element to the end of a list in Python.

Q22. Which of the following is the correct way to define a function in Python?

a) def function_name:
b) function function_name():
c) define function_name():
d) def function_name():

Answer: d
Explanation: In Python, functions are defined using the def keyword followed by the function name
and parentheses.

Q23. What will be the output of the following code snippet?

my_list = [1, 2, 3, 4, 5]
print(my_list[2:4])

a) [1, 2]
b) [3, 4]
c) [2, 3]
d) [2, 4]

Answer: b
Explanation: Slicing in Python returns a sublist containing elements from the specified start index
(inclusive) to the specified end index (exclusive).

Q24. Which of the following is the correct way to import the math module in Python?

a) import math
b) include math
c) use math
d) require math
Answer: a
Explanation: The import keyword is used to import modules.

Q25. Which of the following is not a valid comparison operator in Python?

a) <=
b) =>
c) ==
d) !=

Answer: b
Explanation: The correct comparison operator for “greater than or equal to” is >=.

Q26. What does the pop() method do when used with lists in Python?

a) Removes the first element of the list


b) Removes the last element of the list
c) Removes the element at the specified index
d) Adds an element to the end of the list

Answer: b
Explanation: By default, the pop() method returns and removes the last element of a list.

Q27. Which of the following is true about Python’s None keyword?

a) It represents an empty string


b) It represents the absence of a value
c) It represents infinity
d) It represents a boolean value

Answer: b
Explanation: The None keyword in Python represents the absence of a value, similar to null in other
programming languages.

Q28. What is the output of 10 / 3 in Python?

a) 3.3333
b) 3.0
c) 3
d) 4

Answer: a
Explanation: In Python 3, division (/) always returns a float result, even if the dividend and divisor are
both integers.

Q29. Which of the following is a valid way to create a dictionary in Python?

a) {key1: value1, key2: value2}


b) dict(key1=value1, key2=value2)
c) dict([key1, value1], [key2, value2])
d) Both a and b
Answer: d
Explanation: Dictionaries can be created using curly braces ({}) with key-value pairs separated by
colons (:) or by using the dict function with key-value pairs separated by an equal sign (=).

Q30. What is the output of the following code?

my_string = "Hello World"


print(my_string[::-1])

a) dlroW olleH
b) Hello World
c) World Hello
d) olleH dlroW

Answer: a) dlroW olleH


Explanation: [::-1] is used to reverse a string.

Q31. What is the output of the following code?

print(type(3.5))

a) <class ‘float’>
b) <class ‘int’>
c) <class ‘string’>
d) <class ‘number’>

Answer: a) <class ‘float’>


Explanation: The type() function is used to get the data type of the value. 3.5 is a floating-point
number, hence the type is <class ‘float’>.

Q32. Which of the following is a valid variable name in Python?

a) 1_variable
b) variable_name
c) variable-name
d) None

Answer: b) variable_name
Explanation: A valid variable name must start with a letter or an underscore, followed by letters,
digits, or underscores.

Q33. What is the result of the following expression?

'Hello' == 'hello'

a) True
b) False
c) Error
d) None

Answer: b) False
Explanation: String comparison is case-sensitive. Hence, ‘Hello’ and ‘hello’ are not equal.
Q34. Which among these is based on feedback-based Machine Learning?

i. Supervise Machine Learning

ii. Unsupervised Machine Learning

iii. Semi-supervised Machine Learning

iv. Reinforcement Machine Learning

Answer: 4. Reinforcement Machine Learning

Q35. In how many ways can you analyze data in Data Science?

i. 2

ii. 3

iii. 4

iv. 7

Answer: 3. 4

Q36. Which data analysis is concerned with steps and actions to be taken in the future to obtain a
specific outcome?

i. Predictive data analysis

ii. Descriptive data analysis

iii. Prescriptive data analysis

iv. Diagnostic data analysis

Answer: 3. Prescriptive data analysis

Q37. Which of these functions is not suitable for importing csv files in R?

i. read.csv()

ii. read_excel()

iii. read.table()

iv. Both a and b

Answer: 2. read_excel()

Q38. In which library will you find class() in R programming language?

i. class

ii. stats

iii. base

iv. utils

Answer: 3. base
Q39. In Python, what output can you expect with time.time()

i. Current time in milliseconds only

ii. Past 1 hour time

iii. Current time in milliseconds since midnight of January 1, 1970, GMT

iv. Current time in seconds since midnight of January 1, 1970, GMT

Answer: 3. Current time in milliseconds since midnight of January 1, 1970 GMT

Q40. Identify among the options which is not a core data type

i. Class

ii. Dictionary

iii. Lists

iv. Tuples

Answer: 1. Class

Q41. Which type of statistics uses probability and is suitable to generalize a large data set?

i. Descriptive statistics

ii. Inferential statistics

iii. Both a and b

iv. Statistics is not used for this task

Answer: 2. Inferential statistics

Q42. Which of these actions identifies data properties?

i. Data wrangling

ii. Data mining

iii. Data cleaning

iv. Both a and b

Answer: 2. Data mining

Q43. Why do you sample data for data analysis?

i. To increase the dataset size

ii. To decrease the dataset size

iii. To decrease dimensionality

iv. To select a representative subset of data

Answer: 4. To select a representative subset of data


Q44. Which supervised learning algorithm is preferable for data classification?

i. Random Forest

ii. k-Means

iii. Principal Component Analysis

iv. Hierarchical Clustering

Answer: 1. Random Forest

Q45. Which method will you use to reduce the impact of outliers on the dataset?

i. Data transformation

ii. Data cleaning

iii. Robust scaling

iv. Data processing

Answer: 3. Robust scaling

Q46. Select the commonly used algorithm in data science regression

i. Naive Bayes

ii. k-Means

iii. Logistic Regression

iv. Decision Tree

Answer: 3. Logistic Regression

Q47. Under which rule does Procedural Domain Knowledge fit when considering a rule-based
system?

i. Condition-Action Rule

ii. Production Rule

iii. Meta Rule

iv. Control Rule

v. Both a and b

Answer: 5. Both a and b

Q48. What do you understand by K in the k-Mean algorithm?

i. Number of iterations

ii. Number of attributes

iii. Number of clusters

iv. Number of data


Answer: 4. Number of clusters

Q49. What is the purpose of data munging?

i. Evaluation of model performance

ii. Data visualizations

iii. Preparing data for analysis

iv. Feature selection

Answer: 3. Preparing data for analysis

Q50. What is the critical factor in choosing an appropriate node during tree construction?

i. Attribute with the highest information gain

ii. Attribute with the high information gain and entropy

iii. Attribute with the lowest information gain

iv. Attribute with the high entropy

Answer: 1. Attribute with the highest information gain

Q51. What will be the consequence of the wrong choice of learning rate value in gradient
descent?

i. Slow convergence

ii. Local minima

iii. Oscillations

iv. All of the above

Answer: 4. All of the above

Q52. Which is the correct operation to fix violations in the Red-Black Tree after node deletion?

i. Balancing

ii. Trimming

iii. Recoloring

iv. None of the above

Answer: 3. Recoloring

Q53. Choose the Python data structure responsible for the storage and manipulation of tabular
data in Data Science.

i. Array

ii. List

iii. Dictionary

iv. DataFrame
Answer: 4. DataFrame

Q54. Which type of ML algorithm is a Decision Tree?

i. Supervised Machine Learning

ii. Unsupervised Machine Learning

iii. Semi-supervised Machine Learning

iv. Reinforcement Machine Learning

Answer: 1. Supervised Machine Learning

Q55. Linear regression models are preferable for

i. Interpretation

ii. Predictions

iii. Conclusion

iv. Both a and b

Answer: 2. Predictions

Q56. Which of these is not the Meta Character of Regex in data analytics?

i. *

ii. #

iii. {}

iv. ^

Answer: 2. #

Q57. Which is preferable for text analysis among Python and R?

i. Python, quick storing

ii. R, quick sorting

iii. Python, high-performance data

iv. R, high-performance data

i. 1 and 3

ii. 1 and 4

iii. 2 and 4

iv. 2 and 3

Answer: a. 1 and 3

Q58. What do you understand by ‘Naive’ in Naive Bayes?

i. Independence of variables in the dataset


ii. Based on Bayes theorem

iii. Dependent dataset

iv. Both a and b

Answer: 1. Independence of variables in the dataset

Q59. What do you mean by data science?

A. Dealing with huge amounts of data to find marketing patterns is known as data science

B. Extracting a meaningful insight from the data is what data science is

C. It is a study that deals with a huge amount of all types of data structured, unstructured, or
semi-structured

D. All of the above

Answer: D) All of the above

Explanation:

Data science is the study that deals with the huge amount of all types of data i.e., structured,
unstructured, and semi-structured, to find out the hidden pattern from the data which can be used
for making good marketing strategies, in customer benefit, in better decision making, etc is what
data science is all about.

Q59. What is structured data?

A. Structured data is a type of data that is huge in number and has many inaccurate values

B. Structured data is a type of data that is very less in number and can be stored in proper rows
and columns

C. Structured data is a type of data that has inaccurate values but can be stored in rows and
columns

Answer: B) Structured data is a type of data that is very less in number and can be stored in proper
rows and columns.

Explanation:

Structured data is a type of data that is very less in number and can be stored in proper rows and
columns. We can use simple MYSQL to store the structured data.

Q60. What is unstructured data?

A. Unstructured data is a type of data that is huge in number and has many inaccurate values

B. Unstructured data is a type of data that is very less in number and can be stored in proper
rows and columns

C. Unstructured data is a type of data that has inaccurate values but can be stored in rows and
columns
Answer: A) Unstructured data is a type of data that is huge in number and has many inaccurate
values.

Explanation:

Unstructured data is a type of data that is huge in number and has many inaccurate values and you
can not process it or store it using the traditional form of storing data.

Q61. What is semi-structured data?

A. Semi-structured data is a type of data that is huge in number and has many inaccurate values

B. Semi-structured data is a type of data that is very less in number and can be stored in proper
rows and columns

C. Semi-structured data is a type of data that has inaccurate values but can be stored in rows
and columns

D. Semi-structured data is a type of data which has contained the data of both types i.e.,
structured data and semi-structured data

Answer: D) Semi-structured data is a type of data which has contained the data of both types i.e.,
structured data and semi-structured data.

Explanation:

Semi-structured data is a type of data which has contained the data of both types i.e., structured
data and semi-structured data.

Q62. What is the difference between BI (Business intelligence) and Data science?

A. Data science deals with all types of data whereas BI deals with only structured types of data

B. BI deals with all types of data whereas Data science deals with only structured types of data

C. BI deals with only structured and unstructured types of data but not semi-structured
whereas Data science deals with only structured types of data

D. Data science deals with only structured and unstructured types of data but not semi-
structured whereas BI deals with only structured types of data

Answer: A) Data science deals with all types of data whereas BI deals with only structured types of
data.

Explanation:

Data science deals with all types of data whereas BI deals with only structured types of data.

Q63. Does business intelligence focus on future predictions of data?

A. YES

B. NO

Answer: B) NO

Explanation:
NO, BI only deals with the past and present forms of data it has no relation to making future
predictions.

Q64. Which of the following are the components of data science?

A. Statistics

B. Data expertise

C. Data engineering

D. Visualization

E. Advanced computing

F. All of the above

Answer: D) Visualization

Explanation:

Statistics, Data expertise, Data engineering, Visualization, and Advanced computing are all
components of data science.

Q65. What do you mean by machine learning?

A. ML is a branch of science that deals with data and the processing of data

B. ML is the branch of AI (artificial intelligence) that give machines the power of what a human
can do

C. ML is the branch of AI (artificial intelligence) that only deals with computer programs to
make valuable insight from the data

Answer: B) ML is the branch of AI (artificial intelligence) that give machines the power of what a
human can do.

Explanation:

ML is the branch of AI (artificial intelligence) that give machines the power of what a human can do.

Q66. What are the types of Machine learning?

A. There are three types of machine learning semi-supervised, supervised, and unsupervised

B. There are four types of machine learning semi-supervised, supervised, unsupervised, and
reinforcement

C. There are two types of machine learning supervised and unsupervised

Answer: B) There are four types of machine learning semi-supervised, supervised, unsupervised, and
reinforcement.

Explanation:

There are four types of machine learning semi-supervised, supervised, unsupervised, and
reinforcement.
Q67. Which type of machine learning is defined by using only labeled data to predict some
outcome?

A. Semi-supervised Machine learning

B. Unsupervised Machine learning

C. Supervised Machine learning

D. Reinforcement Machine learning

Answer: C) Supervised Machine learning

Explanation:

Supervised machine learning is defined as using only labeled data to predict some outcome.

Q68. Which type of machine learning is defined by using only unlabelled data to analyze the data?

A. Semi-supervised Machine learning

B. Unsupervised Machine learning

C. Supervised Machine learning

D. Reinforcement Machine learning

Answer: B) Unsupervised Machine learning

Explanation:

Unsupervised machine learning is defined as using only unlabelled data to analyze the data.

Q69. Which type of machine learning is defined by a combination of labeled data and unlabeled
data to analyze the data?

A. Semi-supervised Machine learning

B. Unsupervised Machine learning

C. Supervised Machine learning

D. Reinforcement Machine learning

Answer: A) Semi-supervised Machine learning

Explanation:

Semi-supervised machine learning is defined by a combination of labeled data and unlabelled data to
analyze the data

Q70. Which type of machine learning is feedback-based machine learning?

A. Semi-supervised Machine learning

B. Unsupervised Machine learning

C. Supervised Machine learning

D. Reinforcement Machine learning


Answer: D) Reinforcement Machine learning

Explanation:

Reinforcement Machine learning is feedback-based machine learning.

Q71. How many types of supervised learning are there?

A. 2

B. 3

C. 4

D. 5

Answer: A) 2

Explanation:

There are two types of supervised learning: - Classification and regression.

Q72. Decision tree is a which type of machine learning algorithm?

A. Semi-supervised Machine learning

B. Unsupervised Machine learning

C. Supervised Machine learning

D. Reinforcement Machine learning

Answer: C) Supervised Machine learning

Explanation:

A decision tree is a supervised machine-learning algorithm.

Q73. K- means clustering is a which type of machine learning algorithm?

A. Semi-supervised Machine learning

B. Unsupervised Machine learning

C. Supervised Machine learning

D. Reinforcement Machine learning

Answer: B) Unsupervised Machine learning

Explanation:

K- means clustering is an unsupervised machine learning algorithm.

Q74. What are the four steps of data preparation?

A. Data cleaning>Data reduction>Data transformation>Data integration

B. Data cleaning>Data reduction> Data integration>Data transformation

C. Data reduction> Data cleaning>Data transformation>Data integration


D. Data cleaning> Data transformation> Data reduction>Data integration

Answer: B) Data cleaning>Data reduction> Data integration>Data transformation

Explanation:

Data cleaning>Data reduction> Data integration>Data transformation.

Q75. Processing of raw data to prepare it for some other data is known as ____.

A. Data pre-processing

B. Data mining

C. Data preparation

D. Data transformation

Answer: B) Data mining

Explanation:

Pre-processing is the processing of raw data to prepare it for some other data.

Q76. Which of the following are the applications of data science?

A. Risk detection

B. Image recognition

C. Speech recognition

D. All of the above

Answer: D) All of the above

Explanation:

Risk detection, Image recognition, and Speech recognition all are the application of data science.

Q77. What do you mean by data mesh?

A. A data mesh is a centralized data architecture that organizes the data according to the
industry

B. A data mesh is a decentralized data architecture that organizes the data according to the
industry

C. A data mesh is a decentralized data architecture that organizes the data and processes the
data according to the industry and user needs

Answer: B) A data mesh is a decentralized data architecture that organizes the data according to the
industry.

Explanation:

A data mesh is a decentralized data architecture that organizes the data according to the industry.

Q78. How many types of data mesh are there?


A. 2

B. 4

C. 3

D. 5

Answer: C) 3

Explanation:

There are three types of data mesh are – file-based, event-driven, and query-enabled.

Q79. How many types of data analysis are there in data science?

A. 2

B. 4

C. 3

D. 5

Answer: B) 4

Explanation:

There are four types of data analysis: - Descriptive, diagnostic, Predictive, and Prescriptive.

Q80. Which type of data analysis gives a summary of the raw data set?

A. Descriptive data analysis

B. Diagnostic data analysis

C. Predictive data analysis

D. Prescriptive data analysis

Answer: A) Descriptive data analysis

Explanation:

Descriptive data analysis gives a summary of the raw data set and answers the questions like "what
happened" by looking the past data.

Q81. Which type of data analysis focuses on the question "Why did it happen" and finds the
correlations of the causes?

A. Descriptive data analysis

B. Diagnostic data analysis

C. Predictive data analysis

D. Prescriptive data analysis

Answer: B) Diagnostic data analysis

Explanation:
Diagnostic data analysis focuses on the question "Why did it happen" and find the correlations of the
causes.

Q82. Which type of data analysis focuses on the question "what might happen in the future" and
helps in making predictions about some sort of data?

A. Descriptive data analysis

B. Diagnostic data analysis

C. Predictive data analysis

D. Prescriptive data analysis

Answer: C) Predictive data analysis

Explanation:

Predictive data analysis focuses on the question "what might happen in the future" and helps in
predicting some sort of data.

Q83. Which type of data analysis focuses on the question "what should we do next" and helps in
about the steps we should take to get the particular outcome?

A. Descriptive data analysis

B. Diagnostic data analysis

C. Predictive data analysis

D. Prescriptive data analysis

Answer: D) Prescriptive data analysis

Explanation:

Prescriptive data analysis focuses on the question "What should we do next" and helps in about the
steps we should take to get the particular outcome.

Q84. What do you mean by the model planning phase in the life cycle of data analytics?

A. This phase involves creating data sets for training for testing, production, and training
purposes

B. This phase involves the processing of big raw data

C. This Phase involves the team which is responsible for evaluating the tools

Answer: A) This phase involves creating data sets for training for testing, production, and training
purposes.

Explanation:

The model planning phase involves creating data sets for training for testing, production, and training
purposes.

Q85. What are the common tools for the model planning phase?

A. R's
B. SQL

C. Tableau

D. SAS

E. All of the above

Answer: E) All of the above

Explanation:

The common tools for the model planning phase are: - R's, SQL, Tableau, SAS, and Rapid Miner.

Q86. What does GAN stand for in data science?

A. Generative Advanced Network

B. Generative Adversarial Network

C. General Adversarial Network

D. Generative Adversarial Neural

Answer: B) Generative Adversarial Network

Explanation:

GAN full form is Generative Adversarial Network.

Q87. Who created GAN?

A. Danial Smilkov

B. Shan Carter

C. Yann LeCun

D. Ian J. Goodfellow

Answer: D) Ian J. Goodfellow

Explanation:

GAN was created by Ian J. Goodfellow.

Q88. What is GAN?

A. GAN is a machine learning model in which two neural networks compete to provide the most
accurate and best prediction

B. GAN is a machine learning model which is made to support a neural network

C. GAN is a machine learning model which is used to only analyze and process the data with the
help of a neural network

Answer: A) GAN is a machine learning model in which two neural networks compete to provide the
most accurate and best prediction.

Explanation:
GAN is a machine learning model in which two neural networks compete to provide the most
accurate and best prediction.

Q89. What are the applications of GAN?

A. Generating images

B. Face aging

C. Image modification

D. All of the above

Answer: D) All of the above.

Explanation:

Generating images, Face aging, and Image modification are the applications of GAN.

Q90. What is data science primarily concerned with?


a) Analyzing and interpreting data
b) Collecting data only
c) Storing data in database mentioned above

Answer: a
Explanation: Data science focuses on analyzing and interpreting data to extract insights and
knowledge from it.

Q91.Which of the following is one of the key data science skills?


a) Data Visualization
b) Machine Learning
c) Statistics
d) All of the mentioned

Answer: d
Explanation: Data visualization is the presentation of data in a pictorial or graphical format.

Q92.Which of the following characteristic of big data is relatively more concerned to data science?
a) Volume
b) Velocity
c) Variety
d) None of the mentioned

Answer: c
Explanation: Big data enables organizations to store, manage, and manipulate vast amounts of
disparate data at the right speed and at the right time.

Q93. Which of the following is a common method for data preprocessing?


a) Data normalization
b) Data storage
c) Data aggregation
d) Data visualization
Answer: a
Explanation: Data normalization is a preprocessing technique used to scale the features of a dataset
to a uniform range, improving the performance of machine learning models.

Q94.Which of the following step is performed by data scientist after acquiring the data?
a) Data Integration
b) Data Replication
c) Data Cleansing
d) All of the mentioned

Answer: c
Explanation: Data cleansing, data cleaning, or data scrubbing is the process of detecting and
correcting (or removing) corrupt or inaccurate records from a record set, table, or database.

Q95.Which of the following data mining technique is used to uncover patterns in data?
a) Data bagging
b) Data Dredging
c) Data merging
d) Data booting

Answer: b
Explanation: Data dredging, also called data snooping, refers to the practice of misusing data mining
techniques to show misleading scientific ‘research’.

Q96.Which of the following makes use of pandas and returns data in a series or DataFrame?
a) freedapi
b) pandaSDMX
c) OutPy
d) None of the mentioned

Answer: a
Explanation: freedapi module requires a FRED API key that you can obtain for free on the FRED
website.

Q97.Which of the following function is used for casting data frames?


a) dcast
b) rcast
c) ucast
d) all of the mentioned

Answer: a
Explanation: Use acast or dcast depending on whether you want vector/matrix/array output or data
frame output.

Q98.Which of the following gave rise to the need for graphs in data analysis?
a) Decision making
b) Communicating results
c) Data visualization
d) All of the mentioned

Answer: d
Explanation: A picture can tell a better story than data.
Q99.Which of the following testing is concerned with making decisions using data?
a) Hypothesis
b) Probability
c) Causal
d) None of the mentioned

Answer: a
Explanation: The null hypothesis is assumed true, and statistical evidence is required to reject it in
favor of a research or alternative hypothesis.

Q100.Which of the following is commonly referred to as ‘data fishing’?


a) Data dredging
b) Data bagging
c) Data merging
d) Data booting

Answer: a
Explanation: Data dredging is sometimes referred to as “data fishing”.

You might also like