Chapter 15 - Processing Variables with Arrays

Descrição

Quiz sobre Chapter 15 - Processing Variables with Arrays, criado por James Blair em 24-10-2014.
James Blair
Quiz por James Blair, atualizado more than 1 year ago
James Blair
Criado por James Blair mais de 10 anos atrás
47
0
1 2 3 4 5 (0)

Resumo de Recurso

Questão 1

Questão
Which statement is false regarding an ARRAY statement?
Responda
  • a. It is an executable statement.
  • b. It can be used to create variables.
  • c. It must contain either all numeric or all character elements.
  • d. It must be used to define an array before the array name can be referenced.

Questão 2

Questão
What belongs within the braces of this ARRAY statement? array contrib{?} qtr1-qtr4;
Responda
  • quarter
  • quarter*
  • 1-4
  • 4

Questão 3

Questão
For the program below, select an iterative DO statement to process all elements in the contrib array. data work.contrib; array contrib{ 4} qtr1-qtr4; ... contrib{ i} = contrib{ i}* 1.25; end; run;
Responda
  • do i = 4;
  • do i = 1 to 4;
  • do until i = 4;
  • do while i le 4;

Questão 4

Questão
What is the value of the index variable that references Jul in the statements below? array quarter{ 4} Jan Apr Jul Oct; do i = 1 to 4; yeargoal = quarter{ i}* 1.2; end;
Responda
  • 1
  • 2
  • 3
  • 4

Questão 5

Questão
Which DO statement would not process all the elements in the factors array shown below? array factors{*} age height weight bloodpr;
Responda
  • do i = 1 to dim( factors);
  • do i = 1 to dim(*);
  • do i = 1,2,3,4;
  • do i = 1 to 4;

Questão 6

Questão
Which statement below is false regarding the use of arrays to create variables?
Responda
  • The variables are added to the program data vector during the compilation of the DATA step.
  • You do not need to specify the array elements in the ARRAY statement.
  • By default, all character variables are assigned a length of eight.
  • Only character variables can be created.

Questão 7

Questão
For the first observation, what is the value of diff{ i} at the end of the second iteration of the DO loop? array wt{*} weight1-weight10; array diff{ 9}; do i = 1 to 9; diff{ i} = wt{ i + 1}-wt{ i}; end;
Responda
  • 15
  • 10
  • 8
  • -7

Questão 8

Questão
Finish the ARRAY statement below to create temporary array elements that have initial values of 9000, 9300, 9600, and 9900. array goal{ 4} ... ;
Responda
  • _temporary_ (9000 9300 9600 9900)
  • temporary (9000 9300 9600 9900)
  • _temporary_ 9000 9300 9600 9900
  • (temporary) 9000 9300 9600 9900

Questão 9

Questão
Based on the ARRAY statement below, select the array reference for the array element q50. array ques{ 3,25} q1-q75;
Responda
  • ques{ q50}
  • ques{ 1,50}
  • ques{ 2,25}
  • ques{ 3,0}

Questão 10

Questão
Select the ARRAY statement that defines the array in the following program. data coat; input category high1-high3 / low1-low3; array compare{ 2,3} high1-high3 low1-low3; do i = 1 to 2; do j = 1 to 3; compare{ i, j} = round( compare{ i, j}* 1.12); end; end; datalines; 5555 9 8 7 6 4 3 2 1 8888 21 12 34 64 13 14 15 16 ; run;
Responda
  • array compare{ 1,6} high1-high3 low1-low3;
  • array compare{ 2,3} high1-high3 low1-low3;
  • array compare{ 3,2} high1-high3 low1-low3;
  • array compare{ 3,3} high1-high3 low1-low3;

0 comentários

There are no comments, be the first and leave one below:

Semelhante

SAMPLING
Elliot O'Leary
FREQUENCY TABLES: MODE, MEDIAN AND MEAN
Elliot O'Leary
CUMULATIVE FREQUENCY DIAGRAMS
Elliot O'Leary
TYPES OF DATA
Elliot O'Leary
HISTOGRAMS
Elliot O'Leary
GROUPED DATA FREQUENCY TABLES: MODAL CLASS AND ESTIMATE OF MEAN
Elliot O'Leary
Statistics Vocab
Nabeeha Yusuf
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
chapter 1,2 statistics
Rigo Sanchez
Statistics, Data and Area (Semester 2 Exam)
meg willmington