A00-215 Exam Question 51

You have a dataset with student exam scores. Each student has multiple exam scores, and you need to calculate the average score for each student, but only for their top three highest scores. You need to use the FIRST. And LAST. variables within BY group processing to achieve this. Which of the following code snippets would correctly calculate the average of the top three highest scores for each student?
  • A00-215 Exam Question 52

    You have two SAS data sets, 'SALES' and 'ORDERS', both stored in the same library named 'SALES DATA. You need to combine the data from these two data sets into a new data set called 'SALES ORDERS' using the 'SET' statement. Which of the following statements will correctly combine the data from both 'SALES' and 'ORDERS' data sets into the new data set?
  • A00-215 Exam Question 53

    You are analyzing a dataset 'CustomerSurvey' with variables 'AgeGroup', 'Satisfaction', and 'Gender'. You need to create a two-way table showing the distribution of 'Satisfaction' across different 'AgeGroup's. However, you only want to include customers whose 'Gender' is 'Female'. Which PROC FREQ statement, with the CROSSLIST option, correctly produces this table?
  • A00-215 Exam Question 54

    You have a dataset containing a variable 'Product_Code' with values like 'ABCI 234', 'DEF5678', 'GH19012'. You want to extract the first 3 characters of each product code and store them in a new variable 'Product Category'. Which code snippet correctly achieves this using the SUBSTR function?
  • A00-215 Exam Question 55

    You're working with a SAS dataset named 'EMPLOYEES' containing variables: 'EMPLOYEE ID', 'FIRST NAME', 'LAST NAME', 'HIRE DATE', 'SALARY'. You need to create a new variable called 'FULL NAME' that combines 'FIRST NAME' and 'LAST NAME' with a space in between, but only for employees hired before January 1st, 2022. Which code snippet achieves this?