adplus-dvertising
frame-decoration

Question

What will be the output of the following R code?
> x <- vector("numeric", length = 10)
> x

a.

10

b.

0 0 0 0 0 0 0 0 0 0

c.

01

d.

00120

Posted under R Programming

Answer: (b).0 0 0 0 0 0 0 0 0 0

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following R code?

Similar Questions

Discover Related MCQs

Q. The ________ function can be used to create vectors of objects by concatenating things together.

Q. Which of the following statement is invalid?

Q. Point out the correct statement?

Q. Point out the correct statement?

Q. Which of the following is invalid assignment?

Q. Which of the following code constructs vector of length 11?

Q. _______ function returns a vector of the same size as x with the elements arranged in increasing order.

Q. Which of the following is used for generating sequences?

Q. Which of the following statement would print “0” “1” “2” “3” “4” “5” “6” for the following R code?

Q. Point out the correct statement?

Q. Point out the correct statement?

Q. All columns in a matrix must have the same mode and the _________ length.

Q. ___________ provides optional labels with the columns and rows.

Q. ________ are similar to matrices but can have more than two dimensions.

Q. Which is more general than a matrix, in that different columns can have different modes?

Q. An ordered collection of objects or components are called ________

Q. The ________ stores the nominal values as a vector of integers in the range of 1 to unique values in the nominal variable.

Q. An ordered factor is used to represent an __________

Q. On what basis of a variable, OS allocates memory and decides what can be stored in the reserved memory?

Q. The data type of the R-object becomes the data type of the ________