Tuesday, March 19, 2013

Base SAS Example Question 1.1

Hi everyone,

I'm going to start posting example questions for the Base SAS exam about once a week. The questions will test information covered in the SAS Certification Prep Guide, and I'll provide the answers to these questions about a week or two after they're originally posted.

Please leave a comment below this post with your answer - hopefully this will start a good discussion from fellow SAS programmers who are studying for the Base SAS Certification.

Good luck!
SAS Cert

-----------------------------------------
 
How many of the below variable names will not produce errors in an assignment statement?


variable
var
1variable
var1
#var
_variable#


a) 0
b) 1
c) 3
d) 6

24 comments:

  1. B - only "var1" will not produce an error in an assignment statement

    ReplyDelete
  2. 3 will not give errors.

    ReplyDelete
  3. Answer is c (according to naming rules for variables)

    ReplyDelete
  4. I think the answer is C

    ReplyDelete
  5. Read the chapter on SAS Variable naming convention. It cannot start with numeric or special characters except _. You also cannot use special characters anywhere in the name either though numerics are allowed.

    ReplyDelete
  6. Ans is C according to SAS variable naming convention

    ReplyDelete
  7. Yws answer is C!!

    ReplyDelete
  8. C will be the answer

    ReplyDelete
  9. Should have read the question carefully.
    The answer will be 'C'

    ReplyDelete
  10. c variable var var1

    ReplyDelete
  11. It's clear the answer is C.

    ReplyDelete
  12. Thanks for sharing this pretty post to our knowledge, SAS is a program that assists to retrieve, managing and uploading the data & simply it’s an integration system of software for performing these actions, thanks for taking your time to discuss about this topic.
    Regards,
    sas training in Chennai|sas course in Chennai

    ReplyDelete