Create Account
Sign In
Toggle navigation
Home
Practice Exams
Official IQ Testing Hub
MCQ Learn
Board Exams
Learn
BISE Courses
Blog
About Us
Contact Us
00
:
29
:
00
Q:
1
/
32
🤖
Evaluating Your Answers
Please wait while our AI system evaluates your descriptive answers...
This may take a few moments.
⏳ Processing...
We're using advanced AI to provide detailed feedback on your answers.
Data Science Mock Test 14
Exam Duration:
00:29:00
Data Science Mock Test 14
: Question
1
of 32
Study the following program: i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0) What will be the output of this statement? ``` i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0) ```
1 Mark(s)
Your Answer:
1 2 3
1 2 3
0 1 2 3
0 1 2 3
0 1 2
0 1 2
3 2 1
3 2 1
Which type of data visualization is used to show the distribution of a dataset with a box and whisker plot?
1 Mark(s)
Your Answer:
Scatter plot
Scatter plot
Bar chart
Bar chart
Box plot
Box plot
Pie chart
Pie chart
What statistical technique is used to assess whether there is a significant difference between the means of two paired groups?
1 Mark(s)
Your Answer:
Chi-squared test
Chi-squared test
ANOVA
ANOVA
Paired t-test
Paired t-test
Regression analysis
Regression analysis
What is the keyword used in Python to define a generator function?
1 Mark(s)
Your Answer:
yield
yield
return
return
generator
generator
produce
produce
Where are the arguments received from the command line stored?
1 Mark(s)
Your Answer:
sys.argv
sys.argv
os.argv
os.argv
argv
argv
none of the mentioned
none of the mentioned
Which distributed computing framework is known for its high-speed, low-latency data processing capabilities and is suitable for real-time analytics?
1 Mark(s)
Your Answer:
Apache Kafka
Apache Kafka
Apache HBase
Apache HBase
Apache Spark
Apache Spark
Apache Hive
Apache Hive
What is the result of 10 + 2 * 6 / 3 ?
1 Mark(s)
Your Answer:
14
14
16
16
8
8
12
12
What will be the output of the following Python code? >>> a=[14,52,7] >>>> b=a.copy() >>> b is a
1 Mark(s)
Your Answer:
True
True
False
False
What Python function is used to perform element-wise mathematical operations on Numpy arrays?
1 Mark(s)
Your Answer:
describe()
describe()
plt.plot()
plt.plot()
df.apply()
df.apply()
np.add()
np.add()
What are some ethical considerations for web scraping?
1 Mark(s)
Your Answer:
Scraping any data without permission
Scraping any data without permission
Ignoring robots.txt guidelines
Ignoring robots.txt guidelines
Scraping personal or sensitive data
Scraping personal or sensitive data
Scraping freely accessible public data
Scraping freely accessible public data
Confidence interval should be ___________?
1 Mark(s)
Your Answer:
Shorter
Shorter
Wider
Wider
Large
Large
Small
Small
What will be the output of the following Python code? n = re.sub(r'\w+', 'Hello', 'Cats and dogs')
1 Mark(s)
Your Answer:
Hello Hello Hello
Hello Hello Hello
‘Hello Hello Hello’
‘Hello Hello Hello’
[‘Hello’, ‘Hello’, ‘Hello’]
[‘Hello’, ‘Hello’, ‘Hello’]
(‘Hello’, ‘Hello’, ‘Hello’)
(‘Hello’, ‘Hello’, ‘Hello’)
Which method in time series analysis is used to estimate the future values of a time series using past values and their associated weights?
1 Mark(s)
Your Answer:
Exponential Smoothing
Exponential Smoothing
Moving Average
Moving Average
ARIMA
ARIMA
Seasonal Decomposition of Time Series
Seasonal Decomposition of Time Series
What will be the output of the following Python code? def add(c,k): c.test=c.test+1 k=k+1 class A: def __init__(self): self.test = 0 def main(): Count=A() k=0 for i in range(0,25): add(Count,k) print("Count.test=", Count.test) print("k =", k) main()
1 Mark(s)
Your Answer:
Exception is thrown
Exception is thrown
Count.test=25 k=25
Count.test=25 k=25
Count.test=25 k=0
Count.test=25 k=0
Count.test=0 k=0
Count.test=0 k=0
In data modeling, what is the term for the process of selecting and combining data from multiple sources for analysis?
1 Mark(s)
Your Answer:
Data Aggregation
Data Aggregation
Data Integration
Data Integration
Data Sampling
Data Sampling
Data Transformation
Data Transformation
How can you pass arguments to a decorator in Python?
1 Mark(s)
Your Answer:
By modifying the decorator's code
By modifying the decorator's code
By using the @decorator syntax
By using the @decorator syntax
By defining arguments within the function
By defining arguments within the function
By using the args keyword
By using the args keyword
What will be the output of the following Python code? def foo(k): k = [1] q = [0] foo(q) print(q)
1 Mark(s)
Your Answer:
[0]
[0]
[1]
[1]
[1, 0]
[1, 0]
[0, 1]
[0, 1]
What will be the output of the following Python function? oct(7) oct(‘7’)
1 Mark(s)
Your Answer:
Error 07
Error 07
07 0o7
07 0o7
0o7 Error
0o7 Error
None of the above
None of the above
What is the primary goal of shuffling and sorting in the MapReduce programming model?
1 Mark(s)
Your Answer:
To maximize data storage capacity
To maximize data storage capacity
To optimize job scheduling and resource management
To optimize job scheduling and resource management
To reorganize data for Reducer tasks
To reorganize data for Reducer tasks
To increase data variety
To increase data variety
What will be the output of the following Python code? x = [[0], [1]] print(len(' '.join(list(map(str, x)))))
1 Mark(s)
Your Answer:
2
2
3
3
7
7
8
8
What is the primary goal of dimensionality reduction techniques in data modeling?
1 Mark(s)
Your Answer:
To increase model complexity
To increase model complexity
To improve model accuracy
To improve model accuracy
To reduce dimensionality
To reduce dimensionality
To calculate summary statistics
To calculate summary statistics
The median of normal distribution corresponds to the value of Z equal to_________________?
1 Mark(s)
Your Answer:
0.5
0.5
1
1
µ
µ
0
0
How can you catch and handle multiple exceptions in a single except block in Python?
1 Mark(s)
Your Answer:
By enclosing the exceptions in parentheses and separating them with commas
By enclosing the exceptions in parentheses and separating them with commas
By using the multiple keyword
By using the multiple keyword
By using separate except blocks
By using separate except blocks
By using the all keyword
By using the all keyword
In Python, how can you join two or more lists together?
1 Mark(s)
Your Answer:
+ operator
+ operator
concat()
concat()
join()
join()
merge()
merge()
Which of the following is not a correct statement about a Probability _________________?
1 Mark(s)
Your Answer:
It must have a value between 0 and 1
It must have a value between 0 and 1
It can be reported as a decimal or a fraction
It can be reported as a decimal or a fraction
A value near 0 means that the event is not likely to occur/happens
A value near 0 means that the event is not likely to occur/happens
It is the collection of several experiment
It is the collection of several experiment
Which data visualization type is commonly used to display the distribution of a continuous variable across multiple categories?
1 Mark(s)
Your Answer:
Scatter plot matrix
Scatter plot matrix
Bar chart
Bar chart
Box plot
Box plot
Line chart
Line chart
What type of chart is often used to visualize the frequency distribution of a categorical variable?
1 Mark(s)
Your Answer:
Scatter plot
Scatter plot
Bar chart
Bar chart
Line chart
Line chart
Box plot
Box plot
What is the purpose of the @property decorator in advanced OOP?
1 Mark(s)
Your Answer:
To define a setter method for a class attribute
To define a setter method for a class attribute
To define a getter method for a class attribute
To define a getter method for a class attribute
To add properties to classes
To add properties to classes
To define methods for instance attributes
To define methods for instance attributes
Which symbol is used to denote a decorator in Python syntax?
1 Mark(s)
Your Answer:
@
@
#
#
&
&
*
*
In case of symmetrical distribution?
1 Mark(s)
Your Answer:
β1=β4
β1=β4
Mean=Mode=Median
Mean=Mode=Median
µ1=µ4
µ1=µ4
µ1=µ2
µ1=µ2
What will be the output of the following Python code snippet? for i in ''.join(reversed(list('abcd'))): print (i)
1 Mark(s)
Your Answer:
a b c d
a b c d
d c b a
d c b a
error
error
none of the mentioned
none of the mentioned
Which machine learning algorithm is commonly used for recommendation systems, such as suggesting products to online shoppers?
1 Mark(s)
Your Answer:
K-Means Clustering
K-Means Clustering
Collaborative Filtering
Collaborative Filtering
Principal Component Analysis (PCA)
Principal Component Analysis (PCA)
Support Vector Machine (SVM)
Support Vector Machine (SVM)
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.