adplus-dvertising

Welcome to the Formats,Objects and Operations MCQs Page

Dive deep into the fascinating world of Formats,Objects and Operations with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Formats,Objects and Operations, a crucial aspect of R Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Formats,Objects and Operations, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within R Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Formats,Objects and Operations. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of R Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Formats,Objects and Operations. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Formats,Objects and Operations MCQs | Page 7 of 10

Explore more Topics under R Programming

Q61.
What will be the output of the following R code?
> x <- matrix(1:4, 2, 2)
> y <- matrix(rep(10, 4), 2, 2)
> x * y
Discuss
Answer: (a).[,1] [,2]
[1,] 10 30
[2,] 20 40
Discuss
Answer: (b).unclass(as.Date(β€œ1970-01-02”))
Q63.
What will be the output of the following R code?
> x <- as.Date("1970-01-01")
> x
Discuss
Answer: (a).β€œ1970-01-01”
Discuss
Answer: (a).β€œPOSIXct” β€œPOSIXt”
Q65.
Which of the following function gives the day of the week?
Discuss
Answer: (a).weekdays
Discuss
Answer: (d).All of the mentioned
Q67.
What will be the output of the following R code?
> p <- as.POSIXlt(x)
> names(unclass(p))
> p$wday
Discuss
Answer: (a).1
Q68.
What will be the output of the following R code?
> datestring <- c("January 10, 2012 10:40", "December 9, 2011 9:10")
> x <- strptime(datestring, "%B %d, %Y %H:%M")
> x
Discuss
Answer: (a).β€œ2012-01-10 10:40:00 EST” β€œ2011-12-09 09:10:00 EST”
Discuss
Answer: (d).None of the mentioned
Q70.
What will be the output of the following R code?
> x <- as.Date("2012-01-01")
> y <- strptime("9 Jan 2011 11:34:21", "%d %b %Y %H:%M:%S")
> x-y
Discuss
Answer: (b).Warning
Page 7 of 10

Suggested Topics

Are you eager to expand your knowledge beyond R Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!