OpenExamsFREE PRACTICE — ANY EXAM

Free SAS® 9.4 Advanced Programming Performance-Based Exam Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading 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.

  1. 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?

    1. A.September INTERSECT October
    2. B.October EXCEPT September
    3. C.September UNION October
    4. 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

  2. 2The macro variable lib contains staging. Which text expands to staging.orders, with a period separating the libref from the member?

    1. A.&lib...orders
    2. B.&lib.orders
    3. C.&lib.orders.
    4. 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

  3. 3A DATA step declares array x{2,3} a b c d e f;. What variable does x{2,1} reference?

    1. A.e
    2. B.c
    3. C.b
    4. 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

  4. 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?

    1. A.UNION ALL
    2. B.UNION CORR
    3. C.OUTER UNIONCorrect answer: C
    4. 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

  5. 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?

    1. A.The text level
    2. B.The value is undefined
    3. C.The text detailCorrect answer: C
    4. D.A blank string

    Explanation: SAS documents this behavior: "the existing value remains unchanged." %GLOBAL can create a new null variable, but redeclaring the already defined global does not clear or change its value.

    Reference: SAS 9.4 Macro Language: Reference — %GLOBAL Macro Statement, Details, p. 395

  6. 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?

    1. A.array label{3} $8 label1-label3;Correct answer: A
    2. B.array label{3} 8 label1-label3;
    3. C.array label{8} $3 label1-label3;
    4. 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

  7. 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?

    1. A.Change UNION to UNION CORR.
    2. B.Change UNION to UNION ALL.Correct answer: B
    3. C.Change UNION to INTERSECT ALL.
    4. D.Add DISTINCT to each SELECT.

    Explanation: SAS documents this behavior: "The optional ALL keyword preserves the duplicate rows" UNION ALL appends the two sets without the default step that removes duplicate rows.

    Reference: SAS 9.4 SQL Procedure User’s Guide — Query Expression, ALL Keyword, p. 399

  8. 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?

    1. A.PROD, PROD
    2. B.TEST, TEST
    3. C.PROD, TEST
    4. 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

  9. 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?

    1. A.balance_1 through balance_4
    2. B.balance1 through balance4Correct answer: B
    3. C.balance alone with four stored values
    4. 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

  10. 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?

    1. A.ALL
    2. B.AS
    3. C.CORRCorrect answer: C
    4. 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

Confirm current exam arrangements with the exam provider.