Ch 1

  1. What is the default storage length for SAS numeric variables (in bytes)?
    8
  2. Which of the following is not a valid SAS name?
    A. GradePct
    B. Grade Pct
    C. grade_pct
    D. _gradepct
    • B. Grade Pct
    • (spaces not allowed in names)
  3. T/F: All SAS statements must end in a semicolon
    True
  4. On a table, are observations in rows or in columns?
    rows
  5. On a table, are variables in rows or in columns?
    columns
  6. How many observations and variable does the data set below contain?
    Image Upload 2



    B. 4 Observations, 3 Variables
  7. Which of the following are true regarding SAS names?



    B. All of these answers
  8. How must a SAS name begin?
    With a letter or an underscore
  9. What is the range of character length for a SAS name?
    Between 1 and 32 Characters
  10. Which code statement is correct?

    A. proc print data=Veg
        run;

    B. proc print data=Veg
        run

    C. proc print data=Veg;
        run;

    D. proc print data=Veg
        run
    • C. proc print data=Veg;
    •     run;
  11. What types of variables does SAS datasets have?




    A. Character and Numeric
  12. Which of the following is true regarding SAS Statements?




    B. A SAS statement can begin in any column
  13. T/F: SAS is a tool for processing and analyzing data
    True
  14. T/F: A Datastep can be used to manage data, read in data, modify values, and create variables
    True
  15. T/F: A Proc step never produces charts or graphs in the Results screen
    False
  16. What is SAS?
    • * A tool for processing and analyzing data.
    • * A language with structure analogous to spoken language
  17. The three major parts that SAS code can be broken down into:
    • - SAS names
    • - SAS statements
    • - SAS Steps (Data and Proc)
  18. SAS Data Sets only have two variable types:
    character and numeric
  19. How do SAS statements begin?
    • With a SAS keyword
    • (example: option, title, data input, proc, var)
  20. T/F: You can combine a Proc step within a Data step and vice-versa
    False
  21. How do all SAS Steps end?
    With a run statement

    run;
  22. How are data steps used?
    They are used to manage data (read in data, modify values, create variables)
  23. What are proc statements and how are they used?
    Proc statements are pre-written routines that allow us to analyze the data contained in a SAS data set
Author
saucyocelot
ID
357870
Card Set
Ch 1
Description
Collection of questions from quiz 1 and chapter 1 notes and ppt slides
Updated