A00-215試験無料問題集「SASInstitute SAS Certified Associate: Programming Fundamentals Using SAS 9.4 認定」
You have a SAS data set named 'PRODUCTS' with variables 'ProductlD', 'ProductName', 'Price', and 'Category'. You need to create a new data set 'PRODUCT SALES' with only the products in the 'Electronics' category, and you want to include a new variable called 'TotalSales' calculated as 'Price 100' for each product. Which SAS code snippet achieves this?
正解:A
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You are working with a large dataset containing information on customer transactions. You need to generate a report showing only transactions that occurred in the month of December and involved amounts greater than $1000. Which of the following WHERE statements would achieve this?
正解:B,C
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You have a dataset containing product information, including a variable named 'Category' with values such as 'Electronics', 'Clothing', 'Food', and 'Furniture'. You want to create a report that displays the total sales for each category, but you want to group 'Food' and 'Furniture' together under a new label 'Home & Living'. Which approach would you use?
正解:D
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You have a dataset with a variable 'Sales' containing numeric values. You need to create a new variable 'SalesCategory' that classifies the sales values into three categories: 'Low' (Sales < 1000), 'Medium' (1000 <= Sales < 5000), and 'High' (Sales >= 5000). Which SAS code snippet correctly implements this using the DO loop and IF-THEN/ELSE statements?
正解:A
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You need to create a new variable 'FULL NAME' by concatenating the values from variables 'FIRST NAME', 'MIDDLE NAME', and 'LAST NAME', separated by a space. However, the 'MIDDLE NAME' variable might be missing for some observations. Your code should handle this scenario by only including the 'MIDDLE NAME' if it is not missing. Which code snippet accomplishes this task using the 'CAT X' function?
正解:A,D
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You have a SAS dataset named 'SALES' with variables 'REGION', 'PRODUCT', and 'SALES AMOUNT'. You want to create a new dataset named 'HIGH SALES' containing only observations where 'SALES AMOUNT' is greater than 10000 and the 'REGION' is 'North'. Which of the following DATA step code snippets would achieve this?
正解:B
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You have a dataset 'CUSTOMERS' with variables 'CUSTOMER ID', 'ORDER DATE', and 'ORDER AMOUNT'. You need to calculate the total order amount for each customer and then calculate the average order amount across all customers. Which code snippet achieves this correctly?
正解:C
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You have a SAS data set 'SALES DATA' with a variable 'DATE' representing the sale date. You need to create a new data set 'SALES BY MONTH' that summarizes sales by month. You want to include only the observations from the 'SALES DATA' dataset where the 'DATE' variable falls between January 1st and March 31st of the current year. How would you achieve this, using the SET statement and the IN T NX function?
正解:D
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)