Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
    big data and remote work
    Data Helps Speech-Language Pathologists Deliver Better Results
    6 Min Read
    data driven insights
    How Data-Driven Insights Are Addressing Gaps in Patient Communication and Equity
    8 Min Read
    pexels pavel danilyuk 8112119
    Data Analytics Is Revolutionizing Medical Credentialing
    8 Min Read
    data and seo
    Maximize SEO Success with Powerful Data Analytics Insights
    8 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Test Your Level of Expertise with SAS/R/Python
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Uncategorized > Test Your Level of Expertise with SAS/R/Python
Uncategorized

Test Your Level of Expertise with SAS/R/Python

kunalj101
kunalj101
9 Min Read
SHARE

Currently R, SAS and Python are the three languages ruling the analytics industry. Expertise in at least one of the three language is a must to build a competitive profile. But mastering only one language might not make you a hot selling property.

Contents
GuidelinesTestSection 1 : SASSection 2 : PythonSection 3: RAnswersEnd Notes

Currently R, SAS and Python are the three languages ruling the analytics industry. Expertise in at least one of the three language is a must to build a competitive profile. But mastering only one language might not make you a hot selling property. Even if you are not an expert in each of the three languages, you need to know what is the arena of strength for the three languages. In some of our previous articles, we covered interview questions in R (here)and SAS ( here).

We also covered the ways to train your brain for analytical thinking (here) and framework to develop structured thinking (here). In this article, we have collected few questions to estimate your expertise level in the three languages. The scores and results will just be directional and not a comprehensive view of your skill set.

This test contains 5 questions each from the three languages. Each question carries 2 marks for being correct and no negative markings. You will need to calculate the total score in three sections and the score in the section you scored most.  Following is the table you can refer to interpret the scores:

More Read

And the winner of Superbowl XLIV is…Google
Resource Mistakes, Part I
How IT Services Companies can Thrive in the Age of Cloud
A Very Good Year
Define ‘enterprise mashup’ and win a $50 gift card

grid

Guidelines

Here are a few guidelines you need to follow (to make your score more insightful):

1. You cannot use any knowledge other than yours to attempt the questions

2. You cannot use a calculator

3. The maximum time you can spend on each section cannot be more than 5 minutes.

4. The questions should be answered in an order.

5. You should not attempt questions which you are not 100% sure.

Test

Section 1 : SAS

Question 1) The following program is submitted.

data WORK.TEST;

input Name $ Age;

datalines;

John +35 ;

run;

Which values are stored in the output data set?

  1. Name Age --------------------- John 35
  2. Name Age --------------------- John (missing value)
  3. Name Age --------------------- (missing value) (missing value)
  4. The DATA step fails execution due to data errors.

Question 2) You have two datasets with many to one mapping. You are trying to merge the two datasets using a Data-Merge statement (after sorting on the key). What will be the output :

A. Data error

B. Wrongly merged table

C.Merging happens fine and you get the rightly merged table

Question 3) Dataset  A has 3 rows with all ids as “1″ and 2 rows with “2″. Dataset B has 2 rows with all ids as “1″ and 3 rows with “2″ . If you merge the two tables, the resultant table will have how many rows?

A. 4

B. 5

C. 6

D. 3

Question 4) The following SAS program is submitted:

data WORK.LOOP; X = 0; do Index = 1 to 5 by 2; X = Index; end; run; 

Upon completion of execution, what are the values of the variables X and Index in the SAS data set named WORK.LOOP?

  1. X = 3, Index = 5
  2. X = 5, Index = 5
  3. X = 5, Index = 6
  4. X = 5, Index = 7

Question 5) The following SAS program is submitted:

data WORK.TEMP; Char1='0123456789'; Char2=substr(Char1,3,4); run; 

What is the value of Char2?

  1. 23
  2. 34
  3. 345
  4. 2345

Section 2 : Python

Question 1 ) What is the difference between:  import sklearn &   from sklearn import datasets

a. the second statement does not work

b. Both are similar

c. First imports the entire module while the second only imports specific parts (datasets in this case) of the module and hence is more efficient

d. First statement imports modules while second imports function

e. None of the above

Question 2 ) How do you find median for a column (‘Age’) in dataframe (df) using Pandas

a. df.describe()

b. df.Age.median()

c. df[‘age’].median()

d. df[‘Age’].median()

e. median (df[‘Age’])

Question 3 ) Which of the following is not a valid data structure in Python?

a. List

b. Dictionary

c. Sets

d. Cubes

Question 4) Which of the following library – usage combination is wrong?

a. Pandas – Analysis & Handling of structured data

b. NLTK – Text Mining

c. urllib – Open a URL through your code

d. matplotlib – for creating libraries of plots

Question 5) Which of the following are valid for string representations:

a. ‘ ‘

b. “ “

c. ‘’’ ‘’’

d. All of the above

Section 3: R

Question 1) Which of the following statistical techniques cannot be implemented on R?

A. Logistic Regression

B. CART

C. CHAID

D. Linear Regression

E. All above can be implemented on R

Question 2) What is the value of f(6) using the following code?

> y <- 3
> f <- function(x) {
+                            y <- 2
+                            y ^ 2 + g(x)
+                            }
> g <- function(x) {
+                             x * y
+                             } 

Question 3) What is the value of the vector d, which is defined as follows :

> a <- c(2,3,4) > b <- c(1,2)
> d <- a*b

Question 4)
 Library “TM” is used for?
A. Time Management
B. Time Series modeling
C. Text Mining
D. CarT Modelling

Question 5) What is the difference between the commands “install.packages” and “library”?

A. Both do the same job
B. install.packages brings file to your system and library function loads the package to current session
C.Library function brings file to your system and install.packages function loads the package to current session
D. Execution of install.packages is done only when the session starts but function “library” is executed for running sessions.

Answers

answers 

End Notes

The scores will guide you directionally as to which language you need to work on. Along with the knowledge of these languages, you also need to master other skills required to solve unstructured business problems (covered in this article). To survive in this industry you need to master at least one of these languages. To be an analytics star you need to excel in one language and know basic of the other two languages. To be an analytics champion you need to master all three languages. Note that only mastering data handling language might not make you successful analyst. Also, the three languages are not substitutes for each other, but complement each other to do various analysis.You can add more questions to this bank in the comment box below. For any clarifications on the question set, you can again comment below.

What was your score in this test? What do you think about interpreting these results from the table given in the article? Do you think it ties up well to your understanding?

Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive
image fx (71)
The Power of AI for Personalization in Email
Artificial Intelligence Exclusive Marketing
image fx (67)
Improving LinkedIn Ad Strategies with Data Analytics
Analytics Big Data Exclusive Software
big data and remote work
Data Helps Speech-Language Pathologists Deliver Better Results
Analytics Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

Statistical Analysis Software R Featured in NYT Article

3 Min Read

Three to Five

3 Min Read

Another “anti-spam litigant” Goes Down in California: Domain Use Challenged

3 Min Read

Innovation + Affordability = Enterprise Intelligence

5 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data
AI chatbots
AI Chatbots Can Help Retailers Convert Live Broadcast Viewers into Sales!
Chatbots

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?