in Education by
How do you create an integer suppose 5 in R? (a) 5L (b) 5l (c) 5i (d) 5d I got this question in an online interview. This question is from Overview of R in section History, Overview and Getting Started of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Right option is (a) 5L Explanation: To create an integer L should be added to the integer. L is added to specify that it is an integer. An integer can also be created with many types. If you explicitly want an integer, you need to specify the L suffix.

Related questions

0 votes
    Which of the following operator is used to create integer sequences? (a) : (b) ; (c) - (d) ~ I ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    The dimension attribute is itself an integer vector of length _______ (a) 1 (b) 2 (c) 3 (d) 4 I ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    In order to use the R-related functionality in Dundas BI, you must have access to an existing _________ (a ... Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    You can download base R system from _________ (a) A (b) B (c) CRAN (d) D This question was ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    If commands are stored in an external file, say commands.R in the working directory work, they may be executed ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which of the following command is used to print an object x in R? (a) printf(x) (b) print(x) ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    R files has an extension ______ (a) .R (b) .S (c) .Rp (d) .c I got this question in quiz. ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which of the following is not an object of R? (a) calls (b) expressions (c) strings (d) names The ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    How can we define infinity' in R language? (a) Inf (b) Sup (c) Und (d) NaN I had been asked ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    How many atomic vector types does R have? (a) 5 (b) 6 (c) 8 (d) 10 This question was addressed ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    How can we define undefined value' in R language? (a) Inf (b) Sup (c) Und (d) NaN The question ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    In which year R-Core group was formed? (a) 1993 (b) 1996 (c) 1997 (d) 1998 This question was ... Getting Started of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Version of R released to the public in 2000 was_________ (a) 1.0.0 (b) 1.0.3 (c) 2.0.1 (d) ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    They primary R system is available from the ______ (a) CRAN (b) CRWO (c) GNU (d) CRDO This question ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    The most convenient way to use R is at a graphics workstation running a ________ system. (a) windowing (b) ... Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
...