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.
| 1351. |
Individual R objects can be saved to a file using the _____ function.(a) save(b) put(c) save_image(d) get |
|
Answer» Right option is (a) save To elaborate: The key functions for converting R objects into a binary format are save(), save.image(), and serialize(). |
|
| 1352. |
The square of the correlation coefficient r 2 will always be positive and is called the ________(a) Regression(b) Coefficient of determination(c) KNN(d) Algorithm |
|
Answer» Correct option is (b) Coefficient of determination The explanation is: The square of the correlation coefficient r square will always be positive and is called the coefficient of determination. This also is equal to the proportion of the total variability that’s explained by a linear model. |
|
| 1353. |
Which of the following is tool for chi-square distributions?(a) pchisq()(b) chisq()(c) pnorm(d) barchart() |
|
Answer» Right choice is (c) pnorm For explanation I would say: pnorm() is tool for normal distributions. |
|
| 1354. |
The purpose of fisher.test() is _______ test for contingency table.(a) Chisq(b) Fisher(c) Prop(d) Stem |
|
Answer» Correct answer is (b) Fisher Explanation: prop.test() is used to inference for 1 proportion using normal approx. |
|
| 1355. |
What is the function used to test objects (returns a logical operator) if they are NA?(a) is.na()(b) is.nan()(c) as.na()(d) as.nan() |
|
Answer» The correct option is (a) is.na() The explanation: is.na() is the function used to test if they are NA. We can check NA ‘s at any stage of the code. Generally, We will remove the NA’s for the operations in R like mean etc.., is.na() is used to test objects if they are NA. |
|
| 1356. |
Chhachhrauli is known as ______ of Haryana.1. Cherrapunji2. Agra3. Texas4. New York |
|
Answer» Correct Answer - Option 1 : Cherrapunji The correct answer is Cherrapunji.
|
|
| 1357. |
Which of the following package has temporary files?(a) Single(b) Source(c) Bundle(d) Double |
|
Answer» Correct answer is (b) Source Best explanation: Source package might contain temporary files used to save time during development and the compilation artifacts in a source. These will be never found in a bundle. |
|
| 1358. |
Which of the following is one of the most important aspects of a good package?(a) Title(b) Description(c) Documentation(d) Libraries |
|
Answer» Correct choice is (c) Documentation The best I can explain: Documentation is one of the most important aspects of a good package. Without it, users won’t know how to use your package. Documentation is very much useful for the future. |
|
| 1359. |
________ is used for main title in graph.(a) Title(b) Main(c) Title Main(d) Main Title |
|
Answer» The correct choice is (b) Main For explanation: Main is used for the main title in the graphics.R has a variety of graphics functions. Each function has its own set of arguments. |
|
| 1360. |
_________ involves predicting a response with meaningful magnitude, such as quantity sold, stock price, or return on investment.(a) Regression(b) Summarization(c) Clustering(d) Classification |
|
Answer» Right answer is (a) Regression To explain I would say: Regression and classification are two common types predictive models. |
|
| 1361. |
Multiple objects can be de parsed at once and read back using function _____(a) source()(b) read()(c) dget()(d) dput() |
|
Answer» Right answer is (a) source() Explanation: Martin Machler made an important contribution by making Ross and Robert use the GNU General Public License to make R free software. This was critical because this allowed for the source code for the entire R system to be accessible to anyone who wanted to tinker with it. |
|
| 1362. |
Multiple objects can be de parsed at once using the ______ function.(a) dput()(b) write()(c) dump()(d) dget() |
|
Answer» The correct option is (a) dput() To elaborate: dput is used for outputting a textual representation of an R object. The dump() and dput() functions are useful because the resulting textual format is editable, and in the case of corruption, potentially recoverable. |
|
| 1363. |
Which of the following is a base package for R language?(a) util(b) lang(c) tools(d) spatial |
|
Answer» Correct answer is (c) tools Explanation: The other packages contained in the “base” system include utils, stats, datasets, graphics, grDevices, grid, methods, parallel, compiler, splines, tcltk, stats4. |
|
| 1364. |
________ function carries out a chi-square test.(a) chisq.test()(b) t.test()(c) prop.test()(d) fisher.test() |
|
Answer» Right answer is (a) chisq.test() Easiest explanation: prop.test() is used to inference for 1 proportion using normal approx. |
|
| 1365. |
DCF is an abbreviation for__________(a) Debian control function(b) Differentiative common function(c) Debian control format(d) Debian common format |
|
Answer» Right choice is (c) Debian control format Explanation: DESCRIPTION uses a very simple file format called DCF, the Debian control format. When you first start writing packages, you’ll mostly use these metadata to record what packages are needed to run your package. |
|
| 1366. |
Which package resorts to numerical methods when it encounters a model it does not recognize.(a) destrEx(b) ditrEx(c) distrEx(d) Exdistr |
|
Answer» Right choice is (c) distrEx The explanation is: distrEx provides some extensions of package distr and further functionalities like var, sd, IQR, mad, median, skewness, kurtosis truncated moments. |
|
| 1367. |
The first Women’s University of Haryana is named after1. Swami Shraddhanand2. Swami Dayanand3. Bhagat Phool Singh4. Kalpana Chawla |
|
Answer» Correct Answer - Option 3 : Bhagat Phool Singh The correct answer is Bhagat Phool Singh.
|
|
| 1368. |
Which of the following is used to plot multiple histograms?(a) multi.plot()(b) multi.hist(c) xyplot.multi()(d) poly() |
|
Answer» The correct option is (b) multi.hist Best explanation: A histogram is a graphical representation of the distribution of numerical data. |
|
| 1369. |
Which of the following function takes multiple columns?(a) spread()(b) gather()(c) separate()(d) extract() |
|
Answer» Correct option is (b) gather() Easiest explanation: gather() gathers column into key-value pairs. |
|
| 1370. |
What is predicting y for a value of x that is within the interval of points that we saw in the original data called?(a) Regression(b) Extrapolation(c) Intra polation(d) Polation |
|
Answer» Correct answer is (c) Intra polation For explanation I would say: Predicting y for a value of x that is within the interval of points that we saw in the original data is called interpolation. Predicting y for a value of x that’s outside the range of values we actually saw for x in the original data is called extrapolation. |
|
| 1371. |
Which of the following will add the title “R language” to the graph?(a) titleAdd( “R language”)(b) title( “R language”)(c) titleBar( “R language”)(d) var(x, na.rm=TRUE) |
|
Answer» Right option is (b) title( “R language”) The explanation is: This function can be used to add labels to a plot. |
|
| 1372. |
Finally, in _________ R version 1.0.0 was released to the public.(a) 2000(b) 2005(c) 2010(d) 2012 |
|
Answer» The correct option is (a) 2000 To explain: Source code for the entire R system is accessible to anyone who wanted to tinker with it. |
|
| 1373. |
At higher level one “limitation” of R is that its functionality is based on __________(a) Consumer demand(b) User contributions(c) User contributions and Consumer demand(d) Lower level contributions |
|
Answer» Correct answer is (c) User contributions and Consumer demand To elaborate: Its functionality is based on consumer demand and user contributions. It is only for the higher level. The capabilities of the R system generally reflect the interests of the R user community. However, now some of those communities have adopted R and we are seeing more code being written for those kinds of applications. |
|
| 1374. |
The abbreviation of Cumulative Distributive Function is ________(a) CDFN(b) CMDF(c) CMD(d) CDF |
|
Answer» Right choice is (d) CDF To explain I would say: A cumulative distributive function P(x) is the probability of getting some value less than a certain value x. If p(x) will be the density function for a probability distribution, then that will be the cumulative distributive function P(x) is calculated as the integral of p(x) over the interval −∞ to x. |
|
| 1375. |
_________ variables are categorical variables which can hold either string or numeric values.(a) Factor(b) Simpler(c) Function(d) Package |
|
Answer» Correct answer is (a) Factor The explanation is: Factor variables are categorical variables that hold the string or numeric values. Factor variables are used in various types of graphics and particularly for statistical modelling where a correct number of degrees of freedom is assigned to them. |
|
| 1376. |
Which of the following builds empirical cumulative distribution function?(a) ecdf()(b) cum(c) cumsum(d) lm() |
|
Answer» The correct choice is (a) ecdf() To elaborate: cumsum() is used to produce running total of values for input vector. |
|
| 1377. |
Point out the correct statement?(a) Rprof() is used to turn off the profiler(b) At each line of the output, the profiler writes out the function call stack(c) The summaryprof() function tabulates the R profiler output(d) The Rprofiler() function starts the profiler in R |
|
Answer» Correct option is (b) At each line of the output, the profiler writes out the function call stack Easiest explanation: The Rprofiler() function starts the profiler in R. |
|
| 1378. |
R is technically much closer to the Scheme language than it is to the original _____ language.(a) B(b) C(c) C++(d) S |
|
Answer» Right choice is (d) S Best explanation: R’s semantics, while superficially similar to S, are quite different. |
|
| 1379. |
The elapsed time may be ________ than the user time if your machine has multiple cores/processors.(a) smaller(b) greater(c) equal to(d) null |
|
Answer» Correct answer is (a) smaller Explanation: The elapsed time may be greater than the user time if the CPU spends a lot of time waiting around. |
|
| 1380. |
In ________ Insightful purchased the S language from Lucent for $2 million.(a) 2002(b) 2003(c) 2004(d) 2005 |
|
Answer» The correct choice is (c) 2004 The explanation: TIBCO is the current owner of the S language. In 2008, Insightful was acquired by TIBCO for $25 million. As of this writing, TIBCO is the current owner of the S language and is its exclusive developer. |
|
| 1381. |
The cumulative frequency distribution of a categorical variable can be checked using the ________ function in R language.(a) Sum(b) Cumsum(c) Lumpsum(d) Resum |
|
Answer» Correct answer is (b) Cumsum For explanation: The cumulative frequency distribution of a categorical variable can be checked using the cumsum () function in the R language. The frequency distribution of a categorical variable can be checked using the table function in the R language. |
|
| 1382. |
In 2004, ________ purchased the S language from Lucent for $2 million.(a) Insightful(b) Amazon(c) IBM(d) TCS |
|
Answer» The correct answer is (a) Insightful For explanation: TIBCO is the current owner of the S language and is its exclusive developer. |
|
| 1383. |
The ________ for R are the main feature that make it different from the original S language.(a) scoping rules(b) closure rules(c) environment rules(d) closure & environment rules |
|
Answer» The correct answer is (a) scoping rules For explanation I would say: This function never actually uses the argument b, so calling f(2) will not produce an error because the 2 gets positionally matched to a. |
|
| 1384. |
How do you create log linear models in R language?(a) loglm()(b) logmn()(c) logfn()(d) loghy() |
|
Answer» The correct option is (a) loglm() Explanation: loglm is fit log-linear models by iterative proportional scaling. This function provides a front-end of the standard function, loglin, to allow log-linear models to be specified and fitted in a manner similar to that of other fitting functions. |
|
| 1385. |
Which of the following code create a n item vector of random normal deviates?(a) x1 |
|
Answer» The correct option is (c) x1 <- c(rnorm(n)) For explanation I would say: rnorm generates random deviates. |
|
| 1386. |
By what function we can create data frames?(a) Data.frames()(b) Data.sets ()(c) Function ()(d) C () |
|
Answer» Correct answer is (a) Data.frames() The best explanation: Data frames are tabular data objects. Unlike a matrix in each data frame every column will contain different modes of data. Data Frames are created using the data.frame() function. It is the list of vectors of same length. |
|
| 1387. |
_________ display contours of a 3d surface in 2d.(a) aes_contour(b) geom_contour(c) aes_gem(d) aes_auto |
|
Answer» Correct answer is (b) geom_contour Easy explanation: A layer specific dataset – only needed if you want to override the plot defaults. |
|
| 1388. |
In which Himalayan range are hill stations like Shimla and Darjeeling situated? Himadri Himachal Siwalik |
|
Answer» Himachal. Himalayan range are hill stations like Shimla and Darjeeling situated in Himachal. |
|
| 1389. |
Explain the influence of Northern mountains in the climate and human life of India. |
Answer»
|
|
| 1390. |
At which of the following hill stations can tourists visiting in winter experience living in igloos?1. Nainital2. Shimla3. Manali4. Kashmir |
|
Answer» Correct Answer - Option 3 : Manali The correct answer is Manali.
|
|
| 1391. |
On which mountain range are the hill stations like Shimla and Darjeeling? a. Himadri b. Himachal c. Siwalik d. Poorvachal |
|
Answer» Correct option: b. Himachal |
|
| 1392. |
Read the following passage carefully and on the basis of your reading answer the questions given below it :A nation does not live by its big factories, dams or buildings. During the hundred years of foreign rule, our moral character was shaken. Now students are still in the process of training. It is their sacred duty to build up their character. They must learn from the very beginning the lessons of self help, self-reliance and self-sacrifice. These are the essential qualities of character which they must acquire. The time has come now when competition must give way to co-operation in every walk of life. Students must learn to co-operate with each-other in their class-rooms, on the playground and in other activities of life. For them, no duty is of greater importance than the development of character.1. What makes a nation great?2. Why was our moral character shaken during the last hundred years?3. Point out the main duty of the students.4. What should the students try to learn from the very beginning?5. Explain the italicized words in the passage.6. Give a suitable title to the above passage. |
|
Answer» 1. Strong character of citizens make a nation great. |
|
| 1393. |
Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?(a) data |
|
Answer» Right option is (a) data <- read.csv(“foo.txt”) The best explanation: Connections must be opened, then the are read from or written to, and then they are closed. |
|
| 1394. |
__________ create a complete ggplot appropriate to a particular data type.(a) autoplot(b) is.ggplot(c) printplot(d) qplot_ggplot |
|
Answer» Correct answer is (a) autoplot The explanation: autoplot uses ggplot2 to draw a particular plot for an object of a particular class in a single command. |
|
| 1395. |
Point out the wrong statement?(a) One nice feature that R shares with many popular open source projects is frequent releases(b) R has sophisticated graphics capabilities(c) S’s base graphics system allows for very fine control over essentially every aspect of a plot or graph(d) All of the mentioned |
|
Answer» Right choice is (c) S’s base graphics system allows for very fine control over essentially every aspect of a plot or graph To elaborate: R has maintained the original S philosophy, which is that it provides a language that is both useful for interactive work, but contains a powerful programming language for developing new tools. |
|
| 1396. |
If 5 men can do a work in 9 days, then in how many days will 3 men finish the same work?A. 12B.15C. 13D. 181. B2. A3. C4. D |
|
Answer» Correct Answer - Option 1 : B Given: 5 men can do work in 9 days Concept used: If n person can do work in x days, then 1 person can do the work in (n × x) days. Calculation: 5 men can do work in 9 days ⇒ 1 man can do the same work in 9 × 5 = 45 days 3 men can do the same work in 45/3 days ∴ 3 men can do the work in 15 days |
|
| 1397. |
The northern mountains play a very important role in molding the climax and human life of India, justify1. Have been protecting as from foreign invasions2. ……… |
|
Answer» 1. Block the monsoon winds and cause rainfall. 2. Prevent the cold dry wind from entering the north Indian plains. 3. Caused the emergence of diverse flora and fauna. 4. Source region of rivers. |
|
| 1398. |
The northern mountains are the paradise of tourists. Why? Name the famous hill stations here. |
Answer»
|
|
| 1399. |
In the given flow chart showing the divisions of the northern mountains identify what a, b, c, d, e and f represents. |
|
Answer» a) Himadri b) Siwalik c) Ladak d) Zaskar e) Khasi f) Jaintia/Patkaibum |
|
| 1400. |
Read the following passage carefully and on the basis of your reading answer the questions given below it :Of all the Mughal Emperors, Akbar is the most secular in the sense that while other Mughal emperors thought of their religion, sect or tribe, Akbar treated all the religions equally. To him, the Hindus were as dear as the Muslims. He initiated a religion by the name of “Deen-e-Elahi”. He had many Hindu kings as his friends. His ‘nine jewels’ are quite famous. Pandit Nehru has showered lavish praise on Akbar.1. In what sense was Akbar the most secular?2. Who has showered lavish praise on Akbar?3. How did he treat the people of other religions?4. Name the religion Akbar initiated.5. Explain the italicized words in the passage.6. Give a suitable title to the above passage. |
|
Answer» 1. Akbar was the most secular Mughal Emperor in the sense that he treated all the religious equally while other Mughal Emperor thought of their own religion, sect or tribe. |
|