Securing Higher Grades Costing Your Pocket? Book Your Coursework Help at The Lowest Price Now!

  • +1-617-874-1011 (US)
  • +44-117-230-1145 (UK)
Online Customer Service

BA01 Introduction to Data Analytics and R Assignment 2

  75 Download     📄   4 Pages / 974 Words

WARNING - Clicking on the "SUBMIT ASSIGNMENT" button will submit the

Assignment. Be sure that you have reviewed your answers before clicking it.

Subject Code: BA01

Subject Name:



Component name:


Question 1:- A company tracks its stock price and gets the data from the stock exchange. It needs to implement a light-weight, highly scalable NoSQL database without a master node. Which type of NoSQL database should they implement?

a) Document type

b) Columnar

c) key-value pair

d) Graph

Question 2:- It is easy to get caught up in the process of analyzing the data and to forget to do a reality check. This refers to which stage of the business planning?

a) Planning with data

b) Acting on the plan

c) Doing the analysis

d) Checking the results

Question 3:- Consider that you have a dataset, namely, Sales_data, which has two columns. The names of the columns are date and sales, respectively. Which of the following is the correct function to remove rows with missing data from the dataset Sales_data?

a) na()

b) na.omit()

c) na.omit

d) na.Omit

Question 4:- Which of the following data objects should be used in R if the data consists of one or more values of a single type?

a) Vector

b) Matrix

c) List

d) Data frame

Question 5:- Which of the followings statements is false for function arguments in a function call?

a) Arguments can be optional, in which case you do not have to specify a value for them.

b) Arguments are always named when you define the function.

c) The name of the argument must be specified during the function call.

d) Arguments can have a default value, which is used if you did not specify a value for that argumentyourself.


Question 6:- A military campaign, four girls are selected for a special mission. The heights of these girls are 152 cms, 155 cms, 157 cms, and 163 cms. Which of the followings commands will give the correct variance of the heights of these girls?

var(height, na.rm = False) variance(height, na.rm = TRUE)

variance(height, unmow)

var(height, mow)

Question 7:- Consider the following command: > sd(unmow, na.rm = TRUE) Which of the followings statements is correct for this command?

Calculates the standard deviation but removes NA items with an additional instruction

Calculates the standard deviation of the complete unmow sample Calculates the standard deviation but not the remove NA items.

Question 8:- A company stores the details of all the products it manufactures in a data sample named product.

Which of the following commands should you use to see the total number of items in this data sample?





Question 9:- A gym instructor calculates the physical stamina of 10 men on the basis of the push-ups they can complete in a minute. The score obtained is as follows: 4, 6, 7, 8, 9, 10, 12, 14, 15, 18 Which of the followings commands is used to find the median number of push-ups?

med (score, na.rm = FALSE) md(score, na.rm = FALSE)

median(score, na.rm = FALSE)

>score >Median

Question 10:- Which of the following data structures represents the storage areas for datasets?



Data frames


Question 11:- The following are the sales details of several products: P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 10 23 21 24 32 34 35 45 48 54 Which of the following R commands will you use to select the details of the 7th product?

>Sale [7]




Question 12:- Consider the following matrix: > XY X Y A 16 18 B 24 32 C 17 16 D 15 12 E 11 13 The R command to select all the rows for which the value of the column X is greater than 12 is:

XY[XY[“X”] > 12, ]

XY[XY[, “X”] > 12, ]

XY[XY[X] > 12, ]

XY[XY[“X”,] > 12, ]

Question 13:- Which of the following commands is used to call and execute an R script in the console?

>source<- do(`myscript.R`) >source (‘myscript.R’) do(‘myscript.R’) do<- ‘myscript.R’

Question 14:- Which of the followings statements is correct in terms of R programming?

Every method is a function and every function is a method.

Every method is a function, but not every function is a method.

Every function is a method, but not every method is a function.

Methods and functions are different things.

Question 15:- Which of the following functions cannot be used to enter a nonparametric smoothed curve through

lowess loess

gap lm

Question 16:- Which of the following functions can be used to change the size of the window in R?

window() fetch()

size() reshape()

Question 17:- Which of the graphical techniques should be used to plot multiple comparisons in R?

Boxplots with notches


Scatter plots

Pie Chart

Question 18:- The Monte Carlo simulation is used to determine the p-value for any data frame. Which of the following is the correct syntax to implement the Monte Carlo simulation in R?

> chisq.test(sample.df, simulate.p.value = TRUE, B = 500)

> chisq.test( simulate.p.value = TRUE, B = 500)

> chisq.test(sample.df, simulate.p.value = FALSE, B = 500)

Question 19:- Which of the following is the correct syntax to specify a formula in the formula syntax in R?

response ~ predictor response = predictor

response * predictor

r ~ p

Question 20:- You are building a regression model in which the relationship between y and x is nonlinear; however, you do not have any theory or any mechanistic model to suggest a particular functional form to describe the relationship. In this situation, which of the following types of regression models will you use? a) Generalized additive models

b) Logistic regression models

c) Linear regression models

d) Aymptotic exponential models

This problem has been solved.

Please send an Email to with the Payment ID and the link to the document to collect by email

Cite This work.

To export a reference to this article please select a referencing stye below.

Urgent Homework (2022) . Retrive from

"." Urgent Homework ,2022,

Urgent Homework (2022) . Available from:

[Accessed 08/08/2022].

Urgent Homework . ''(Urgent Homework ,2022) accessed 08/08/2022.


  • 24 x 7 Availability.
  • Trained and Certified Experts.
  • Deadline Guaranteed.
  • Plagiarism Free.
  • Privacy Guaranteed.
  • Free download.
  • Online help for all project.
  • Homework Help Services
Tap to Chat
Get Instant Assignment Help
Tap to Chat
Get Instant Assignment Help