Tag: technology

Questions Related to technology

  1. can be used to manipulate character strings in macro variable values.

  2. have the same basic syntax as the corresponding DATA step functions and yield similar results.

  3. all of the above

  4. none of the above


Correct Option: C

Assuming that you began your SAS session today, which of the following statements correctly sets the macro variable currdate to today's date?

  1. %let currdate = %sysfunc(today(), worddate.);

  2. %let currdate = &sysdate9;

  3. %let currdate = %sysfunc(date());

  4. all of the above


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) %let currdate = %sysfunc(today(), worddate.); This option is incorrect. The %sysfunc(today(), worddate.) function is used to return the current date in word format, but it is not the correct syntax for setting a macro variable.

Option B) %let currdate = &sysdate9; This option is incorrect. The &sysdate9 macro variable is used to return the current date in the format ddMONyyyy, but it is not the correct syntax for setting a macro variable.

Option C) %let currdate = %sysfunc(date()); This option is incorrect. The %sysfunc(date()) function is used to return the current date in SAS date format, but it is not the correct syntax for setting a macro variable.

Option D) all of the above This option is correct. None of the previous options correctly set the macro variable currdate to today's date. Therefore, none of the options are correct.

The correct answer is none of the above.

  1. The step does not execute.

  2. The first numeric column is summed by default.

  3. The GROUP BY clause is changed to an ORDER BY clause.

  4. The step executes but does not group or sort data.


Correct Option: C

SAS Statements are not case sensitive

  1. True

  2. False


Correct Option: A

SAS Key words can't be used as variable names

  1. True

  2. False


Correct Option: B

SAS Statements can span more than one line

  1. True

  2. False


Correct Option: A

The word 'bug' is synonymous with which of the following words?

  1. Incident

  2. Defect

  3. Mistake

  4. Error


Correct Option: B