SAS Base Programming Certification Practice Exam 2025 – The All-In-One Guide to Master Your Certification!

Question: 1 / 490

When executing the SAS statement ARRAY Response{*} a b c d e;, what type of array is created?

A character array of size 5

A numeric array of size 5

The statement `ARRAY Response{*} a b c d e;` creates a numeric array consisting of the variables `a`, `b`, `c`, `d`, and `e`. By default, arrays in SAS are numeric unless specified otherwise. This means that when you declare the array this way, SAS considers all the specified variables (`a`, `b`, `c`, `d`, and `e`) as numeric variables, and thus the created array is a numeric array. The size of the array is determined by the number of elements in the curly braces, which in this case is five.

It's important to note that this statement doesn't define the types of the variables themselves; instead, it simply accesses existing variables and groups them into an array. If any of those variables were character variables, the array declaration would be problematic, and an error might occur, leading to the conclusion that no array is created due to an error. However, if the question is focused solely on what type of array is created based on typical usage of `ARRAY`, it indicates that assuming `a` through `e` are numeric is warranted, hence why it corresponds with the answer indicating a numeric array of size 5.

Get further explanation with Examzify DeepDiveBeta

An array with both types of variables

No array is created due to error

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy