Which SAS interface is the modern web-based programming environment provided by SAS for writing and running SAS code?
Sas Environment
Question · Easy
Which statement correctly assigns the libref MYLIB to the directory C:\sasdata?
Where does a SAS dataset reside if it is referenced as WORK.SCORES?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Which statement assigns a fileref named RAW to an external CSV file?
Which window in SAS displays NOTE, WARNING, and ERROR messages from program execution?
What are the two fundamental data types in a SAS dataset?
What is the default length of a numeric variable in SAS?
Which automatic variable contains the current iteration number of a DATA step?
Data Step
Question · Medium
What value does the automatic variable _ERROR_ take when a data error occurs in the current observation?
Which statement reads observations from an existing SAS dataset into a DATA step?
What does the MERGE statement combined with BY do in a DATA step?
What must be true of input datasets before using MERGE with a BY statement?
Given BY DEPT; in a DATA step, what does FIRST.DEPT equal for the first observation in each DEPT value?
What is the purpose of the RETAIN statement in a DATA step?
Which statement explicitly writes the current observation to the output dataset?
What does the KEEP= dataset option do on a SET statement?
How does WHERE= differ from a subsetting IF statement?
Question · Hard
Which statement creates the variable BONUS as a calculated value of SALARY * 0.10?
Which IF-THEN/ELSE block correctly assigns CATEGORY?
Conditional Logic
Which SELECT statement form is valid in SAS?
What does this code do? DO I = 1 TO 10; TOTAL + I; END;
Iterative Processing
Which DO loop continues executing as long as the condition is true and tests the condition at the top of the loop?
What is the result of MEAN(10, 20, ., 40)?
Functions
What does SUM(., 5, 10, .) return?
What does ROUND(3.14159, 0.01) return?
What is ABS(-7.5)?
What does SUBSTR('PROGRAMMING', 4, 4) return?
What does SCAN('Smith, John A.', 2, ',') return (with default delimiters or comma)?
What does INDEX('SAS PROGRAMMING', 'GRAM') return?
What is the result of TRIM('SAS ') || '!'? (assume default lengths)
What does LEFT(' HELLO') return?
What does UPCASE('sas Studio') return?
What does CATX(' - ', 'A', 'B', 'C') return?
How are SAS date values stored internally?
Dates
Which date constant correctly assigns January 1, 2025 to a numeric variable?
Which function returns today's date as a SAS date value?
What does MDY(7, 4, 2025) return?
What does INTCK('MONTH', '01JAN2025'D, '15MAR2025'D) return?
What does INTNX('MONTH', '15JAN2025'D, 2) return by default?
What does YEAR('15JUL2025'D) return?
Which date format displays a SAS date as 03/15/2025?
Which format outputs a SAS date as 'Wednesday, March 15, 2025'?
What is the difference between a FORMAT and an INFORMAT in SAS?
Which statement assigns a label 'Annual Salary in USD' to the variable SALARY for display?
Which statement reads raw data from an external file inside a DATA step?
Importing Data
Which INFILE option treats a comma as the field delimiter for CSV input?
What does the DSD option on an INFILE statement do?
Loading more…