0

programming languages Online Quiz - 121

Description: programming languages Online Quiz - 121
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

PROC SORT data = lib.temp out = temp2; By subjid; Run; In which library temp2 is made?

  1. work

  2. sasuser

  3. lib

  4. syntax error


Correct Option: A

options obs = 500; Data TEMP; Set test(firstobs = 75); Run; What will be the number of observations in temp dataset?

  1. 425

  2. 424

  3. 500

  4. 426


Correct Option: D

PROC SORT data = temp out=new; BY JOBCODE Descending SALARY; RUN; Temp DATASET What will be the output??

  1. "temp" dataset sorted by jobcode in desending order and salary in ascending order

  2. "temp" dataset sorted by jobcode in ascending order and salary in descending order

  3. "new" dataset sorted by jobcode in ascending order and salary in descending order

  4. "new" dataset sorted by jobcode in descending order and salary in ascending order


Correct Option: C

data temp; test = ‘X’; select(test); when(‘Y’) Name = ‘Ank’; when(‘X’) Name = ‘Ankur’; when(‘Z’) Name = ‘ ’; end; run; What is the output?

  1. Ank

  2. Ankur

  3. Missing

  4. 'Ankur'


Correct Option: A

data null; put ‘test’; run; Where will the ouput(test) be written?

  1. Syntax error

  2. Log

  3. In Last file opened

  4. In dataset null


Correct Option: B
  1. d.) Will have values “TRUE” or “FALSE”

  2. c.) Will have values “YES” or “NO”

  3. b.) This variable appears in output dataset

  4. a.) Can be used in assignments/calculation in datastep.


Correct Option: D

1----5----10--- (data in file ‘asa’) 03132000 data temp; infile ‘asa’; input date : MMDDYY10.; run; What will be stored in date?

  1. 02 January

  2. 02FEB2000

  3. 01022000

  4. 14682(number of days from 1st jan 1960)


Correct Option: D

data test; dat = '13MAR2000'd; format dat WEEKDATE.; run; What will be the value of dat in output dataset?

  1. 14682 (nmber of days from 1st jan 1960)

  2. 13MAR2000

  3. Monday, March 13, 2000

  4. Mon, March 13, 2000


Correct Option: C

data temp; set x; run; “missing code” data test; set y; run; What will be the missing code to reset the page number ?

  1. OPTIONS PAGENO = 1;

  2. OPTIONS RESET PAGENO = 1;

  3. OPTIONS RESET PAGENUMBER = 1;

  4. OPTIONS PAGENUMBER = 1;


Correct Option: A
  1. a.) FILE ‘filename’ dsd = ‘,’;

  2. b.) FILE ‘filename’ dlm = ‘ ’ dsd = ‘,’;

  3. c.) FILE ‘filename’ dlm = ‘,’;

  4. d.) FILE ‘filename’ csv = ‘,’;


Correct Option: C

libname temp ‘abc.sds.as’; data temp.X1; set sasuser.X2; run; Which is the correct statement??

  1. In datastep input is read from temporary location and output is written to temporary location.

  2. .) In datastep input is read from permanent location and output is written to temporary location.

  3. In datastep input is read from temporary location and output is written to permanent location.

  4. In datastep input is read from permanent location and output is written to permanent location.


Correct Option: D
  1. 11/31/2000

  2. 31/11/2000

  3. 31NOV2000

  4. 01NOVEMBER2000


Correct Option: C

What informat should be used to read the date variable in the flat file having the values like 02NOV2003?

  1. DATE9.

  2. MMDDYY8.

  3. MMDDYY10.

  4. none


Correct Option: A
- Hide questions