InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Using the ________ vector, we create a species factor and bind it to the columns of iris.df.(a) snames(b) rnames(c) jnames(d) fnamesThis question was addressed to me during an online exam.This interesting question is from Data Types topic in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right choice is (a) snames |
|
| 2. |
___________ provides optional labels with the columns and rows.(a) Disnames(b) Dimnames(c) Denmes(d) DemnesdThis question was addressed to me during an online interview.I'd like to ask this question from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» RIGHT answer is (b) Dimnames The EXPLANATION is: byrow=TRUE indicates that the matrix should be filled by rows. byrow=FALSE indicates that the matrix should be filled by COLUMNS (the default). dimnames provides optional LABELS with the columns and rows. |
|
| 3. |
Which is the basic data structure of R containing the same type of data?(a) Functions(b) Array(c) Vector(d) ListsThis question was addressed to me by my school teacher while I was bunking the class.Asked question is from Data Types in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct answer is (c) Vector |
|
| 4. |
The length of a list is ______ to the number of components in that list.(a) Double(b) Equal(c) Triple(d) One fourthThe question was asked in final exam.My enquiry is from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct answer is (b) Equal |
|
| 5. |
Lists can be created using the _______ function.(a) Matrix.li(b) Matrix.lists(c) Lists.matric(d) ListI got this question in unit test.My doubt is from Data Types in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right ANSWER is (d) List |
|
| 6. |
The ________ function creates a regular sequence of values to form a vector.(a) sequel(b) Rep(c) seq(d) GrepThis question was posed to me in examination.My question is based upon Data Types in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The CORRECT choice is (c) seq |
|
| 7. |
The data type of the R-object becomes the data type of the ________(a) Functions(b) Packages(c) Variables(d) ListsThis question was posed to me in an internship interview.I want to ask this question from Data Types in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right answer is (c) Variables |
|
| 8. |
Which of the following can be considered as object attribute?(a) dimensions(b) class(c) length(d) all of the mentionedThe question was asked during a job interview.This intriguing question comes from Data Types in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» CORRECT OPTION is (d) all of the mentioned To EXPLAIN: All objects in R have an Attribute list. |
|
| 9. |
Data frames can have additional attributes such as __________(a) Rowname()(b) Rownames()(c) R.names()(d) D.names()This question was addressed to me at a job interview.I want to ask this question from Data Types topic in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right option is (B) Rownames() |
|
| 10. |
To extract a sublist, we use _________ brackets.(a) Flower(b) Square(c) Double(d) SingleThis question was posed to me during an interview for a job.My question is from Data Types in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right OPTION is (d) Single |
|
| 11. |
Which function replicates elements of vectors?(a) C(b) Rep(c) Crep(d) GrepI have been asked this question in examination.I'd like to ask this question from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct choice is (b) Rep |
|
| 12. |
By what function we can create data frames?(a) Data.frames()(b) Data.sets ()(c) Function ()(d) C ()The question was asked in a national level competition.Enquiry is from Data Types topic in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct answer is (a) Data.frames() |
|
| 13. |
A data frame is a special type of list where every element of the list has ______ length.(a) Same(b) Different(c) May be different(d) May be sameI had been asked this question by my college professor while I was bunking the class.My doubt is from Data Types topic in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct answer is (a) Same |
|
| 14. |
Which are indexed by either row or column using a specific name or number?(a) Datasets(b) Data frames(c) Data(d) FunctionsThe question was asked in an internship interview.I'd like to ask this question from Data Types in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» CORRECT answer is (B) Data frames To explain: Data frames can be INDEXED by either row or column using a SPECIFIC NAME (that corresponds to either the row or column) or a number. |
|
| 15. |
What is the simplest way of creating the vector?(a) C function(b) Create(c) Destroy(d) InvalidThe question was posed to me during a job interview.I want to ask this question from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» RIGHT option is (a) C FUNCTION To explain: The simplest way to create a vector is through the concatenation function, c. This function BINDS elements TOGETHER, whether they are of character FORM, numeric or logical. |
|
| 16. |
Which dimension corresponds to the explanatory variables collected for each species?(a) First(b) Second(c) Third(d) FifthThe question was asked in unit test.This interesting question is from Data Types topic in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct CHOICE is (b) Second |
|
| 17. |
A __________ is a set of elements appearing in rows and columns where the elements are of the same mode whether they are logical, numeric (integer or double), complex or character.(a) Vector(b) Matrix(c) Lists(d) Data framesThis question was addressed to me during an interview.My question is taken from Data Types topic in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct option is (B) Matrix |
|
| 18. |
Which function takes a dim attribute which creates the required number of dimensions?(a) Vector(b) Array(c) Matrix(d) ListsI have been asked this question at a job interview.This interesting question is from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct OPTION is (b) Array |
|
| 19. |
All columns in a matrix must have the same mode and the _________ length.(a) Different(b) Same(c) May be the same(d) May be differentThe question was asked in an internship interview.My query is from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct option is (b) Same |
|
| 20. |
R has how many atomic classes of objects?(a) 1(b) 2(c) 3(d) 5I got this question in an interview for job.This question is from Data Types in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right ANSWER is (d) 5 |
|
| 21. |
The first component can be accessed using __________ operator.(a) Intraction(b) Extraction(c) AND(d) ORThis question was posed to me by my college professor while I was bunking the class.The question is from Data Types in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct choice is (B) Extraction |
|
| 22. |
In R using the function, ________ one can check the data type of vector.(a) Typeof()(b) Castof()(c) Function()(d) C()I had been asked this question in unit test.Question is taken from Data Types in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right choice is (a) Typeof() |
|
| 23. |
On what basis of a variable, OS allocates memory and decides what can be stored in the reserved memory?(a) Data bases(b) Data sets(c) Data types(d) ListsThis question was addressed to me in a national level competition.My enquiry is from Data Types topic in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct OPTION is (c) Data types |
|
| 24. |
Numbers in R are generally treated as _______ precision real numbers.(a) single(b) double(c) real(d) imaginaryThe question was posed to me in class test.This interesting question is from Data Types topic in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right answer is (b) double |
|
| 25. |
First component of the list can be accessed by _____________(a) Name of the component(b) List name(c) Function(d) PackageI had been asked this question in a national level competition.My query is from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct OPTION is (a) Name of the component |
|
| 26. |
Which function is used to enter in data at the terminal?(a) Scanned(b) Scnn(c) Scan(d) SccnI have been asked this question in an interview for job.The origin of the question is Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct option is (c) Scan |
|
| 27. |
The four most frequently used types of data objects in Rare vectors, matrices, data frames and ________(a) Function(b) Lists(c) Packages(d) InterfacesThis question was addressed to me at a job interview.Asked question is from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct ANSWER is (b) Lists |
|
| 28. |
Which is more general than a matrix, in that different columns can have different modes?(a) Data types(b) Data frames(c) Data sets(d) DatabasesI had been asked this question in an interview for internship.This intriguing question originated from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct answer is (c) DATA sets |
|
| 29. |
Which function gives the list as output?(a) Spline(b) Matrix(c) Vector(d) AlphabetI have been asked this question during an online interview.This key question is from Data Types in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The CORRECT answer is (a) SPLINE |
|
| 30. |
Which function can be used to determine the names assigned to a list?(a) Names(b) Name(c) Nam(d) NemThe question was posed to me in an online quiz.My doubt is from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct choice is (a) Names |
|
| 31. |
Density function gives output as ________(a) Matrix(b) Lists(c) Vector(d) NumberThis question was posed to me by my college professor while I was bunking the class.My question is from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct option is (b) Lists |
|
| 32. |
An ordered factor is used to represent an __________(a) Ordinal variable(b) Simple variable(c) Coordinal variable(d) Biordinal variableThe question was posed to me in examination.The origin of the question is Data Types topic in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right choice is (a) Ordinal VARIABLE |
|
| 33. |
If you explicitly want an integer, you need to specify the _____ suffix.(a) D(b) R(c) L(d) KI have been asked this question during an online interview.Question is from Data Types topic in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct choice is (c) L |
|
| 34. |
How can we access the first component of the list?(a) Number of the position(b) Function(c) Package(d) ToolsThe question was asked in an interview for job.My question is taken from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right option is (a) Number of the position |
|
| 35. |
Accessing elements is achieved through a process called ________(a) Indexing(b) Outdexing(c) Highlighting(d) ScrappingThe question was posed to me by my school principal while I was bunking the class.This key question is from Data Types topic in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» CORRECT CHOICE is (a) Indexing To ELABORATE: Accessing elements is achieved through a process called indexing. Indexing may be done by a VECTOR of positive integers and negative integers to indicate inclusion. |
|
| 36. |
Which of the following is a 3-dimensional dataset?(a) Eris(b) Iris(c) Toris(d) IrisThe question was posed to me in class test.My doubt stems from Data Types in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right answer is (B) Iris |
|
| 37. |
Decimal values are referred as ________ data types in R.(a) Numeric(b) Character(c) Integer(d) ListsThe question was posed to me in class test.My enquiry is from Data Types in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct choice is (a) Numeric |
|
| 38. |
Attributes of an object (if any) can be accessed using the ______ function.(a) objects()(b) attrib()(c) attributes()(d) obj()This question was addressed to me during an interview.The doubt is from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct CHOICE is (C) attributes() |
|
| 39. |
vectors can be one of two types namely atomic vectors and _______(a) Matrix(b) Vector(c) Lists(d) ArrayI had been asked this question in exam.This is a very interesting question from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct option is (c) Lists |
|
| 40. |
Point out the correct statement?(a) Empty vectors can be created with the vector() function(b) A sequence is represented as a vector but can contain objects of different classes(c) “raw” objectsare commonly used directly in data analysis(d) The value NaN represents undefined valueThis question was posed to me in quiz.This interesting question is from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right ANSWER is (a) EMPTY vectors can be created with the VECTOR() function |
|
| 41. |
Computation with vectors is achieved using an element-by-element operation for avoiding _________(a) Loops(b) Functions(c) Packages(d) InterfacesI had been asked this question in my homework.I'm obligated to ask this question of Data Types topic in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct choice is (a) Loops |
|
| 42. |
Factors are the r-objects which are created using a _________(a) Vector(b) Matrix(c) Lists(d) ArrayThis question was addressed to me in an interview for internship.Question is taken from Data Types in chapter Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct OPTION is (a) Vector |
|
| 43. |
The _________ function returns a list of densities (y) corresponding to bin values (x).(a) Spline(b) Density(c) Lists(d) LocatorI had been asked this question in homework.My question is from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct CHOICE is (a) Spline |
|
| 44. |
Joining two lists can be achieved either using the _________ function.(a) Concat(b) Join(c) Reduce(d) DeleteThe question was posed to me in a national level competition.My query is from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct CHOICE is (a) Concat |
|
| 45. |
________ are similar to matrices but can have more than two dimensions.(a) Functions(b) Packages(c) Arrays(d) ColumnsI had been asked this question during a job interview.My doubt stems from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct CHOICE is (c) ARRAYS |
|
| 46. |
Point out the correct statement?(a) The value NaN represents undefined value(b) Number Inf represents infinity in R(c) NaN can also be thought of as a missing value(d) “raw” objectsare commonly used directly in data analysisI got this question by my school teacher while I was bunking the class.This is a very interesting question from Data Types in section Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Right answer is (b) NUMBER INF represents infinity in R |
|
| 47. |
A _________ is a two-dimensional rectangular data set.(a) Vector(b) Lists(c) Matrix(d) FunctionsI had been asked this question in an internship interview.This interesting question is from Data Types topic in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct choice is (c) Matrix |
|
| 48. |
What should we use to access elements with a value greater than five?(a) Subsetting commands(b) Use functions(c) Packages(d) InterfacesThis question was addressed to me at a job interview.Query is from Data Types topic in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct choice is (a) Subsetting COMMANDS |
|
| 49. |
Factors are created using the _______ function.(a) C()(b) Function()(c) Array()(d) Lists()I got this question during an internship interview.The origin of the question is Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» The correct option is (B) Function() |
|
| 50. |
R objects can have attributes, which are like ________ for the object.(a) metadata(b) features(c) expression(d) dimensionsThe question was posed to me in an internship interview.I want to ask this question from Data Types in division Nuts and Bolts and Getting Data In and Out of R Programming |
|
Answer» Correct option is (a) METADATA |
|