By admin | September 10, 2009

SAS Certified Base Programmer 123 Questions (37)

The SAS data set named COMPANY.PRICES is listed below:

COMPANY.PRICES

prodid price producttype sales returns
K12S 5.10 NETWORK 15 2
B132S 2.34 HARDWARE 300 10
R18KY2 1.29 SOFTWARE 25 5
3KL8BY 6.37 HARDWARE 125 15
DY65DW 5.60 HARDWARE 45 5
DGTY23 4.55 HARDWARE 67 2

The following SAS program is submitted:

libnamecompany 'SAS-data-library';
data hware inter soft;
    set company.prices (keep = producttype price);
    if price le 5.00;
    if producttype = 'HARDWARE' then output HWARE;
    else if producttype = 'NETWORK' then output INTER;
    else if producttype = 'SOFTWARE' then output SOFT;
run;

How many observations does the HWARE data set contain?

A. 0
B. 2
C. 4
D. 6

2 comments | Add One

  1. admin - 09/10/2009 at 1:50 pm

    B

  2. MYK - 02/18/2011 at 8:48 am

    B

Leave a Comment

Leave a Reply

Your email address will not be published.