Solved
Contributor
Posts: 55

# sas exam question

I am planning to appear sas exam soon.I have doubt as looking some questions on google

if its mentioned while writting answer that dont put leading and trailing space what should we do

1]RETAIN AGENUM

2]RETAINAGENUM

WHICH OPTION IS CORRECT?

Accepted Solutions
Solution
‎04-22-2017 02:42 PM
Super User
Posts: 23,724

## Re: sas exam question

Think about how a computer can interpret the text you write.

If it's

RETAINAGENUM is that:

RETAIN AGENUM;  *one variable;

or

RETAIN AGE NUM; *two variables;

If there's likely ambiguity, it's likely incorrect.

All Replies
Super User
Posts: 23,724

## Re: sas exam question

I am planning to appear sas exam soon.I have doubt as looking some questions on google

if its mentioned while writting answer that dont put leading and trailing space what should we do

1]RETAIN AGENUM

2]RETAINAGENUM

WHICH OPTION IS CORRECT?

1, but my guess is you're misinterpreting the comment about leading and trailing spaces.

Contributor
Posts: 55

## Re: sas exam question

Thanks.yes Just wanted to conform that it means space before and after the answer.Not in between.Giving exam for first time so dont want to take any chance
Solution
‎04-22-2017 02:42 PM
Super User
Posts: 23,724

## Re: sas exam question

Think about how a computer can interpret the text you write.

If it's

RETAINAGENUM is that:

RETAIN AGENUM;  *one variable;

or

RETAIN AGE NUM; *two variables;

If there's likely ambiguity, it's likely incorrect.

Super User
Posts: 23,724

## Re: sas exam question

The questions are multiple choice so leading/trailing blanks will have no impact on anything either.

Contributor
Posts: 55

## Re: sas exam question

Thanks.had doubt when options are not given and we need to write answer.

PROC Star
Posts: 1,803

## Re: sas exam question

I would suggest get a grasp of literal, keyword,  operand, operators,constants and tokens(tokenisation if you wish) without fail before you take any test in any programming language.

May i ask you a question:

What do you think happens here and why:

data w;

retain retain retainn retainnn ' ';

run;

This will get you started.

Contributor
Posts: 55

## Re: sas exam question

Posted in reply to novinosrin
actually i know it means different retainn retainnn wht u want to say.but wanted to clear my doubt as leading and trailing before each word or complete answer
Super User
Posts: 23,724

## Re: sas exam question

actually i know it means different retainn retainnn wht u want to say.but wanted to clear my doubt as leading and trailing before each word or complete answer

I understand English may be a second language but please try and use proper punctuation and/or full words. There is no character limit like Twitter.

Super User
Posts: 23,724

## Re: sas exam question

Thanks.had doubt when options are not given and we need to write answer.

You don't need to write any answers on the SAS exams. They're multiple choice for Base and Advanced Certification

SAS Employee
Posts: 28

## Re: sas exam question

Actually, there are more than just short answer questions on SAS exams. This includes numeric and short answer text (as well as some innovative types too, that simulate User Interface, but these aren't on Base).

For short answer text answers, you are typically asked to provide a short segment of code to complete a program. The answer has some flexibility to evaluate the response, so any valid SAS syntax that would work would be marked correct. So in this examlple:

```retain age num;
retain age num ;
retain num age;
retain     num    age ;;```

would all work, while

`retainagenum;`

certainly would not.

In short, write it like you would your code and you'll be fine.

(This is also a good example of why you should stay away from google/unauthorized test prep....it is going to steer you in the wrong direction.)

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
• 10 replies
• 388 views
• 1 like
• 4 in conversation