Free SAS® 9.4 Advanced Programming Performance-Based Exam Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the SAS® 9.4 Advanced Programming Performance-Based Exam practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1An analyst needs a list of account IDs that appear in September billing but never appear in October billing. Both queries select only the account ID, and the report must list each qualifying ID once. Which set expression returns that list?
- A.September INTERSECT October
- B.October EXCEPT September
- C.September UNION October
- D.September EXCEPT OctoberCorrect answer: D
Explanation: SAS documents this behavior: "produces rows that are part of the first query only." EXCEPT uses September as the first result and removes IDs present in October. Without ALL it returns distinct IDs.
Reference: SAS 9.4 SQL Procedure User’s Guide — Combining Queries with Set Operators, p. 113
2The macro variable lib contains staging. Which text expands to staging.orders, with a period separating the libref from the member?
- A.&lib...orders
- B.&lib.orders
- C.&lib.orders.
- D.&lib..ordersCorrect answer: D
Explanation: SAS documents this behavior: "The first is the delimiter for the macro reference, and the second is part of the text." SAS consumes the first dot. The second dot survives as the library separator.
Reference: SAS 9.4 Macro Language: Reference — Creating a Period to Follow Resolved Text, p. 41
3A DATA step declares array x{2,3} a b c d e f;. What variable does x{2,1} reference?
- A.e
- B.c
- C.b
- D.dCorrect answer: D
Explanation: SAS documents this behavior: "SAS places variables into a two-dimensional array by filling all rows in order" The first row gets a, b and c. The second starts with d, so row 2 column 1 references d.
Reference: SAS 9.4 DATA Step Statements: Reference — ARRAY Statement, multidimensional arrays, p. 22
4Two source tables each contain a column named status. The analyst wants to append all rows, with the two source status columns kept separate. Which PROC SQL set operator fits that requirement?
- A.UNION ALL
- B.UNION CORR
- C.OUTER UNIONCorrect answer: C
- D.OUTER UNION CORR
Explanation: SAS documents this behavior: "Columns with the same name are in separate columns in the result table." OUTER UNION concatenates the rows and leaves like-named columns separate. CORR would overlay matching names.
Reference: SAS 9.4 SQL Procedure User’s Guide — Query Expression, OUTER UNION Operator, pp. 399–400
5Open code sets %let level=detail; and a macro later executes %global level; without an assignment. What is the value of the existing global LEVEL after the declaration?
- A.The text level
- B.The value is undefined
- C.The text detailCorrect answer: C
- D.A blank string
6A DATA step must create new fixed-length character variables label1 through label3, each eight bytes long, in array label. Which declaration sets that type and length?
- A.array label{3} $8 label1-label3;Correct answer: A
- B.array label{3} 8 label1-label3;
- C.array label{8} $3 label1-label3;
- D.array label{3} $3 label1-label3;
Explanation: SAS documents this behavior: "specifies that the elements in the array are character elements." The $ marks new elements as character and the 8 sets their length. The subscript 3 specifies the element count, not the length.
Reference: SAS 9.4 DATA Step Statements: Reference — ARRAY Statement, character and length arguments, p. 23
7A detail report combines two independently filtered SELECT results with UNION. Some identical rows represent separate events and must remain separate. Which change preserves those occurrences without changing either filter?
- A.Change UNION to UNION CORR.
- B.Change UNION to UNION ALL.Correct answer: B
- C.Change UNION to INTERSECT ALL.
- D.Add DISTINCT to each SELECT.
8Global MODE is PROD. Macro audit contains %local mode; %let mode=TEST; and writes &mode in its log. After audit returns, open code writes &mode again. Which pair appears?
- A.PROD, PROD
- B.TEST, TEST
- C.PROD, TEST
- D.TEST, PRODCorrect answer: D
Explanation: SAS documents this behavior: "the macro processor finds the local value first and uses it instead of the global value." The local declaration keeps the assignment in audit. The macro writes TEST and the subsequent open code sees the original PROD.
Reference: SAS 9.4 Macro Language: Reference — Global Macro Variables, pp. 59–60
9In a DATA step with no prior variables named balance, a programmer declares array balance{4}; with no array element list. What variable names does SAS create?
- A.balance_1 through balance_4
- B.balance1 through balance4Correct answer: B
- C.balance alone with four stored values
- D.balance0 through balance3
Explanation: SAS documents this behavior: "SAS creates variable names by concatenating the array name and the numbers 1, 2, 3" The numeric dimension without named elements makes SAS append one-based numeric suffixes to the array name.
Reference: SAS 9.4 DATA Step Statements: Reference — ARRAY Statement, array-elements and variables arguments, pp. 23–24
10Two SELECT lists contain the same two compatible columns but in opposite orders. The analyst must perform a UNION that aligns the fields without rewriting either list. Which modifier changes the column matching rule?
- A.ALL
- B.AS
- C.CORRCorrect answer: C
- D.DISTINCT
Explanation: SAS documents this behavior: "CORR causes PROC SQL to match the columns in table expressions by name and not by ordinal position." CORR aligns the selected columns by name. The remaining choices either act on rows or assign an alias.
Reference: SAS 9.4 SQL Procedure User’s Guide — Query Expression, CORRESPONDING (CORR) Keyword, p. 399
Exam Review
About SAS® 9.4 Advanced Programming Performance-Based Exam
SAS® 9.4 Advanced Programming Performance-Based Exam · UNSPECIFIED
Key exam facts
- Provider
- SAS Institute Inc. (SAS Global Certification) owns the examination and administers it with its delivery partner, Pearson VUE.
- Format
- Computer-based hybrid exam with 10–15 programming projects in a remote SAS lab and 10–15 standard exam questions without the lab. The question count shown is for standard questions. A SAS scoring macro assesses the projects. The credential also requires a current qualifying SAS Base Programming credential. Multiple-choice practice does not replace hands-on lab practice.
- Exam questions
- Total questions: 10–15.
- Time limit
- 125 minutes for the exam. The Pearson VUE appointment is 150 minutes including introductory material.
- Passing score
- 725 on a scaled score range of 200–1,000.
- Exam fee
- Standard fee per attempt: US$180 outside Japan and ¥22,000 in Japan. Retakes incur an exam fee. Eligible academic discounts may apply.
Topics covered
Accessing Data Using SQL (35%)
- Generate detail reports by working with a single table, joining tables, or using set operators in SQL
- Generate summary reports by working with a single table, joining tables, or using set operators in the SQL.
- Construct sub-queries and in-line views within an SQL procedure step.
- Use SAS SQL procedure enhancements.
Macro Processing (35%)
- Create and use user-defined and automatic macro variables within the SAS Macro Language.
- Automate programs by defining and calling macros using the SAS Macro Language.
- Use macro functions.
- Debug macros.
- Create data-driven programs using SAS Macro Language.
Advanced Techniques (30%)
- Process data using 1 and 2 dimensional arrays.
- Process data using hash objects.
- Use SAS utility procedures.
- Use advanced functions.
How to prepare
Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.
These independent practice questions are not actual exam items and do not guarantee a passing result.
Frequently asked questions
What is the exam format?
Computer-based hybrid exam with 10–15 programming projects in a remote SAS lab and 10–15 standard exam questions without the lab. The question count shown is for standard questions. A SAS scoring macro assesses the projects. The credential also requires a current qualifying SAS Base Programming credential. Multiple-choice practice does not replace hands-on lab practice.
How many questions are on the exam?
Total questions: 10–15.
How long is the exam?
125 minutes for the exam. The Pearson VUE appointment is 150 minutes including introductory material.
What is the passing score?
725 on a scaled score range of 200–1,000.
How much does the exam cost?
Standard fee per attempt: US$180 outside Japan and ¥22,000 in Japan. Retakes incur an exam fee. Eligible academic discounts may apply.
Official sources and references
- SAS 9.4 Advanced Programming Exam Content Guide
Page 1, title
- SAS 9.4 Advanced Programming Exam Content Guide
Page 4, Note
- SAS 9.4 Advanced Programming Exam Content Guide
Page 1, domain heading
- SAS 9.4 Advanced Programming Exam Content Guide
Page 2, domain heading
- SAS 9.4 Advanced Programming Exam Content Guide
Page 3, domain heading
- SAS Advanced Programming Professional
Exam Details
- SAS Advanced Programming Exam FAQs
Will the exam be all practical questions?
- SAS Advanced Programming Exam FAQs
How are the programming projects assessed?
- SAS Advanced Programming Professional
Exam Details, scaled passing score (text line 924)
- SAS Advanced Programming Professional
Exam Details, time limit and appointment duration (text line 926)
Confirm current exam arrangements with the exam provider.