• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 32 páginas
Examen

SAS Exam questions with complete solutions

Document preview thumbnail
Vista previa 4 fuera de 32 páginas

SAS Exam questions with complete solutions

Vista previa del contenido

SAS Exam questions with complete
solutions

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 word = 'NONE!!!';

amount = 5;

run;



Which of the following represents the values of the AMOUNT and WORD variables? - correct
answer ✔✔ amount word

5 DOG



The following SAS program is submitted:

data work.sets

do until (prod gt 6);

prod + 1;

end;

run;



What is the value of the variable PROD in the output data set? - correct answer ✔✔ 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;

What is the value of the PRICE variable? - correct answer ✔✔ (missing numeric value)



The following SAS program is submitted:

proc print data = sasuser.houses;

run;

<insert OPTIONS statement here>

proc means data = sasuser.shoes;

run;

What OPTIONS statement resets the page number to 1 for the second report? - correct answer
✔✔ options pageno=1;



A raw data record is listed below:

----|----10---|----20---|----30

son,Travis,



The following output is desired:

,relation firstname

son Travis



What SAS program reads the data correctly? - correct answer ✔✔ data.family;

infile 'file-specification' dlm=',',

input relation $ firstname $;

run;



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;



What IF statement writes the last observation to the output data set? - correct answer ✔✔ if
eof = 1



The following SAS DATA step executes Monday, April 25, 2000:

data newstaff;

set staff;

start_date = today();

run;



What is the value of the variables START_DATE in the output data set? - correct answer ✔✔ the
numeric value 124725, representing the SAS date for April 25, 2000

, The following SAS program is submitted:

data revenue;

set year_1;

var1 = mdy(1,15,1960);

run;



What value does the variable named VAR1 contain? - correct answer ✔✔ 14



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



COMPANY.PRICES

prodidpriceproduttype 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 HARDARE 45 5

DGTY 4.55 HARDWARE 67 2



The following SAS program is submitted:



libname company 'SAS-data-library';

data hware inter soft;

set company.prices (keep = producttype price);

if price le 5.00;

Información del documento

Subido en
20 de noviembre de 2025
Número de páginas
32
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$26.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
StuviaExamHub
3.7
(91)
Vendido
498
Seguidores
356
Artículos
26308
Última venta
16 horas hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes