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.
| 1401. |
Which of the following can be considered as object attribute?(a) dimensions(b) class(c) length(d) all of the mentioned |
|
Answer» Correct option is (d) all of the mentioned To explain: All objects in R have an Attribute list. |
|
| 1402. |
Which of the following operator is used to create integer sequences?(a) :(b) ;(c) –(d) ~ |
|
Answer» Right choice is (a) : To explain: “:” operator is used to create an integer sequence. The other operators are used for other purposes. Integer sequence is the basic operator used in R. The [ operator can be used to extract multiple elements of a vector by passing the operator an integer sequence. |
|
| 1403. |
They primary R system is available from the ______(a) CRAN(b) CRWO(c) GNU(d) CRDO |
|
Answer» Right choice is (a) CRAN The explanation is: CRAN stands for Comprehensive R Archive Network. |
|
| 1404. |
Which of the following creates a new ggplot plot from a data frame?(a) qplot_ggplot(b) ggplot.data.frame(c) ggfluctuation(d) ggmissplot |
|
Answer» Correct answer is (b) ggplot.data.frame To elaborate: Default list of aesthetic mappings are displayed. |
|
| 1405. |
Which of the following R code creates a connection to ‘foo.txt’?(a) con |
|
Answer» Correct option is (a) con <- file(“foo.txt”) Easy explanation: Open is used for opening connection to ‘foo.txt’ in read-only mode. |
|
| 1406. |
The data type of the R-object becomes the data type of the ________(a) Functions(b) Packages(c) Variables(d) Lists |
|
Answer» Right answer is (c) Variables The best I can explain: In R, the variables are not declared as some data type. The variables are assigned with R-Objects and the data type of the R-object will become the data type of the variable. There are many types of R-objects. |
|
| 1407. |
One of the 27 nurses in a nursing home has resigned. If the ratio of staff nurse to the patients is 1 : 6, how many maximum patients can be admitted?A. 156B. 162C. 150D. 1681. B2. C3. D4. A |
|
Answer» Correct Answer - Option 4 : A Given: Original Number of nurses = 27 Ratio of nurse to the patients = 1 ∶ 6 Concept used: Using the concept of ratio Calculation: Let the maximum number of patient be x. Original Number of nurses = 27 New number of nurses = 27 – 1 ⇒ New number of nurses = 26 According to the question, Nurse ∶ Patient = 1 ∶ 6 ⇒ 26/x = 1/6 ⇒ x = 156 ∴ The maximum patients can be admitted is 156. |
|
| 1408. |
Mountains of Northern Mountain system are depicted in the figure. Name the places. |
|
Answer» A) 1) Karakoram 2) Ladakh 3) Zaskar B) 1) Himadri 2) Himachal 3) Siwalik C) 1) Patkai Bum 2) Naga hills 3) Khasi, Garo, 4) Mizo hills |
|
| 1409. |
Read the following passage carefully and on the basis of your reading answer the questions given below it :The Himalayas are beautiful mountains to the North India. They stretch for two thousands miles from Kashmir to Assam. Some of the world’s highest peaks are in the Himalayas. The highest peak is Mount Everest. The tops of the mountains are covered with snow throughout the year. Therefore, we call them the Himalayas or ‘the abode of snow’. There are many beautiful lakes and forests in the Himalayas. Many passages connect India with Tibet, Turkistan and Afghanistan. Many rivers, the Ganga, the Yamuna, the Brahmaputra and the Beas flow from these mountains. The climate and the scenery of these mountains are so charming that people have built many hill stations there. Many visitors go to the hill stations for pleasure and relaxation.1. How far do the beautiful mountains of the Himalayas stretch?2. What other name is given to the mountains of the Himalayas?3. What does the word ‘Himalayas’ stand for?4. Why do the visitors go to the hill stations?5. Explain the italicized words in the passage.6. Give a suitable title to the above passage. |
|
Answer» 1. The beautiful mountains of the Himalayas stretch for two thousand miles from Kashmir to Assam. |
|
| 1410. |
I can’t find the book ________ . A) nowhere B) everywhere C) anywhere D) somewhere |
|
Answer» Correct option is C) anywhere |
|
| 1411. |
The dimension attribute is itself an integer vector of length _______(a) 1(b) 2(c) 3(d) 4 |
|
Answer» The correct option is (b) 2 To explain I would say: It is itself an integer vector of length 2. The dimension attribute in R is an integer vector. Real values larger in modulus than the largest integer are coerced to NA. Matrices are vectors with a dimension attribute. The dimension attribute is itself an integer vector of length 2 (number of rows, number of columns). |
|
| 1412. |
Lists can be coerced with which function?(a) As.lists(b) Has.lists(c) In.lists(d) Co.lists |
|
Answer» The correct answer is (a) As.lists To explain: Lists are sometimes called generic vectors because the elements of a list can be of any type of R object, even lists containing further lists. This property makes them fundamentally different from other atomic vectors. Create lists using list() and coerce other objects using as.list(). |
|
| 1413. |
Which of the following language supports lexical scoping?(a) Perl(b) Python(c) Common Lisp(d) All of the mentioned |
|
Answer» Correct answer is (d) All of the mentioned To explain: Lexical scoping in R has consequences beyond how free variables are looked up. |
|
| 1414. |
Factors are created using the _______ function.(a) C()(b) Function()(c) Array()(d) Lists() |
|
Answer» The correct option is (b) Function() Best explanation: Factors are created using the factor() function. The labels are always character irrespective of whether it is numeric or character or also Boolean etc. in the vector. The nlevels functions will give the count of levels. |
|
| 1415. |
The ________ function creates a regular sequence of values to form a vector.(a) sequel(b) Rep(c) seq(d) Grep |
|
Answer» The correct choice is (c) seq The best I can explain: The rep function replicates elements of vectors. The seq function creates a regular sequence of values to form a vector. The four most frequently used types of data objects in R are vectors, matrices, data frames and lists. |
|
| 1416. |
The length of a list is ______ to the number of components in that list.(a) Double(b) Equal(c) Triple(d) One fourth |
|
Answer» The correct answer is (b) Equal The explanation is: The length of a list is equal to the number of components in that list. Lists can be created using the list function. Like data frames, they can incorporate a mixture of modes into the one list and each component can be of a different length or size. |
|
| 1417. |
There was a house at ________ . A) the mountain foot B) the foot of the mountain C) the feet of the mountain D) the mountain’s foot |
|
Answer» Correct option is B) the foot of the mountain |
|
| 1418. |
Read the following passage carefully and on the basis of your reading answer the questions given below it :Gandhiji was not against machines. He believed that a machine is good if it serves man, but it is harmful when it seeks to master him. He was against the large scale use of machines, because he wanted to utilize the immense man power and cattle power of India. He was completely in favour of village and cottage industries so that people could employ their own resources to improve their economic condition. Gandhiji was a believer in self-dependence so that people might not rely upon a British and foreign aid for their prosperity. The revival of hand-spinning and hand weaving industry in our country shook the foundation of the British Empire. Another reason of Gandhiji’s dislike for machines was that large scale production has the tendency of concentrating wealth in a few hands.1. What was Gandhiji’s belief about machines?2. Why was Gandhiji against the large scale use of machines?3. Why was Gandhiji completely in favour of village and cottage industries?4. What shook the foundation of the British Empire?5. Explain the italicized words in the passage.6. Give a suitable title to the above passage. |
|
Answer» 1. According to Gandhiji a machine is good if it serves man but it is harmful when it seeks to master him. |
|
| 1419. |
The current user defined objects like lists, vectors, etc. is referred to as __________ in the R language.(a) Work names(b) Work space(c) Environment(d) Console |
|
Answer» The correct option is (a) Work names Explanation: The current R working environment of the user which has user defined objects like lists, vectors, etc. is referred to as Workspace in R language. The workspace of R is flexible to all functions of statistics. |
|
| 1420. |
Lists can be created using the _______ function.(a) Matrix.li(b) Matrix.lists(c) Lists.matric(d) List |
|
Answer» Right answer is (d) List The explanation is: Lists can be created using the list function. Like data frames, they can incorporate a mixture of modes into the one list and each component can be of a different length or size. |
|
| 1421. |
Which dimension corresponds to the explanatory variables collected for each species?(a) First(b) Second(c) Third(d) Fifth |
|
Answer» Correct choice is (b) Second For explanation I would say: The second dimension corresponds to the explanatory variables collected for each species. The third dimension corresponds to the species. |
|
| 1422. |
which of the following statement make a mosaic plot?(a) histogram()(b) mosaicplot()(c) bar()(d) which.max(x) |
|
Answer» Right choice is (b) mosaicplot() To explain: histogram() is lattice command for producing a histogram. |
|
| 1423. |
What are the different types of sorting algorithms available in R language?(a) Bubble(b) Selection(c) Merge(d) All sorts |
|
Answer» Right option is (d) All sorts Explanation: Bucket Sort, Selection Sort, Quick Sort, Bubble Sort, Merge Sort is the different sorts available in R language. Each and Every sorting algorithm is available in R. |
|
| 1424. |
Whose is that car? It’s ________ . A) theirs B) there’sC) their D) there |
|
Answer» Correct option is A) theirs |
|
| 1425. |
The hospital board clearly mentioned that you ________ smoke in the hospital as it is a health hazard for all. A. cannot B. must not C. need not D. might not |
|
Answer» Correct option is (B) must not |
|
| 1426. |
A person who talks to ________ is not necessarily mad. A) himself B) oneself C) yourself D) itself |
|
Answer» Correct option is A) himself |
|
| 1427. |
What are the objectives of e Governance ? How does e Governance empowers the citizens. |
|
Answer» E-Governance or electronic governance is the use of electronic i.e. information and communication technology (ICT) tools for governance by the government for the citizens. Basic Objective is to provide access to every piece of information of the Government and of public importance. For example: India.gov.in E-governance empowers the citizens socially and economically, and enhances their lives by providing them with quality information and better services. It enables citizens to access information directly, without paying any money to a middleman or a tout. It ushers transparency in the system. |
|
| 1428. |
Read the following passage carefully and on the basis of your reading answer the questions given below it :Lions usually are among the foolest of creatures and by reason of their love of dead flesh and their habit of returning to their victims again and again after being driven away, they are fairly easy to poison when they become troublesome. Poison, therefore, is the most effective weapon to use against them. Man -eaters, as a rule, however, are extremely difficult to destroy by their method; their meeting with man seems to fill them with an unusual cunning. The most striking example I know of this cunning of a man-eater is connected with a panther, which was killed in the Garhwal district of the lower Himalayas, but not until it had terrorised the place for seven years and during this time had killed 125 persons. Every method which the skill of man could think of failed. This terrible man-eater was at last shot-dead by a European man, who sat up mightly for ten weeks till he got his chance.1. Why are the lions the most foolish of creatures?2. Why do they return to their victim again and again?3. What is the most effective weapon to get rid of a lion?4. How many persons did the panther of Garhwal kill?5. Explain the italicized words in the passage.6. Give a suitable title to the above passage. |
|
Answer» 1. The lions are regarded the most foolish creatures they are habitual of returning to their victims again and again. So they are easy to poison. |
|
| 1429. |
“We deem it our duty and mission in life, To bless and praise the deserving ones; Never shall we fail in what we commit,Shall nourish the ones that nourish the world.”(a) What is the poet’s mission in life? (b) Explain the last line. |
|
Answer» (a) The poet’s mission is to identify deserving people with natural talents and appreciate them. (b) The poet claims that simple people like farmers, teachers and other noble professionals nourish those who nourish the world. |
|
| 1430. |
Read the following sets of poetic lines and answer the following.“I live with bread like you, feel want, Taste grief, need friends – subjected thus, How can you say to me, I am a king?”(а) Mention the figure of speech employed in the last line. (b) What is surprising about the king’s words to his loyal friends? |
|
Answer» (а) Interrogation (b) The king feels he is also an ordinary mortal deceived by the jester ‘death’. He also needs to taste grief and needs the support of friends during distress. This surprises his loyal friends. |
|
| 1431. |
Which of the following lists names of variables in a data.frame?(a) quantile()(b) names()(c) barchart()(d) par() |
|
Answer» Right option is (a) quantile() For explanation I would say: names function is used to associate name with the value in the vector. |
|
| 1432. |
The _________ function is used to generate summary statistics from the data frame within strata defined by a variable.(a) groupby()(b) group()(c) group_by()(d) arrange |
|
Answer» The correct option is (c) group_by() Easiest explanation: The general operation here is a combination of splitting a data frame into separate pieces defined by a variable or group of variables (group_by()), and then applying a summary function across those subsets (summarize()). |
|
| 1433. |
If the programmers want the output to be a data frame or a vector, then ________ function is used.(a) Lapply(b) Sapply(c) Vapply(d) Zapply |
|
Answer» Correct answer is (a) Lapply Easiest explanation: If the programmers want the output to be a data frame or a vector, then sapply function is used whereas if the programmer wants the output to be a list then lapply is used. vapply allows the programmer to specific the output type. |
|
| 1434. |
Sir, ______ I leave the class? I am seriously sick. (Polite request) |
|
Answer» Sir, Shall I leave the class? I am seriously sick. |
|
| 1435. |
Which of the following statement finds the maximum for each column?(a) apply(x,2,max)(b) col.max(x)(c) which.min(x)(d) which.max(x) |
|
Answer» The correct answer is (a) apply(x,2,max) The best I can explain: col.max(x) is another way to find which column has the maximum value for each row. |
|
| 1436. |
To start with the new package in RStudio, double-click the pkgname.Rproj file that _______(a) Delete()(b) Create()(c) Run()(d) Exit() |
|
Answer» The correct choice is (b) Create() To elaborate: To get started with your new package in RStudio, double-click the pkgname.Rproj file that create() just made. This will open a new RStudio project for your package. Projects are the way to develop packages. |
|
| 1437. |
There’s never _______ petrol left after Rahul uses the car. A. much B. little C. many D. a little |
|
Answer» Correct option is (A) much |
|
| 1438. |
Which option displays the correct change of the following to reported speech? Sunitha asked Venkat, “How much is the rent for your flat?” A. Sunitha asked Venkat how much was his rent for flat. B. Sunitha asked Venkat how much the rent for his flat was. C. Sunita enquires from Venkat that how much rent he payD. Sunita told Venkat how much the rent for his flat was. |
|
Answer» Correct option is (B) Sunitha asked Venkat how much the rent for his flat was. |
|
| 1439. |
I’ll be 13 tomorrow, ________ ? A) am I B) aren’t I C) won’t I D) will I |
|
Answer» Correct option is C) won’t I |
|
| 1440. |
What are the uses of Internet?{at least 10} |
|
Answer» Electronic mail. At least 85% of the inhabitants of cyberspace send and receive e-mail. Some 20 million e-mail messages cross the Internet every week. Research. Downloading files. Discussion groups. These include public groups, such as those on Usenet, and the private mailing lists that ListServ manages. Interactive games. Who hasn’t tried to hunt down at least one game? Education and self-improvement. On-line courses and workshops have found yet another outlet. Friendship and dating. You may be surprised at the number of electronic "personals" that you can find on the World Wide Web. Electronic newspapers and magazines. This category includes late-breaking news, weather, and sports. We’re likely to see this category leap to the top five in the next several years. Job-hunting. Classified ads are in abundance, but most are for technical positions. Shopping. It’s difficult to believe that this category even ranks. It appears that "cybermalls" are more for curious than serious shoppers. |
|
| 1441. |
“As if this flesh which walls about our lifeWere brass impregnable and, humour’d thus”(а) What does the king realize? (b) Explain the phrase ‘brass impregnable’. |
|
Answer» (a) The king realises that his mortal body also will come to an end like others. (b) ‘Brass impregnable’ means someone that is unconquerable. |
|
| 1442. |
She runs _____ than her brother. A) faster B) fastest C) as fast D) more fast |
|
Answer» Correct option is A) faster |
|
| 1443. |
Brain’s car is _____ in our district. A) fast B) faster C) the fastest D) more fast |
|
Answer» Correct option is C) the fastest |
|
| 1444. |
He came late because he can’t run ______ the others. A) as fast as B) faster C) the fastest of D) quickly as |
|
Answer» Correct option is A) as fast as |
|
| 1445. |
She was impatient ______ the arrival of her boyfriend. A) with B) at C) for D) on |
|
Answer» Correct option is C) for |
|
| 1446. |
______ splits a data frame and results an array (hence the da). Hopefully you’re getting the idea here.(a) apply(b) daply(c) stats(d) plyr |
|
Answer» The correct choice is (b) daply Explanation: ddply splits a data frame and returns a data frame. |
|
| 1447. |
I am taking driving lessons now. Hopefully, I ___________my driving test by November. A. will take B. would pass C. will have taken D. will be taking |
|
Answer» Correct option is (C) will have taken |
|
| 1448. |
Did you hear ________ Julie said? A) what B) that C) that what D) which |
|
Answer» Correct option is A) what |
|
| 1449. |
That old lady can’t stop me ________ the tennis match on my radio. A) to listen B) listening C) listen to D) listening to |
|
Answer» Correct option is D) listening to |
|
| 1450. |
“I heard a thousand blended notes While in a grove I sate reclined, ”(a) What do you mean by‘blended notes’? (b) What was the poet doing there? |
|
Answer» (a) The blended notes mean the combined music of birds which cohabit in the grove. (b) The poet was relaxed and was listening to the music of the birds. |
|