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
:
51
:
00
Q:
1
/
57
🤖
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 7
Exam Duration:
00:51:00
Data Science Mock Test 7
: Question
1
of 57
What is an advantage of using generators for large datasets?
1 Mark(s)
Your Answer:
They use more memory
They use more memory
They are slower than loops
They are slower than loops
They are easier to implement
They are easier to implement
They use less memory
They use less memory
What is the main purpose of "data extraction" in business analytics?
1 Mark(s)
Your Answer:
Extracting data from the environment
Extracting data from the environment
Reducing data storage costs
Reducing data storage costs
Predicting future market trends
Predicting future market trends
Identifying data sources
Identifying data sources
Which of the following functions cannot be used on heterogeneous sets?
1 Mark(s)
Your Answer:
pop
pop
remove
remove
update
update
sum
sum
G.M. are set of ‘n’ values product of the nth roots of the ______________?
1 Mark(s)
Your Answer:
Given value
Given value
All +ve, -Ve value
All +ve, -Ve value
Zero reject
Zero reject
None of these
None of these
In order to store values in terms of key and value we use what core data type.
1 Mark(s)
Your Answer:
list
list
tuple
tuple
class
class
dictionary
dictionary
Which of the following is true about the finally clause in exception handling?
1 Mark(s)
Your Answer:
The code in the finally block always executes, regardless of whether an exception is raised or not
The code in the finally block always executes, regardless of whether an exception is raised or not
The finally block should always come before the try block
The finally block should always come before the try block
The finally block is optional
The finally block is optional
The code in the finally block executes only if an exception is caught
The code in the finally block executes only if an exception is caught
What will be the output of the following Python code? def power(x, y=2): r = 1 for i in range(y): r = r * x return r print power(3) print power(3, 3)
1 Mark(s)
Your Answer:
212 32
212 32
9 27
9 27
567 98
567 98
None of the mentioned
None of the mentioned
Let A and B be objects of class Foo. Which functions are called when print(A + B) is executed?
1 Mark(s)
Your Answer:
__add__(), __str__()
__add__(), __str__()
__str__(), __add__()
__str__(), __add__()
__sum__(), __str__()
__sum__(), __str__()
__str__(), __sum__()
__str__(), __sum__()
Which statistical method is used to identify the presence of outliers or anomalies in a time series data set?
1 Mark(s)
Your Answer:
Augmented Dickey-Fuller test
Augmented Dickey-Fuller test
Granger causality test
Granger causality test
Box-Plot Method
Box-Plot Method
t-test
t-test
Analysis process which involves analyzing and designing of system from an object-oriented programming is termed as:
1 Mark(s)
Your Answer:
Object Analysis
Object Analysis
Object Oriented Analysis
Object Oriented Analysis
Overall Oriented Analysis
Overall Oriented Analysis
System Analysis
System Analysis
What will be the output of the following code: def my_function(a, b): return a / b result = my_function(4, 2) print(result)
1 Mark(s)
Your Answer:
2
2
1
1
0.5
0.5
4
4
The relation showing between whole and its components used chart is said to be ___________________?
1 Mark(s)
Your Answer:
Component bar chart
Component bar chart
Multiple bar chart
Multiple bar chart
Pie Chart
Pie Chart
Simple Bar chart
Simple Bar chart
In distributed computing, what is the primary advantage of using a "Reducer" in the MapReduce programming model?
1 Mark(s)
Your Answer:
To split data into smaller chunks
To split data into smaller chunks
To process and aggregate data from Mapper tasks
To process and aggregate data from Mapper tasks
To store data in the HDFS
To store data in the HDFS
To visualize data relationships
To visualize data relationships
Which of the following is NOT a common data format used in Data Science projects?
1 Mark(s)
Your Answer:
JSON
JSON
XML
XML
CSV
CSV
HTML
HTML
In Python, how can you get a list of all key-value pairs in a dictionary?
1 Mark(s)
Your Answer:
items()
items()
get_items()
get_items()
all_items()
all_items()
list_items()
list_items()
What ethical principle emphasizes the importance of ensuring that data practices align with societal norms and values?
1 Mark(s)
Your Answer:
Transparency
Transparency
Accountability
Accountability
Fairness
Fairness
Social responsibility
Social responsibility
The shape of the symmetrical distribution is _______?
1 Mark(s)
Your Answer:
U- Shaped
U- Shaped
J- Shaped
J- Shaped
Bell- Shaped
Bell- Shaped
None of these
None of these
What is the output of the following code: my_set = {1, 2, 3, 4, 5} my_set.pop() print(my_set)
1 Mark(s)
Your Answer:
{1, 2, 3, 4, 5}
{1, 2, 3, 4, 5}
{2, 3, 4, 5}
{2, 3, 4, 5}
{1, 2, 3, 4}
{1, 2, 3, 4}
{2, 3, 4}
{2, 3, 4}
When X denotes the number of success in binomial experiment, it is called ________________?
1 Mark(s)
Your Answer:
Random variable
Random variable
Binomial random variable
Binomial random variable
Continuous random variable
Continuous random variable
Both (b) and (c) but not (a)
Both (b) and (c) but not (a)
Which of the following command allows you to update the repository?
1 Mark(s)
Your Answer:
push
push
pop
pop
update
update
none of the mentioned
none of the mentioned
Which of the following is NOT a typical deliverable in a data science capstone project?
1 Mark(s)
Your Answer:
Data cleaning report
Data cleaning report
Project presentation
Project presentation
Final project report
Final project report
Annotated bibliography
Annotated bibliography
What will be the output of the following Python code? print('ab'.isalpha())
1 Mark(s)
Your Answer:
True
True
False
False
None
None
Error
Error
What is the BeautifulSoup library used for in web scraping?
1 Mark(s)
Your Answer:
Sending HTTP requests
Sending HTTP requests
Rendering JavaScript
Rendering JavaScript
Extracting data from HTML and XML
Extracting data from HTML and XML
Creating web forms
Creating web forms
Who developed the Python language?
1 Mark(s)
Your Answer:
Zim Den
Zim Den
Guido van Rossum
Guido van Rossum
Niene Stom
Niene Stom
Wick van Rossum
Wick van Rossum
Given X1=12,X2=19,X3=10,X4=7, then summation of X equals?
1 Mark(s)
Your Answer:
36
36
48
48
41
41
None of these
None of these
Statistics tests the law of ____________?
1 Mark(s)
Your Answer:
Other sciences
Other sciences
physics
physics
Business
Business
Literary subjects
Literary subjects
Two mutually exclusive events are __________?
1 Mark(s)
Your Answer:
Dependent
Dependent
Independent
Independent
Overlapped
Overlapped
None of These
None of These
How is polymorphism achieved in Python?
1 Mark(s)
Your Answer:
By using only class inheritance
By using only class inheritance
By using only class composition
By using only class composition
By using both class inheritance and composition
By using both class inheritance and composition
By using multiple inheritance only
By using multiple inheritance only
Which of the following is not a valid attribute of a file object (fp)?
1 Mark(s)
Your Answer:
fp.name
fp.name
fp.closed
fp.closed
fp.mode
fp.mode
fp.size
fp.size
Why is "error analysis" an essential component of model evaluation in a data science capstone project?
1 Mark(s)
Your Answer:
Data preprocessing
Data preprocessing
Model deployment
Model deployment
Identify model weaknesses and improvements
Identify model weaknesses and improvements
Visualize data distributions
Visualize data distributions
Which emerging technology enables the storage of data across a network of computers in a secure and decentralized manner?
1 Mark(s)
Your Answer:
Data warehouses
Data warehouses
Quantum computing
Quantum computing
Data lakes
Data lakes
Blockchain
Blockchain
__________ of the distribution which is measured relative to the distribution known as Normal?
1 Mark(s)
Your Answer:
Skewed
Skewed
Flatness
Flatness
Normal
Normal
Moment
Moment
In time series analysis, what does the "autoregressive integrated moving average" (ARIMA) model combine?
1 Mark(s)
Your Answer:
Autoregressive and moving average components
Autoregressive and moving average components
Seasonal and trend components
Seasonal and trend components
Exponential and linear components
Exponential and linear components
Seasonal and autocorrelation components
Seasonal and autocorrelation components
What is the order of namespaces in which Python looks for an identifier?
1 Mark(s)
Your Answer:
Python first searches the built-in namespace, then the global namespace and finally the local namespace
Python first searches the built-in namespace, then the global namespace and finally the local namespace
Python first searches the built-in namespace, then the local namespace and finally the global namespace
Python first searches the built-in namespace, then the local namespace and finally the global namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespace
Python first searches the global namespace, then the local namespace and finally the built-in namespace
Python first searches the global namespace, then the local namespace and finally the built-in namespace
Which of the following Python codes will result in an error? object = ‘a’
1 Mark(s)
Your Answer:
>>> pickle.dumps(object)
>>> pickle.dumps(object)
>>> pickle.dumps(object, 3)
>>> pickle.dumps(object, 3)
>>> pickle.dumps(object, 3, True)
>>> pickle.dumps(object, 3, True)
>>> pickle.dumps('a', 2)
>>> pickle.dumps('a', 2)
What will be the output of the following Python code? >>>t=(1,2,4,3) >>>t[1:3]
1 Mark(s)
Your Answer:
(1, 2)
(1, 2)
(1, 2, 4)
(1, 2, 4)
(2, 4)
(2, 4)
(2, 4, 3)
(2, 4, 3)
Which technology involves the use of AI and data analytics to analyze and predict trends in the real estate market?
1 Mark(s)
Your Answer:
FashionTech
FashionTech
Precision agriculture
Precision agriculture
Real estate analytics
Real estate analytics
Healthcare resource optimization
Healthcare resource optimization
What will be the output of the following Python code snippet?
1 Mark(s)
Your Answer:
prints all the vowels in my_string
prints all the vowels in my_string
prints all the consonants in my_string
prints all the consonants in my_string
prints all characters of my_string that aren't vowels
prints all characters of my_string that aren't vowels
prints only on executing print(k)
prints only on executing print(k)
What is the primary purpose of "NumPy" in data science?
1 Mark(s)
Your Answer:
Data manipulation
Data manipulation
Data visualization
Data visualization
Machine learning
Machine learning
Web development
Web development
What is the primary purpose of the "fillna" method in Pandas?
1 Mark(s)
Your Answer:
Remove duplicates
Remove duplicates
Group data
Group data
Sort data
Sort data
Fill missing values
Fill missing values
In Python, which of the following is used to format a string left-justified within a field?
1 Mark(s)
Your Answer:
<
<
>
>
^
^
=
=
Which library in Python is commonly used for data manipulation and analysis in Data Science?
1 Mark(s)
Your Answer:
Pandas
Pandas
Matplotlib
Matplotlib
Scikit-Learn
Scikit-Learn
TensorFlow
TensorFlow
Is the following Python code valid? class B(object): def first(self): print("First method called") def second(): print("Second method called") ob = B() B.first(ob)
1 Mark(s)
Your Answer:
It isn't as the object declaration isn't right
It isn't as the object declaration isn't right
It isn't as there isn't any __init__ method for initializing class members
It isn't as there isn't any __init__ method for initializing class members
Yes, this method of calling is called unbounded method call
Yes, this method of calling is called unbounded method call
Yes, this method of calling is called bounded method call
Yes, this method of calling is called bounded method call
What will be the output of the following Python code? #generator def f(x): yield x+1 g=f(8) print(next(g))
1 Mark(s)
Your Answer:
8
8
9
9
7
7
Error
Error
What is the primary benefit of using "dashboards" in data reporting?
1 Mark(s)
Your Answer:
Consolidating multiple visuals
Consolidating multiple visuals
Adding decorative elements
Adding decorative elements
Making charts more complex
Making charts more complex
Slowing down data analysis
Slowing down data analysis
What is the role of the @abstractmethod decorator in Python?
1 Mark(s)
Your Answer:
Define abstract classes
Define abstract classes
Define instance methods
Define instance methods
Mark a method as abstract
Mark a method as abstract
Control method access
Control method access
What is the primary goal of Data Science?
1 Mark(s)
Your Answer:
Data Visualization
Data Visualization
Data Cleaning
Data Cleaning
Predictive Analytics
Predictive Analytics
Extracting Data from APIs
Extracting Data from APIs
Which programming language is commonly used for Data Science tasks?
1 Mark(s)
Your Answer:
Java
Java
Python
Python
C++
C++
JavaScript
JavaScript
What will be the output of the following Python code? r = [11, 12, 13, 14, 15, 16, 17, 18, 19] A = [[0, 10, 20], [30, 40, 50], [60, 70, 80]] for row in A: for col in row: r.append(col+10) r
1 Mark(s)
Your Answer:
[11, 12, 13, 14, 15, 16, 17, 18, 19, 10, 20, 30, 40, 50, 60, 70, 80, 90]
[11, 12, 13, 14, 15, 16, 17, 18, 19, 10, 20, 30, 40, 50, 60, 70, 80, 90]
[10, 20, 30, 40, 50, 60, 70, 80, 90]
[10, 20, 30, 40, 50, 60, 70, 80, 90]
[11, 12, 13, 14, 15, 16, 17, 18, 19]
[11, 12, 13, 14, 15, 16, 17, 18, 19]
[0, 10, 20, 30, 40, 50, 60, 70, 80]
[0, 10, 20, 30, 40, 50, 60, 70, 80]
Which deep learning framework is known for its flexibility and ease of use in building neural networks for data science?
1 Mark(s)
Your Answer:
PyTorch
PyTorch
TensorFlow
TensorFlow
Keras
Keras
Scikit-learn
Scikit-learn
What will be the output of the following Python code? >>> a={5,6,7,8} >>> b={7,8,9,10} >>> len(a+b)
1 Mark(s)
Your Answer:
8
8
Error, unsupported operand '+' for sets
Error, unsupported operand '+' for sets
6
6
Nothing is displayed
Nothing is displayed
What is the primary purpose of "data exploration" in data visualization?
1 Mark(s)
Your Answer:
Discover insights in the data
Discover insights in the data
Add decorative elements
Add decorative elements
Make charts more complex
Make charts more complex
Slow down data analysis
Slow down data analysis
What will be the output of the following Python code? import re s = 'abc123 xyz666 lmn-11 def77' re.sub(r'\b([a-z]+)(\d+)', r'\2\1:', s)
1 Mark(s)
Your Answer:
'123abc: 666xyz: lmn-11 77def:'
'123abc: 666xyz: lmn-11 77def:'
'77def: lmn-11: 666xyz: 123abc'
'77def: lmn-11: 666xyz: 123abc'
'abc123:', 'xyz666:', 'lmn-11:', 'def77:'
'abc123:', 'xyz666:', 'lmn-11:', 'def77:'
'abc123: xyz666: lmn-11: def77'
'abc123: xyz666: lmn-11: def77'
Can one block of except statements handle multiple exception?
1 Mark(s)
Your Answer:
yes, like except TypeError, SyntaxError [,...]
yes, like except TypeError, SyntaxError [,...]
yes, like except [TypeError, SyntaxError]
yes, like except [TypeError, SyntaxError]
no
no
none of the mentioned
none of the mentioned
Which function is called when the following Python code is executed? f = foo() format(f)
1 Mark(s)
Your Answer:
format()
format()
__format__()
__format__()
str()
str()
__str__()
__str__()
Which statistical test is used to determine if there is a significant association between two categorical variables?
1 Mark(s)
Your Answer:
Chi-squared test
Chi-squared test
T-test
T-test
ANOVA
ANOVA
Regression analysis
Regression analysis
What is getattr() used for?
1 Mark(s)
Your Answer:
To access the attribute of the object
To access the attribute of the object
To delete an attribute
To delete an attribute
To check if an attribute exists or not
To check if an attribute exists or not
To set an attribute
To set an attribute
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.