SAS Practice Test
10 Questions
6 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

A dollar sign ($) on an INPUT statement in SAS means that:

  • the variable has some missing values.
  • the variable has only numeric values.
  • the unit of measurement is dollars.
  • the variable may have character values. (correct)
  • Which of the following statements is true about SAS?

  • It is primarily used for web development.
  • It is a programming language used for statistical analysis. (correct)
  • It is only compatible with Windows operating systems.
  • It is primarily used for graphic design.
  • The DBMS keyword in importing external files is used to

  • To include variable names from the first row of data. 
  • To import a specific sheet from an excel workbook.
  • To specify the type of data to import. (correct)
  • To overwrite an existing SAS data set.
  • Which keyword is used to specify path where data file is saved?

    <p>INFILE</p> Signup and view all the answers

    Which of the following is a SAS syntax requirement?

    <p>End each statement with a semicolon.</p> Signup and view all the answers

    In the following code snippet, Which dataset is considered the input

    dataset? Data a; Set b; Run;

    <p>b</p> Signup and view all the answers

    In the following code snippet, Which dataset is considered the output dataset? Data a; Set b; Run;

    <p>a</p> Signup and view all the answers

    Which of the following is not a valid type of library in SAS?

    <p>System library</p> Signup and view all the answers

    What is the primary purpose of the SET statement in SAS?

    <p>To read data from existing datasets</p> Signup and view all the answers

    What is the primary purpose of the Data statement in SAS?

    <p>To define the beginning of the data step.</p> Signup and view all the answers

    Study Notes

    SAS Basics

    • A dollar sign ($) on an INPUT statement in SAS is used to specify the informat for numeric data.

    Importing External Files

    • The DBMS keyword is used to import external files.

    Specifying File Paths

    • The PATH keyword is used to specify the path where the data file is saved.

    SAS Syntax Requirements

    • A semicolon (;) is a SAS syntax requirement.

    Understanding Data Steps

    Data Step Example 1

    • In the code snippet Data a; Set b; Run;, dataset b is considered the input dataset.

    Data Step Example 2

    • In the code snippet Data a; Set b; Run;, dataset a is considered the output dataset.

    Library Types

    • There is no such thing as a "permanent" library in SAS. Libraries can be either temporary (WORK) or permanent ( LIBNAME).

    SET Statement

    • The primary purpose of the SET statement in SAS is to read in existing data.

    DATA Statement

    • The primary purpose of the Data statement in SAS is to define a new dataset.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team
    Use Quizgecko on...
    Browser
    Browser