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:         Fri, 20 Jul 2007 03:02:53 -0000
Reply-To:     "rachna.gollamudi@gmail.com" <rachna.gollamudi@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "rachna.gollamudi@gmail.com" <rachna.gollamudi@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Please help with these qns
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

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)


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