BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rimal_mahesh
Fluorite | Level 6

Hi,

How many statments? Adv Cert Book  chap 1 2nd question is answer right? What about Quit statement?

  1. How many statements does the program below contain?

proc sql;

select grapes,oranges,

grapes + oranges as sumsales

from certadv.produce

order by sumsales;

quit;

  1. two
  2. three
  3. four
  4. five
  1. Correct answer: a

There are two statements, the PROC SQL statement and the SELECT statement. The

SELECT statement contains three clauses: the SELECT clause, the FROM clause,

and the ORDER BY clause.

1 ACCEPTED SOLUTION

Accepted Solutions
larkino
Calcite | Level 5
The simplest way to calculate numbers of statements - calculate the number of ; (semicolon)

View solution in original post

4 REPLIES 4
jimbarbour
Meteorite | Level 14

I would also say three.

SASJedi
SAS Super FREQ

What version of the Certification Prep Guide are you using? I have the "SAS® Certification Prep Guide, Advanced Programming for SAS®9 Fourth Edition". In my copy, quiz question 2 on page page 23 states: 

2.How many statements does the program below contain?

proc sql; select grapes,oranges, grapes + oranges as sumsales from sales.produce order by sumsales;

a.two
b.three
c.four
d.five

 

For this question, the correct answer would be "a. two".

 

For the question you posted here, the correct answer would be "b. three". 

Check out my Jedi SAS Tricks for SAS Users
Mark2010
SAS Employee

Hi @SASJedi 

That helps explain the issue. Looks like in the latest guide (the one for the Programming Professional credential), a quit; statement was added to the question but not accounted for in the correct answer.

larkino
Calcite | Level 5
The simplest way to calculate numbers of statements - calculate the number of ; (semicolon)

Welcome to the Certification Community

 

This is a knowledge-sharing community for SAS Certified Professionals and anyone who wants to learn more about becoming SAS Certified. Ask questions and get answers fast. Share with others who are interested in certification and who are studying for certifications.To get the most from your community experience, use these getting-started resources:

Community Do's and Don'ts
How to add SAS syntax to your post
How to get fast, helpful answers
3 ways to show off your SAS skills

 

Why Get SAS Certified.jpg

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1169 views
  • 6 likes
  • 5 in conversation