Explore topic-wise InterviewSolutions in .

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.

Which of the following attribute should be used while checking for type combination input and output?(a) .types(b) .type(c) .class(d) all of the mentionedThis question was posed to me in an online interview.I want to ask this question from NumPy in chapter Developing Data Products and Working with NumPy of Data Science

Answer» CORRECT answer is (a) .types

Explanation: Universal FUNCTIONS in NumPy are FLEXIBLE enough to have MIXED type SIGNATURES.
2.

Which of the following can be done by shiny?(a) Tabbed main panels(b) Editable data tables(c) Dynamic UI(d) All of the mentionedI had been asked this question during a job interview.Asked question is from Shiny topic in section Developing Data Products and Working with NumPy of Data Science

Answer» RIGHT OPTION is (d) All of the mentioned

The best explanation: SHINY ALLOWS users to upload files.
3.

Which of the followingreads a data.frame and creates text output referring to the Google Visualization API?(a) gvisAnnotatedLine(b) gvisTimeLine(c) gvisAnnotatedTimeLine(d) none of the mentionedThis question was posed to me during a job interview.This intriguing question comes from googleVis in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

The CORRECT ANSWER is (c) gvisAnnotatedTimeLine

Best explanation: An annotated time LINE is an interactive time SERIES line chart with optional annotations.

4.

Which of the following function can be used to combine different vectors so as to obtain the result for each n-uplet?(a) iid_(b) ix_(c) ixd_(d) all of the mentionedThe question was posed to me in final exam.Question is from NumPy topic in section Developing Data Products and Working with NumPy of Data Science

Answer»

Correct choice is (b) ix_

The best EXPLANATION: Length of the 1D boolean ARRAY MUST coincide with the length of the DIMENSION (or axis) you want to SLICE.

5.

runApp() will run the shiny and open the browser window.(a) True(b) FalseI had been asked this question during an online interview.My doubt stems from Shiny in section Developing Data Products and Working with NumPy of Data Science

Answer»

Correct option is (a) True

The best EXPLANATION: The chart is rendered WITHIN the browser using Flash.

6.

Point out the wrong statement.(a) Shiny is platform for creating interactive programs embedded in to web page(b) Shiny is invented by R folks(c) Time required to create data products using shiny is more(d) All of the mentionedThis question was addressed to me by my college director while I was bunking the class.My question is from Shiny topic in portion Developing Data Products and Working with NumPy of Data Science

Answer»

Right CHOICE is (c) TIME required to CREATE data products using shiny is more

The EXPLANATION: Time to create data products is LESS using shiny.

7.

Which of the following function is for single checkbox widget?(a) checkboxInput(b) dateInput(c) singleboxInput(d) all of the mentionedI had been asked this question during an interview.This question is from Shiny topic in section Developing Data Products and Working with NumPy of Data Science

Answer»

Right ANSWER is (a) checkboxInput

The EXPLANATION: Shiny comes with a family of pre-built widgets, each CREATED with a transparently NAMED R function.

8.

___________ decompose the elements of x into mantissa and twos exponent.(a) trunc(b) fmod(c) frexp(d) ldexpThe question was posed to me by my school teacher while I was bunking the class.This is a very interesting question from NumPy in division Developing Data Products and Working with NumPy of Data Science

Answer»

The correct CHOICE is (c) frexp

For EXPLANATION: FMOD function return the element-wise remainder of DIVISION.

9.

Point out the wrong statement.(a) Each universal function takes array inputs and produces array outputs(b) Broadcasting is used throughout NumPy to decide how to handle disparately shaped arrays(c) The output of the ufunc is necessarily an ndarray, if all input arguments are ndarrays(d) All of the mentionedThe question was posed to me during an interview.The above asked question is from NumPy topic in portion Developing Data Products and Working with NumPy of Data Science

Answer» CORRECT answer is (C) The output of the ufunc is necessarily an ndarray, if all input ARGUMENTS are ndarrays

The BEST I can explain: The output of the ufunc is not necessarily an ndarray, if all input arguments are not ndarrays.
10.

Which of the following method creates a new array object that looks at the same data?(a) view(b) copy(c) paste(d) all of the mentionedThis question was addressed to me during an interview for a job.This interesting question is from NumPy in section Developing Data Products and Working with NumPy of Data Science

Answer»

The correct option is (a) view

Explanation: The COPY method MAKES a COMPLETE copy of the array and its data.

11.

ndarray is also known as the alias array.(a) True(b) FalseThis question was posed to me in an online quiz.The query is from NumPy topic in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

Correct choice is (a) True

To explain I WOULD say: numpy.array is not the same as the STANDARD Python LIBRARY class array.array.

12.

Point out the correct statement.(a) Slidify allows embedded code chunks(b) Slidify presentation cannot be shared easily(c) Slidify is difficult to use(d) None of the mentionedThis question was posed to me by my college director while I was bunking the class.My question is taken from Slidify topic in portion Developing Data Products and Working with NumPy of Data Science

Answer»

Correct OPTION is (a) Slidify ALLOWS EMBEDDED code chunks

Explanation: Slidify allows MATHEMATICAL formulas as well.

13.

Which of the following framework is compatible with slidify?(a) io2015(b) io2012(c) d3(d) all of the mentionedI got this question in an interview for internship.This intriguing question originated from Slidify in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

Right OPTION is (b) io2012

To explain I would say: D3 is a JavaScript LIBRARY for VISUALIZING data with HTML, SVG, and CSS.

14.

gvisAnnotatedTimeLine returns list of class “gvis” and “list”.(a) True(b) FalseI got this question by my school teacher while I was bunking the class.My doubt stems from googleVis topic in portion Developing Data Products and Working with NumPy of Data Science

Answer»

Correct choice is (a) True

For EXPLANATION: The CHART is rendered WITHIN the browser using FLASH.

15.

The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself.(a) reshape, resize(b) resize, reshape(c) reshape2, resize(d) all of the mentionedI have been asked this question during an online exam.The above asked question is from NumPy topic in division Developing Data Products and Working with NumPy of Data Science

Answer»

The correct ANSWER is (a) reshape, resize

Easy explanation - If a dimension is given as -1 in a RESHAPING operation, the other DIMENSIONS are AUTOMATICALLY calculated.

16.

The actual chart of gvisBarChart is rendered by the web browser using _________ or VML.(a) JPEG(b) SVG(c) PDF(d) All of the mentionedI have been asked this question by my college professor while I was bunking the class.This question is from googleVis topic in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

Right choice is (B) SVG

Easiest explanation - GVISBARCHART READS data frame.

17.

Which of the following statement will load slidify?(a) library(slidify)(b) install.library(slidify)(c) install.load(slidify)(d) all of the mentionedThe question was posed to me in semester exam.My question is taken from Slidify in portion Developing Data Products and Working with NumPy of Data Science

Answer» CORRECT CHOICE is (a) library(slidify)

Explanation: Devtools should be INSTALLED in ADVANCE.
18.

How many components are involved in shiny?(a) 3(b) 4(c) 5(d) none of the mentionedThe question was posed to me during an online exam.I'm obligated to ask this question of Shiny topic in division Developing Data Products and Working with NumPy of Data Science

Answer»

Right CHOICE is (d) none of the mentioned

To EXPLAIN: SHINY APPS have TWO components:user-interface script and server script.

19.

Which of the following function can interrupt execution and can be called continuously?(a) browser()(b) browse()(c) search()(d) all of the mentionedI have been asked this question by my school principal while I was bunking the class.The origin of the question is Shiny in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

Right ANSWER is (a) BROWSER()

To EXPLAIN: DEBUGGING shiny APPS can be difficult.

20.

Which of the following sets the size of the buffer used in ufuncs?(a) bufsize(size)(b) setsize(size)(c) setbufsize(size)(d) all of the mentionedI got this question in a national level competition.Origin of the question is NumPy topic in portion Developing Data Products and Working with NumPy of Data Science

Answer» CORRECT option is (C) setbufsize(size)

Explanation: Adjusting the size of the BUFFER may therefore alter the speed at which ufunc calculations of various sorts are COMPLETED.
21.

To create sequences of numbers, NumPy provides a function __________ analogous to range that returns arrays instead of lists.(a) arange(b) aspace(c) aline(d) all of the mentionedThe question was posed to me in semester exam.My question is taken from NumPy topic in division Developing Data Products and Working with NumPy of Data Science

Answer»

The correct option is (a) arange

Best explanation: When arange is used with FLOATING point arguments, it is GENERALLY not possible to PREDICT the number of elements OBTAINED.

22.

Which of the following is R interface to google charts?(a) googleVis(b) googleChart(c) googleDataVis(d) all of the mentionedI had been asked this question in a job interview.This interesting question is from googleVis in section Developing Data Products and Working with NumPy of Data Science

Answer»

Correct CHOICE is (a) GOOGLEVIS

Easy explanation - googleVis allow users to create interactive CHARTS BASED on data frames.

23.

Which of the following will be used to compose the content of the presentation?(a) ui.RMD(b) index.RMD(c) server.RMD(d) all of the mentionedThis question was posed to me in an online quiz.This intriguing question comes from Slidify topic in section Developing Data Products and Working with NumPy of Data Science

Answer»

The correct option is (B) index.RMD

Easy EXPLANATION - index.RMD is an R MARKDOWN document.

24.

Some ufuncs can take output arguments.(a) True(b) FalseThis question was posed to me in exam.My question is from NumPy in portion Developing Data Products and Working with NumPy of Data Science

Answer» RIGHT answer is (b) False

The EXPLANATION is: All UFUNCS can take output arguments. If necessary, output will be cast to the data-type of the provided output array.
25.

Which of the following returns an array of ones with the same shape and type as a given array?(a) all_like(b) ones_like(c) one_alike(d) all of the mentionedThe question was posed to me in homework.Query is from NumPy in section Developing Data Products and Working with NumPy of Data Science

Answer»

Correct choice is (B) ones_like

The explanation is: The optional output ARGUMENTS of the function can be used to help you SAVE memory for LARGE calculations.

26.

Which of the following is used for creating tree maps?(a) gvisGeoChart(b) gvisTable(c) gvisTreeMap(d) all of the mentionedThe question was asked in my homework.This intriguing question comes from googleVis in portion Developing Data Products and Working with NumPy of Data Science

Answer»

Correct ANSWER is (C) gvisTreeMap

To EXPLAIN I would say: GVISGEOCHART is used for interactive maps.

27.

Point out the wrong statement.(a) The plot command does open a graphics device in the modern way(b) Motion Chart is only displayed when hosted on a web server(c) gvisMotionChart is used to create motion chart(d) All of the mentionedI had been asked this question in an interview for job.I would like to ask this question from googleVis in division Developing Data Products and Working with NumPy of Data Science

Answer»

Right answer is (a) The plot command does OPEN a GRAPHICS device in the modern way

Best explanation: The plot command does not open a graphics device in the TRADITIONAL way.

28.

The first part of index.Rmd is XML code.(a) True(b) FalseI had been asked this question by my college professor while I was bunking the class.Origin of the question is Slidify in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

The CORRECT CHOICE is (b) False

Easiest EXPLANATION - The FIRST part of index.Rmd is YAML code.

29.

Point out the correct statement.(a) shiny project is a directory containing at least three parts(b) shiny project is a file containing at least three parts(c) shiny project consist is a directory containing only one part(d) none of the mentionedI got this question in exam.The origin of the question is Shiny topic in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

The CORRECT answer is (d) NONE of the mentioned

For EXPLANATION: shiny project consist is a directory containing at least TWO PARTS.

30.

Which of the following set the floating-point error callback function or log object?(a) setter(b) settercall(c) setterstack(d) all of the mentionedThis question was posed to me during an internship interview.This interesting question is from NumPy in section Developing Data Products and Working with NumPy of Data Science

Answer»

Right OPTION is (B) settercall

To EXPLAIN: seterr sets how floating-point ERRORS are handled.

31.

Which of the following statement will install shiny?(a) install.packages(“shiny”)(b) install.library(“shiny”)(c) install.lib(“shiny”)(d) all of the mentionedThe question was posed to me in an online quiz.The query is from Shiny topic in chapter Developing Data Products and Working with NumPy of Data Science

Answer» CORRECT OPTION is (a) install.packages(“shiny”)

To explain: Shiny applications are AUTOMATICALLY “live” in the same WAY that spreadsheets are live.
32.

Point out the correct statement.(a) NumPy main object is the homogeneous multidimensional array(b) In Numpy, dimensions are called axes(c) Numpy array class is called ndarray(d) All of the mentionedThis question was posed to me in quiz.The doubt is from NumPy in chapter Developing Data Products and Working with NumPy of Data Science

Answer»

The CORRECT choice is (d) All of the mentioned

The BEST I can explain: The NUMBER of axes is called RANK.

33.

Point out the correct statement.(a) gvisAnnotationChart returns list of class “gvis” and “list”(b) The gvisAreaChart function reads a data.frame and creates text output referring to the Google Visualization API(c) gvisAreaChart returns list of class “gvis” and “list”(d) All of the mentionedI got this question during an interview for a job.I want to ask this question from googleVis topic in portion Developing Data Products and Working with NumPy of Data Science

Answer» RIGHT CHOICE is (d) All of the mentioned

To EXPLAIN: This can be included into a web PAGE, or as a stand-alone page.
34.

Point out the wrong statement.(a) ipython is an enhanced interactive Python shell(b) matplotlib will enable you to plot graphics(c) rPy provides a lot of scientific routines that work on top of NumPy(d) all of the mentionedThe question was posed to me in an internship interview.This intriguing question originated from NumPy in division Developing Data Products and Working with NumPy of Data Science

Answer»

The correct answer is (C) rPy PROVIDES a LOT of scientific routines that work on top of NUMPY

Explanation: SCIPY provides a lot of scientific routines that work on top of NumPy.

35.

Which of the following create a Google Gadget based on a Google Visualization Object?(a) createGadget(b) createGoogleGadget(c) newGoogleGadget(d) all of the mentionedThe question was asked in semester exam.This interesting question is from googleVis in division Developing Data Products and Working with NumPy of Data Science

Answer»

Right choice is (b) CREATEGOOGLEGADGET

Explanation: createGoogleGadget RETURNS a Google GADGET XML STRING.

36.

Which of the following element can be added to slidify?(a) Quiz(b) RCharts(c) Shiny apps(d) All of the mentionedI got this question during an online interview.This interesting question is from Slidify in section Developing Data Products and Working with NumPy of Data Science

Answer»

The correct CHOICE is (d) All of the mentioned

Explanation: MANY interactive elements can be ADDED to SLIDIFY.

37.

Which of the following statement will install slidify from github?(a) install_github(‘slidify’, ‘ramnathv’)(b) install_github(‘slidify’, ‘r’)(c) install(‘slidify’, ‘ramnathv’)(d) all of the mentionedThe question was posed to me in exam.My query is from Slidify in division Developing Data Products and Working with NumPy of Data Science

Answer»

Right ANSWER is (a) install_github(‘slidify’, ‘ramnathv’)

The BEST I can EXPLAIN: Slidify is not on CRAN.

38.

Point out the wrong statement.(a) Slidify is created by Ramnath Vaidyanathan(b) Slidify is non customizable(c) Slidify presentation are just HTML files(d) All of the mentionedThe question was posed to me in homework.Enquiry is from Slidify topic in portion Developing Data Products and Working with NumPy of Data Science

Answer»

The CORRECT answer is (b) SLIDIFY is NON CUSTOMIZABLE

To EXPLAIN: Slidify is customizable and extendable.

39.

Which of the following project is used for calling R products from web?(a) OpenCPU(b) OpenDisk(c) OpenMem(d) All of the mentionedThe question was posed to me in a national level competition.Query is from Shiny topic in portion Developing Data Products and Working with NumPy of Data Science

Answer»

The CORRECT ANSWER is (a) OpenCPU

Easiest EXPLANATION - OpenCPU is COMPLEMENTARY to OpenCPU.

40.

Which of the following function take only single value as input?(a) iscomplex(b) minimum(c) fmin(d) all of the mentionedI had been asked this question in homework.This intriguing question comes from NumPy topic in portion Developing Data Products and Working with NumPy of Data Science

Answer»

Right CHOICE is (a) iscomplex

Best explanation: iscomplex function RETURNS a bool array, where TRUE if input ELEMENT is complex.

41.

Point out the wrong statement.(a) A universal function is a function that operates on ndarrays in an element-by-element fashion(b) In Numpy, universal functions are instances of the numpy.ufunction class(c) Many of the built-in functions are implemented in compiled C code(d) All of the mentionedThe question was asked during an interview.My question comes from NumPy in portion Developing Data Products and Working with NumPy of Data Science

Answer»

The correct choice is (b) In NUMPY, universal functions are instances of the numpy.ufunction class

To EXPLAIN I WOULD say: ufunc instances can also be PRODUCED using the frompyfunc factory function.

42.

Which of the following is contained in NumPy library?(a) n-dimensional array object(b) tools for integrating C/C++ and Fortran code(c) fourier transform(d) all of the mentionedThis question was posed to me in my homework.This key question is from NumPy in division Developing Data Products and Working with NumPy of Data Science

Answer»

The CORRECT choice is (d) all of the mentioned

Explanation: NumPy is the fundamental package for SCIENTIFIC COMPUTING with Python.

43.

Which of the following is used for creating interacting tables?(a) gvisGeoChart(b) gvisTable(c) gvisLineChart(d) all of the mentionedI had been asked this question in an interview for job.Query is from googleVis topic in chapter Developing Data Products and Working with NumPy of Data Science

Answer» RIGHT OPTION is (b) gvisTable

The EXPLANATION is: gvisLineChart is used for creating line CHARTS.
44.

Which of the following function stacks 1D arrays as columns into a 2D array?(a) row_stack(b) column_stack(c) com_stack(d) all of the mentionedThe question was posed to me in a job interview.The doubt is from NumPy topic in division Developing Data Products and Working with NumPy of Data Science

Answer» RIGHT choice is (b) column_stack

To EXPLAIN I WOULD say: column_stack is equivalent to vstack only for 1D ARRAYS.
45.

Which of the following statement generates a html slide deck from index.Rmd?(a) slidify(“index.Rmd”)(b) lib.slidify(“index.Rmd”)(c) slidifylib(“index.Rmd”)(d) all of the mentionedThis question was addressed to me by my college director while I was bunking the class.Enquiry is from Slidify in division Developing Data Products and Working with NumPy of Data Science

Answer»

The correct option is (a) slidify(“index.Rmd”)

Explanation: It is a STATIC FILE, which means that you can open it in your browser LOCALLY and it should DISPLAY fine.