• ¿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 2 fuera de 8 páginas
Examen

Sas Study Guide Questions With 100% Correct Answers

Document preview thumbnail
Vista previa 2 fuera de 8 páginas

SAS STUDY GUIDE QUESTIONS WITH 100% CORRECT ANSWERS

Vista previa del contenido

SAS STUDY GUIDE QUESTIONS WITH
100% CORRECT ANSWERS

Which statement contains valid syntax for the RETAIN statement?
a. retain year 2018;
b. retain year*2018;
c. retain year=2018;
d. retain year{2018}; - Answer-a
Year is the column to retain with an initial value of 2018. A space goes between the
retain column and the initial value.

Which statement is false concerning the sum statement?

a.The sum statement ignores missing values.
b.The sum statement initially sets the accumulator column to missing.
c.The sum statements adds a numeric value to an accumulator column.
d.The sum statement automatically retains the value of the accumulating column. -
Answer-b
The SUM statement ignores missing values, initially sets the accumulator column to 0

Which of the following is a valid name for a character format?
a.country
b.$ctry
c.$country.
d._country - Answer-b)
Character formats must start with a dollar sign followed by a letter or underscore. A
format name does not end with a period.

Which of the following statements selects from a table only those rows where the value
of the Style column is RANCH, SPLIT, or TWOSTORY?

a. where Style='RANCH' or 'SPLIT' or 'TWOSTORY';
b. where Style in 'RANCH' or 'SPLIT' or 'TWOSTORY';
c. where Style in (RANCH, SPLIT, TWOSTORY);
d. where Style in ('RANCH', 'SPLIT', 'TWOSTORY'); - Answer-where Style in ('RANCH',
'SPLIT', 'TWOSTORY');

Functions and CALL routines both return a value that must be used in an assignment
statement or expression.
a.True

, b.False - Answer-B. False

Which function calculates the average of the columns Week1, Week2, Week3, and
Week4?

a.mean(Week1, Week4)
b.mean(Week1-Week4)
c.mean(of Week1, Week4)
d.mean(of Week1-Week4) - Answer-D. mean(of Week1-Week4)

Which expression rounds each value of Sales to the nearest hundredth (or two decimal
places)?
a.round(Sales)
b.round(Sales, 2)
c.round(Sales, .01)
d.round(Sales, dollar10.2) - Answer-C. round(Sales, .01)

Which statement reads CityCountry and correctly assigns a value to Country?

a.Country=scan(CityCountry, 2);
b.Country=scan(CityCountry, -1);
c.Country=scan(CityCountry, 2, ',');
d.Country=scan(CityCountry, 2, ', '); - Answer-c

The SCAN function should return the second word using only the comma as a delimiter.

Which expression creates CityCountry?
a.cat(City, ", ", Country)
b.cats(", ", City, Country)
c.catx(City, ", ", Country)
d.catx(", ", City, Country) - Answer-d

The CATX function concatenates strings together, removes leading and training blanks,
and inserts the separator that is defined as the first argument.

Which of the following functions can convert the values of the numeric variable Level to
character values?

a.put(Level, 3.)
b.put(3., Level)
c.input(3., Level)
d.input(Level, 3.) - Answer-a.put(Level, 3.)


data national;
set sashelp.baseball;
BatAvg=nHits/nAtBat;

Información del documento

Subido en
6 de diciembre de 2025
Número de páginas
8
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿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.
Perfectscorer
3.6
(77)
Vendido
510
Seguidores
355
Artículos
9461
Última venta
2 semanas 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