|
Question 1.
In the following SAS program, the input data files are sorted by the NAMES variable:
libnametemp 'SAS-data-library';
data temp.sales;
merge temp.sales
work.receipt;
by names;
run;
Which one of the following results occurs when this program is submitted?
A. The program executes successfully and a temporary SAS data set is created.
B. The program executes successfully and a permanent SAS data set is created.
C. The program fails execution because the same SAS data set is referenced for both read and
write operations.
D. The program fails execution because the SAS data sets on the MERGE statement are in two
different libraries.
Answer: B
Question 2.
When the following SAS program is submitted, the data set SASDATA.PRDSALES contains 5000 observations:
libnamesastemp 'SAS-data-library';
options obs = 500;
proc print data = sasdata.prdsales (firsttobs = 100);
run;
options obs = max;
proc means data = sasdata.prdsales (firsttobs = 500);
run;
How many observations are processed by each procedure?
A. 400 for PROC PRINT
4500 for PROC MEANS
B. 401 for PROC PRINT
4501 for PROC MEANS
C. 401 for PROC PRINT
4500 for PROC MEANS
D. 500 for PROC PRINT
5000 for PROC MEANS
Answer: B
Question 3.
The following SAS program is submitted:
data work.new;
length word $7;
amount = 7;
if amount = 5 then word = 'CAT';
else if amount = 7 then word = 'DOG';
else work = 'NONE!!!';
amount = 5;
run;
Which one of the following represents the values of the AMOUNT and WORD variables?
A. amount word
5 DOG
B. amount word
5 CAT
C. amount word
7 DOG
D. amount word
7 ' ' (missing character value)
Answer: A
Question 4.
Which one of the following is true of the SUM statement in a SAS DATA step program?
A. It is only valid in conjunction with a SUM function.
B. It is not valid with the SET, MERGE and UPDATE statements.
C. It adds the value of an expression to an accumulator variable and ignores missing values.
D. It does not retain the accumulator variable value from one iteration of the SAS DATA step to
the next.
Answer: C
Question 5.
The following SAS program is submitted:
data work.sets;
do until (prod gt 6);
prod + 1;
end;
run;
Which one of the following is the value of the variable PROD in the output data set?
A. 5
B. 6
C. 7
D. 8
Answer: C
Question 6.
The following SAS program is submitted:
proc print data = sasuser.houses;
run;
<insert OPTIONS statement here>
proc means data = sasuser.shoes;
run;
Which one of the following OPTIONS statements resets the page number to 1 for the second report?
A. option pageno = 1;
B. option pagenum = 1;
C. options reset pageno = 1;
D. options reset pagenum = 1;
Answer: A
Question 7.
The contents of the raw data file PRODUCT are listed below:
----|----10---|----20---|----30
24613 $25.31
The following SAS program is submitted:
data inventory;
infile 'product';
input idnum 5. @10 price;
run;
Which one of the following is the value of the PRICE variable?
A. 25.31
B. $25.31
C. . (missing numeric value)
D. No value is stored as the program fails to execute due to errors.
Answer: C
Question 8.
The contents of the raw data file TYPECOLOR are listed below:
----|----10---|----20---|----30
daisyyellow
The following SAS program is submitted:
data flowers;
infile'typecolor';
input type $ 1-5 +1 color $;
run;
Which one of the following represents the values of the variables TYPE and COLOR?
A. type color
daisy yellow
B. type color
daisy yellow
C. type color
daisyyellow (missing character value)
D. No values are stored as the program fails to execute due to syntax errors.
Answer: B
Question 9.
A raw data record is listed below:
----|----10---|----20---|----30
son,Travis,
The following output is desired:
relation first name
son Travis
Which one of the following SAS programs reads the data correctly?
A. data family / dlm = ',';
infile 'file-specification';
input relation $ firstname $;
run;
B. option dlm = ',';
data family;
infile 'file-specification';
input relation $ firstname $;
run;
C. data family;
infile 'file-specification' option dlm = ',';
input relation $ firstname $;
run;
D. data family;
infile 'file-specification';
input relation $ firstname $ / dlm = ',';
run;
Answer: C
Question 10.
The following SAS program is submitted:
libnamerawdata1 'location of SAS data library';
filename rawdata2 'location of raw data file';
data work.testdata;
infile<insert item here>
input sales1 salse2;
run;
Which one of the following is needed to complete the program correctly?
A. rawdata1
B. rawdata2
C. 'rawdata1'
D. 'rawdata2'
Answer: B
Question 11.
The following SAS program is submitted and reads 100 records from a raw data file:
data work.total;
infile 'file-specification' end = eof;
input name $ salary;
totsal+ salary;
<insert IF statement here>
run;
Which one of the following IF statements write the last observation to the output data set?
A. if end = 0;
B. if eof = 0;
C. if end = 1;
D. if eof = 1;
Answer: D
Question 12.
The contents of the raw data file FURNITURE are listed below:
----|----10---|----20---|----30
chair,,table
chair,couch,table
The following SAS program is submitted:
data stock;
infile 'furniture' dsd;
input item1 $ item2 $ item3 $;
run;
Which one of the following is the value of the variable named ITEM2 in the first observation of the output data set?
A. table
B. ,table
C. . (missing numeric value)
D. ' ' (missing character value)
Answer: D
Question 13
A raw data file is listed below:
RANCH,1250,2,1,Sheppard Avenue,"$64,000"
SPLIT,1190,1,1,Rand Street,"$65,850"
CONDO,1400,2,1.5,Market Street,"80,050"
TWOSTORY,1810,4,3,Garris Street,"$107,250"
RANCH,1500,3,3,Kemble Avenue,"$86,650"
SPLIT,1615,4,3,West Drive,"94,450"
SPLIT,1305,3,1.5,Graham Avenue,"$73,650"
The following SAS program is submitted using the raw data file as input:
data work.condo_ranch;
infile'file-specification' dsd;
input style $ @;
if style = 'CONDO' or style = 'RANCH' then
input sqfeet bedrooms baths street $ price : dollar10.;
run;
How many observations does the WORK.CONDO_RANCH data set contain?
A. 0
B. 3
C. 5
D. 7
Answer: D
Question 14.
A raw data file is listed below:
RANCH,1250,2,1,Sheppard Avenue,"$64,000"
SPLIT,1190,1,1,Rand Street,"$65,850"
CONDO,1400,2,1.5,Market Street,"80,050"
TWOSTORY,1810,4,3,Garris Street,"$107,250"
RANCH,1500,3,3,Kemble Avenue,"$86,650"
SPLIT,1615,4,3,West Drive,"94,450"
SPLIT,1305,3,1.5,Graham Avenue,"$73,650"
The following SAS program is submitted using the raw data file as input:
data work.condo_ranch;
infile'file-specification' dsd;
input style $ @;
if style = 'CONDO' or style = 'RANCH';
input sqfeet bedrooms baths street $ price : dollar10.;
run;
How many observations will the output data set contain?
A. 0
B. 3
C. 5
D. 7
Answer: B
Question 15.
The following SAS program is submitted:
data num records;
infile 'file-specification';
input @1 patient $15.
relative $ 16-26 @;
if relative = 'children' then
input @54 diagnosis $15. @;
else if relative = 'parents' then
input @28 doctor $15.
clinic $ 44-53
@54 diagnosis $15. @;
input age;
run;
How many raw data records are read during each iteration of the DATA step during execution?
A. 1
B. 2
C. 3
D. 4
Answer: A
Question 16.
The following SAS program is submitted:
data work.empsalary;
set work.people (in = inemp)
work.money(in = insal);
if insal and inemp;
run;
The SAS data set WORK.PEOPLE has 5 observations, and the data set
WORK.MONEY has 7 observations.
How many observations will the data set WORK.EMPSALARY contain?
A. 0
B. 5
C. 7
D. 12
Answer: A
Question 17.
The contents of two SAS data sets named EMPLOYEE and SALARY are listed
below:
EMPLOYEE SALARY
name age name salary
Bruce 30 Bruce 40000
Dan 35 Bruce 35000
Dan 37000
Dan .
The following SAS program is submitted:
data work.empsalary;
merge work.employee (in = inemp)
work.salary(in = insal);
by name;
if inemp and insal;
run;
How many observations will the data set WORK.EMPSALARY contain?
A. 2
B. 4
C. 5
D. 6
Answer: B
Question 18.
The SAS data sets WORK.EMPLOYEE and WORK.SALARY are listed below:
WORK.EMPLOYEE WORK.SALARY
fnameage fname salary
Bruce 30 Bruce 25000
Dan 40 Bruce 35000
Dan 25000
The following SAS program is submitted:
data work.empdata;
merge work.employee
work.salary;
by fname;
totsal+ salary;
run;
How many variables are output to the WORK.EMPDATA data set?
A. 3
B. 4
C. 5
D. No variables are output to the data set as the program fails to execute due to errors.
Answer: B
Question 19.
The SAS data sets WORK.EMPLOYEE and WORK.SALARY are shown below:
WORK.EMPLOYEE WORK.SALARY
fnameage name salary
Bruce 30 Bruce 25000
Dan 40 Bruce 35000
Dan 25000
The following SAS program is submitted:
data work.empdata;
<insert MERGE statement here>
by fname;
totsal+ salary;
run;
Which one of the following statements completes the merge of the two data sets by the FNAME variable?
A. merge work.employee
work.salary (fname = name);
B. merge work.employee
work.salary (name = fname);
C. merge work.employee
work.salary (rename = (fname = name));
D. merge work.employee
work.salary (rename = (name = fname));
Answer: D
Question 20.
The following SAS program is submitted:
proc sort data=work.employee;
by descending fname;
proc sort sort data=work.salary;
by descending fname;
data work.empdata;
merge work.employee
work.salary;
by fname;
run;
Which one of the following statements explains why the program failed execution?
A. The SORT procedures contain invalid syntax.
B. The merged data sets are not permanent SAS data sets.
C. The data sets were not merged in the order by which they were sorted.
D. The RUN statements were omitted after each of the SORT procedures.
Answer: C
|
Question 2. Click the Exhibit button. Referring to the exhibit, which type of classifier is being used in this CoS configuration? A. behavior aggregate B. policer C. multifield D. forwarding policy Answer: C Explanation: Reference: http://www.juniper.net/techpubs/software/junos/junos56/swconfig56-interfaces/html/cosoverview3. html http://www.juniper.net/techpubs/software/junos/junos56/swconfig56-interfaces/html/cosoverview4. html Question 3. Which command do you use to go from the shell prompt to the CLI prompt? A. run cli B. cli C. start cli D. edit Answer: B Explanation: Reference: just see example: root@195.184.192.231's password: --- JUNOS 9.5R4.3 built 2010-02-16 08:09:40 UTC root@rc2% cli root@rc2.au.glk> Question 4. When using the monitor traffic command on Junos devices, which UNIX-based utility is accessed? A. snoop B. tcpdump C. monitor D. tail Answer: C Explanation: Reference: http://www.juniper.net/techpubs/software/junos-es/junos-es93/junos-es-admin-guide/using-themonitor-traffic-command.html Question 5. What is the default import routing policy for OSPF? A. Accept all OSPF routes and install them into the inet 3 routing table. B. Accept all OSPF routes and install them into the inet7.0 routing table C. Accept all OSPF routes and install them into the inet4.0 routing table D. Accept all OSPF routes and install them into the inet.0 routing table. Answer: D Explanation: Reference: http://www.juniper.net/techpubs/en_US/junos10.0/information-products/topic-collections/configguide-policy/policy-protocol-import-export-defaults.html#id-10113228 Question 6. Which three user authentication methods are supported by the Junos OS? (Choose three.) A. RADIUS B. CHAP C. local user database D. TACACS+ E. PAP Answer: A, C, D Explanation: Reference: http://www.juniper.net/techpubs/en_US/junos9.5/information-products/topic-collections/swconfigsystem-basics/authentication-order-authentication-methods-overview.html Question 7. What represents the binary equivalence of 207? A. 11001111 B. 11101011 C. 11010111 D. 11010101 Answer: A Question 8. What must be configured prior to the first commit after factory defaults are loaded? A. root authentication B. default gateway C. hostname D. management services Answer: A Question 9. Which account is used to access a Junos device in factory-default configuration? A. root B. admin C. juniper D. user Answer: A Question 10. You need to control SSH. HTTP, and Telnet access to an MX240 router through any interface. You have decided to use a firewall filter. How should you apply the firewall filter? A. as an outbound filter on interface fxp0 B. as an outbound filter on interface lo0 C. as an inbound filter on interface fxp0 D. as an inbound filter on interface lo0 Answer: D
Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.