Free A00-231 sample questions

Real questions from the SAS 9.4 Base Programming - Performance-Based Exam practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose 3

A marketing dataset contains a `CampaignID` field with values like 'FY24-Q3-EMAIL-PROMO123'. A data analyst needs to extract the fiscal year, the quarter, and the campaign type ('EMAIL') into separate variables. Which of the following SAS functions are required to accomplish this task? (Select THREE)

Question 2Choose one

True or False: When merging two SAS datasets using a `MERGE` statement with a `BY` statement, SAS requires both datasets to be sorted by the `BY` variables. If they are not sorted, SAS will stop with an error and halt program execution.

Question 3Choose one

A data scientist is using `PROC IMPORT` to read a large CSV file (`'c:\data\survey.csv'`) where the first 50 rows contain metadata and notes, with the actual column headers in row 51. Which combination of options in the `PROC IMPORT` statement is required to correctly read the data, starting from the headers in row 51?

Question 4Choose one

A reporting analyst at a retail company needs to generate a weekly sales report. The requirements are as follows: 1. The final report must be an Excel file named `weekly_sales.xlsx` for business users. 2. A PDF version named `archive_sales.pdf` must be created for archival purposes. 3. The report should contain summary statistics from `PROC MEANS` and frequency tables from `PROC FREQ`. 4. However, the archived PDF should NOT contain the detailed frequency tables from `PROC FREQ` to save space. Which ODS code block correctly fulfills all these requirements?

Question 5Choose one

A dataset named `PATIENT_METRICS` is in a 'wide' format, with one row per patient and separate columns for measurements taken on different dates (`Weight_Day1`, `Weight_Day7`, `Weight_Day30`). To perform a time-series analysis, the data needs to be restructured into a 'long' format with columns `PatientID`, `Day`, and `Weight`. Which `PROC TRANSPOSE` step correctly performs this transformation?

Question 6Choose one

You need to assign a permanent library reference named `PROJECT1` to a directory located at `/user/data/project1`. The data in this directory is a mix of SAS datasets and Microsoft Excel files. You want to use the `XLSX` engine to directly read the Excel files. Which `LIBNAME` statement is syntactically correct for this purpose?

Question 7Choose one

A developer is writing a program to categorize customers into one of four distinct, non-overlapping tiers based on their `TotalSpending`. Which conditional logic structure is generally more efficient and readable for this task compared to a series of `IF-THEN/ELSE IF` statements?

Question 8Choose one

A hospital administrator wants to create a report that groups patient satisfaction scores (`Score`, ranging 1-100) into descriptive categories: 'Poor' (1-40), 'Average' (41-70), 'Good' (71-90), and 'Excellent' (91-100). Any other score should be labeled 'Invalid'. Which `PROC FORMAT` code correctly defines this custom format?

Question 9Choose 2

A programmer is developing a reusable program that processes monthly data. The input dataset name changes each month (e.g., `data_jan`, `data_feb`). To make the program flexible, the programmer wants to use a macro variable `&Month` to specify the dataset name. Which statements correctly create a macro variable from a DATA step variable and then use it in a subsequent DATA step? (Select TWO)

Question 10Choose one

A program designed to calculate compound interest runs without any syntax errors. However, the final interest amount is always equal to the interest from the very last period, not the accumulated total. The programmer suspects a logic error in the `DO` loop. Review the code below: ```sas data WORK.COMPOUND; Principal = 1000; Rate = 0.05; do Year = 1 to 10; Interest = Principal * Rate; Principal = Principal + Interest; end; run; ``` What is the primary logic error causing the incorrect final `Principal` value in the output dataset?

10 more free samples are waiting

Create a free account to unlock the whole A00-231 sample bank, or get full access to all 217 practice questions in the simulator.

Create account