LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 19 Jul 2007 23:27:15 -0400
Reply-To:     "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject:      Re: Please help with these qns

On Fri, 20 Jul 2007 03:02:53 -0000, rachna.gollamudi@gmail.com <rachna.gollamudi@GMAIL.COM> wrote:

>1. data work.new; >length word $7; >amount=7; >if amount = 5 then word='CAT'; >if amount = 7 then word='DOG'; >else word = 'NONE!!!'; >amount=5; >run; > >WHICH ONE OF THE FOLLOWING REPRESENTS THE VALUES OF AMOUNT AND WORD >VARIABLES? >A. 5 DOG >B. 5 CAT >C. 7 DOG >D. 7 (MISSING CHARAC VALUE) > > >2. Data Combine; > Country = 'Italy, Russia, ireland; >Found = find (country,'i'); >run; > >What is the value of the variable Found? > >A. 1 >B. 12 >C. RUSSIA >D. ITALY > >3. The contents of the raw data file EMPLOYEE are listed below: >ruth 39 11 >jose 32 22 >sue 30 33 >john 40 44 >The following SAS program is submitted >data test; >infile 'employee'; >input employee_name $1-4; >if employee_name='sue' then input age 7-8; >else input idnum 10-11; >run; >which one of the following values does the variable AGE contain when >the name of the employee is 'Sue';? > > >Answer: >A. 30 >B. 33 >C. 40 >D. .(missing numeric value)

Please don't ask other people to do your homework for you.

You may ask very specific questions, ones which make you unsure about your own answers.


Back to: Top of message | Previous page | Main SAS-L page