100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

SAS Base Exam (Programming 2) Questions With Complete Solutions

Rating
-
Sold
-
Pages
36
Grade
A+
Uploaded on
25-09-2023
Written in
2023/2024

Which of the following is not created during the compilation phase? - the data set descriptor portion - the first observation - the program data vector - the _N_ and _ERROR_ automatic variables correct answer: the first observation ** No data is read during the compilation phase. The first observation is created in the execution phase ** During the compilation phase, SAS scans each statement in the DATA step, looking for syntax errors. Which of the following is not considered a syntax error? correct answer: incorrect data values ** Data values are not read during the compilation phase and do not generate syntax errors ** Unless otherwise directed, how many times does the DATA step loop execute? - once for each compilation phase - once for each DATA step statement - once for each row in the input file - once for each column in the input file correct answer: once for each row in the input file ** By default, the DATA step executes once for each row in the input file. It reads a row, processes the values in that row, and writes the row to an output table ** At the beginning of the execution phase, the value of _N_ is 1, the value of _ERROR_ is 0, and the values of the remaining variables are set to which of the following? - 0 - 1 - undefined - missing correct answer: missing ** The values of the remaining columns are assigned a missing value. Character columns are assigned a blank, and numeric columns are assigned a period. ** Suppose you run a program that causes three data errors. What is the value of the automatic variable _ERROR_ when the row that contains the third error is processed? - 0 - 1 - 2 - 3 correct answer: 1 ** _ERROR_ is 1 for any row that contains a data error ** Consider the following DATA step. Based on the sample input file below, in what order are the variables stored in the new fin2 table? data fin2; set finance; keep Name Raise NewSalary Date; if Salary>25000 then Raise=0.03; else Raise=0.05; NewSalary=(Salary*Raise)+Salary; run; - Name, Raise, NewSalary, Date - SSN, Name, Salary, Date, Raise, NewSalary - Name, Date, Raise, NewSalary - Salary, NewSalary, Name, Raise correct answer: Name, Date, Raise, NewSalary ** The order of the columns in the PDV is determined by the order of the statements in the DATA step. The SET statement first adds the columns from the input table into the PDV, and then the assignment statements add Raise and NewSalary to the PDV. Only Name, Date, Raise, and NewSalary are kept in the output table ** Which of the following actions occurs at the beginning of an iteration of the DATA step? - The automatic variables _N_ and _ERROR_ are incremented by 1. - The DATA step stops execution. - The descriptor portion of the data set is written. - The values of variables created in programming statements are reset to missing in the program data vector. correct answer: The values of variables created in programming statements are reset to missing in the program data vector ** Any new columns created with programming statements are reset to missing at the beginning of each DATA step iteration ** If the input table contains five columns, which PUTLOG statements create the following results in the SAS log? - putlog "NOTE: Begin DATA Step"; putlog _all_; - putlog NOTE="Begin DATA Step"; putlog _all_; - putlog "NOTE: Begin DATA Step"; putlog Name Sex Age Height Weight _ERROR_ _N_; - putlog NOTE(Begin DATA Step); putlog all; correct answer: putlog "NOTE: Begin DATA Step"; putlog _all_;

Show more Read less
Institution
SAS
Course
SAS











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
SAS
Course
SAS

Document information

Uploaded on
September 25, 2023
Number of pages
36
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Classroom NURSING
View profile
Follow You need to be logged in order to follow users or courses
Sold
4691
Member since
3 year
Number of followers
3218
Documents
52002
Last sold
15 hours ago
NURSING

Assignments, Case Studies, Research, Essay writing service, Questions and Answers, Discussions etc. for students who want to see results twice as fast. I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc, and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules. For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!!!!!!!!!!!

Read more Read less
4.0

1162 reviews

5
612
4
213
3
190
2
39
1
108

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions