You are on page 1of 20

SOAL POST-TEST

NAM A:^^S
1. What are different ways to call a function in R (choose 3)?
^. call by using position of the arguments.
)6. call by using the name of the arguments
^. call by default arguments.~Vs-—"

d. call by using reference operator


f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix

d.array

e.list

3. How R is used in logistic regression?


a.using flm() function
b.using hlm() function
/pctising glm() functionV
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.libraryf'name")
b.library.installf'name")
c.apply.library("name")\_^
d.package.installf'name")
^e^Tnstall.packages("name")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)\_^/

e. unlink(x)
6.How do you set the path for current working directory in R?
Xsetwd("Path")
b.changewd("Path")
c.todirf'Path")
d.cd("Path")^
e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frame()
b. as.data.frameQ

d.fromJSONtoDataFrame()
e.data.frame()

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x<-pbinom(26,51,0.5)
b. x<-rbinom(26,51,0.5)
^x<-qbinom(26,51,0.5)
d.x <- gbinom(26,51,0.5)
e.x <- dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairs(formula, data)\^/
d.gpairs(formula, data)
e^. pairs(formula, data)

10.Give the general expression to create a matrix in R.


/^• matrix(data, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames)
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
NAMA:

1. What are different ways to call a function in R (choose 3)?


^. call by using position of the arguments.
% call by using the name of the arguments
X call by default arguments.
d. call by using reference operator
f. call by using pointer

2.Which data object in R is used to store and process categorical data?

b. matrix
X factor
d.array

e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
^ using glm() functionK_^
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.library("name")
b.library.installfname")
c.apply.libraryfname")
d.package.installf'name")1 ^
y install, packagesfname")^~^

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)
xfT rm(x)
e. unlink(x)
6.How do you set the path for current working directory in R?
•^setwd("Path")
b.changewdf'Path")
c.todir("Path")
d.cdf'Path")\^
e.setdirf'Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frame()
b.as.data.frame()
^ fromJSONQ
d.fromJSONtoDataFrame() ^—'
e.data.framef)

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x<-pbinom(26,51,0.5)
b. x<-rbinom(26,51,0.5)
)C x<-qbinom(26,51,0.5).
d.x <- gbinom(26,51,0.5)
e.x<-dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairs(formula, data)..
d.gpairs(formula, data)
)L pairs(formula, data)

10.Give the general expression to create a matrix in R.


^^Cjriatrix(data, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames)
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
NAMA: ^^WMA

1. What are different ways to call a function in R (choose 3)?


all by using position of the arguments.
I call by using the name of the arguments
^call by default arguments,
d. call by using reference operator
f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
(| factor
d.array
e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
(c^using glm() function
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.library("name")
b.library.install("name")
c.apply.library("name")i
d.package.install("name")
/^install, packagesfname")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)
^rm(x)
e. unlink(x)
6.How do you set the path for current working directory in R?
©setwdf'Path")
b.changewd("Path")
c.todirfPath")
d.cd("Path")V.

e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frameQ
b.as.data.frame()
(. fromJSONQl—'

d.fromJSONtoDataFrame()
e.data.frameQ

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x<-pbinom(26,51,0.5)
b. x <- rbinom(26,51,0.5)
(cpx<-qbinom(26,51,0.5)V
d.x <- gbinom(26,51,0.5)
e.x <- dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairs(formula, data)
d.gpairs(formula, data)
(e^pairs(formula, data)

10.Give the general expression to create a matrix in R.


f) matrix(data, nrow, ncol, byrow, dimnames)
h. matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames)
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
NAMA: ^^^

1. What are different ways to call a function in R (choose 3)?


y. call by using position of the arguments.
•-^. call by using the name of the arguments
-prcall by default arguments.
d. call by using reference operator
f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
•jy factor
d.array^ ^-
e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
y, using glm() function
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.library("name")
b.library.install("name")
c.apply.library("name")^_^
d.package.install("name")
-e: install.packages("name")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)v^

e. unlink(x)
6.How do you set the path for current working directory in R?
)^Lsetwd("Path")
b.changewdf'Path")
c.todirfPath")t ^
d.cd("Path")
e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frameQ
b.as.data.frameQ

^fromJSONQ
d.fromJSONtoDataFrameQ
e.data.frameQ

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x<-pbinom(26,51,0.5)
b. x <- rbinom(26,51,0.5)
^fx <- qbinom(26,51,0.5)
d.x<-gbinom(26,51,0.5)
e.x <- dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairs(formula, data)^—
d.gpairs(formula, data)
^ pairs(formula, data)

10.Give the general expression to create a matrix in R.


)jk matrix(data, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames) V.
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST' I (^ ^")
NAMA: \^e?o^ Y^i^A oer\I ^

1. What are different ways to call a function in R (choose 3)?


'^. call by using position of the arguments.
>. call by using the name of the arguments
^ call by default arguments.
d.call by using reference operatorV_/
f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
\d factor
a. arrayL^'
e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
Y. using glm() function
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.library("name")
b.library.install("name")
c.apply.library("name")
d.package.installf'name")
^ install.packages("name")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)
*d. rm(x)\^_.
e. unlink(x)~^
6.How do you set the path for current working directory in R?
)^ setwdfPath")
b.changewdf'Path")
c.todir("Path")
d.cdf'Path")V—'""

e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.framef)
b.as.data.frameQ

;^fromJSON().
d.fromJSONtoDataFrameQ^-"

e.data.frame()

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x <- pbinom(26,51,0.5)
b.x <- rbinom(26,51,0.5)
^^x<-qbinom(26,51,0.5)
d.x<-gbinom(26,51,0.5)
e.x <- dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairs(formula, data) ^/
d.gpairs(formula, data)
y^ pairs(formula, data)

10.Give the general expression to create a matrix in R.


\matrix(data, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames) \,
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
NAMA:

1. What are different ways to call a function in R (choose 3)?


^T call by using position of the arguments.
% call by using the name of the arguments
^call by default arguments.
d. call by using reference operator^""^^J

f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
^ factor\^^
d.array

e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
^using glm() function^—---

d.using jlm() function


e.using klm() function

4.How do you install a library in R?


a.install.library("name")
b.library.installf'name")
c.apply.libraryf'name")\_^
d.package.install("name")
^Install. packages("name")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x).
c.remove(x)V

e. unlink(x)
6.How do you set the path for current working directory in R?
Xsetwd("Path")
b.changewdfPath")
c.todir("Path")
d.cd("Path")
e.setdirf'Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frame()
b.as.data.frame()y
XfromJSONO
d.fromJSONtoDataFrame()
e.data.frame()

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x <- pbinom(26,51,0.5)
b.x<-rbinom(26,51,0.5)
Xx<-qbinom(26,51,0.5)I^
d.x <- gbinom(26,51,0.5)
e.x<-dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairs(formula, data) .j
d.gpairs(formula, data)
a, data)

10. Give the general expression to create a matrix in R


^matrix(data, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames)
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
NAMA: T.^\\k>^.A

1. What are different ways to call a function in R (choose 3)?


^ call by using position of the arguments,
to. call by using the name of the arguments
^call by default arguments.^^^
d. call by using reference operator
f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
to. factor^
d.array
e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
© using glm() function
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.library("name")
b.library.installC'name")
c.apply.libraryf'name")
d.package.install("name")
Cs install.packages("name")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)
Q> rm(x)
e. unlink(x)
6.How do you set the path for current working directory in R?
<a^setwd("Path")
b. changewd("Path")
c.todir("Path")
d.cd("Path")
e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frame()
b.as.data.frameQ.

c.fromJSONQ W
(c). fromJSONtoDataPrameQ
e. data.frameQ / ^

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x<-pbinom(26,51,0.5)
b. x<-rbinom(26,51,0.5)
>x<-qbinom(26,51,0.5)
d.x <- gbinom(26,51,0.5J"x~y>

e.x <- dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairsfformula, data)
d.gpairs(formula, data)\~^

(g) pairs(formula, data)

10.Give the general expression to create a matrix in R.


fa. matrixfdata, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames) \j
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
NAMA:

1. What are different ways to call a function in R (choose 3)?


()call by using position of the arguments,
©call by using the name of the arguments
(c)call by default arguments.
d. call by using reference operator
f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
(j factor^^^
d.array
e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
^using glm() function\_y
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.library("name")
b.library.installfname")
c.apply.library("name")
d\package.install("name")
re^nstall.packagesf'name")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)
g)rm(x)
e. unlink(x)
6.How do you set the path for current working directory in R?
l^a)setwd("Path")
d.changewd("Path")
c. todir("Path")
d.cd("Path")
e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frame()
b.as.data.frame{)w
c.fromJSONQX
d.fromJSONtoDataFrameO/ ^
e.data.frameQ

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x <- pbinom(26,51,0.5)
b.x<-rbinom(26,51,0.5)
c.x <- qbinom(26,51,0.5)
d.x<-gbinom(26,51,0.5)
e.x <- dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairsfformula, data)
c.vpairs(formula, data) \ /

d.gpairs(formula, data)
(%^pairs(formula, data)

10.Give the general expression to create a matrix in R


(a)matrix(data, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames)
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
\cO
1. What are different ways to call a function in R (choose 3)?
^ call by using position of the arguments.
^Ja^call by using the name of the arguments
^feCcall by default arguments.
d. call by using reference operator
f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
^factor\_y
d.array
e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
^using glm() function
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.libraryf'name")
b.library.installf'name")
c.apply.library("name")
d.package.installfname")
^install.packages("name")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)
c.remove(x)

e. unlink(x)
6.How do you set the path for current working directory in R?
^setwdC'Path")
b.changewd("Path")
c.todirf'Path")
d.cd("Path")
e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frameQ

b.as.data.frame()
^fromJSONQ
d.fromJSONtoDataFrameO^„
e.data.frameQ

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x <- pbinom(26,51,0.5)
b.x<-rbinom(26,51,0.5)
^x<-qbinom(26,51,0.5)\^/
d.x<-gbinom(26,51,0.5)
e.x<-dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairs(formula, data)
c.vpairs(formula, data)
d.gpairs(formula, data)
Xpairs(formula, data)

10.Give the general expression to create a matrix in R.


. matrix(data, nrow, ncol, byrow, dimnames)
b.matrix(data, ncol, nrow, byrow, dimnames) *—^

c.matrix(data, byrow, ncol, nrow, dimnames)


d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)
SOAL POST-TEST
|oD
NAMA:

1. What are different ways to call a function in R (choose 3)?


(t) call by using position of the arguments.
©• call by using the name of the arguments
^call by default arguments.
d. call by using reference operator
f. call by using pointer

2.Which data object in R is used to store and process categorical data?


a.vector
b.matrix
© factor{^/
d.array
e.list

3.How R is used in logistic regression?


a.using flm() function
b.using hlm() function
© using glm() function^—^
d.using jlm() function
e.using klm() function

4.How do you install a library in R?


a.install.libraryf'name")
b.library.installf'name")
c.apply.library("name")
d.package.install("name")
(e) install, packagesfname")

5.How do you remove a vector from the R workspace?


a.del(x)
b.delete(x)\_y
c.remove(x)
0 rm(x)
e. unlink(x)
6.How do you set the path for current working directory in R?
(tn>setwd("Path")
b. changewdf'Path")
c.todir("Path")
d.cd("Path")v
e.setdir("Path")

7.How do you convert the data in a JSON file to a data frame?


a.json.data.frameQ
b.as.data.frame()
(c)fromJSON()
d.fromJSONtoDataFrameO v_^.
e.data.frame()

8.Give the R expression to get 26 or less heads from a 51 tosses of a


coin using pbinom.
a.x <- pbinom(26,51,0.5)
b.x<-rbinom(26,51,0.5)
(g)x<-qbinom(26,51,0.5) ./
d.x <- gbinom(26,51,0.5)
e.x<-dbinom(26,51,0.5)

9.Give the syntax for creating scatterplot matrices.


a.dpairs(data, formula)
b.spairsfformula, data)
c.vpairs(formula, data) v/
d.gpairs(formula, data)
(e}>pairs(formula, data)

10.Give the general expression to create a matrix in R.


(3) matrix(data, nrow, ncol, byrow, dimnames) -\_^
b.matrix(data, ncol, nrow, byrow, dimnames)
c.matrix(data, byrow, ncol, nrow, dimnames)
d.matrix(data, dimnames, ncol, nrow, byrow)
e.matrix(dimnames,data, nrow, ncol, byrow)

You might also like