programming languages Online Quiz - 120

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

The variable JOBCODE has length $5 in the dataset TEMP. The same variable present in the dataset TEMP1 and has length $7. data temp2; set temp temp1; run; what would be the length of the variable JOBCODE in the dataset TEMP2?

  1. 5

  2. 7

  3. c) we can’t see the length as data set won’t be created due to errors.

  4. none

Correct Option: A

What is the maximum combined length of command line arguments including the space between adjacent arguments?

  1. 32 K

  2. 42 K

  3. 23 K

  4. 24 K

Correct Option: A
  1. None of the below

  2. Left shifting an unsigned int or char by 1

  3. Left shifting a number by 1

  4. Both

Correct Option: C
  1. char *gcvt(double value,int digit,char buf);

  2. char *gcvt(double value,int digit,char *buf);

  3. char *gcvt(double value,int digit,char *buf)

  4. char *gcvt(double value,int digit,char buf)

Correct Option: B
  1. data family/dlm = ',';

  2. options dlm=',';

  3. infile 'file-specification' dlm=',';

  4. input relation $ firstname $ /dlm=',';

Correct Option: C
  1. No library references are required

  2. The datasets listed on all the IF statements require a library reference

  3. The datasets listed on the last two IF statements require a library reference

  4. The datasets listed on the first two IF statements require a library reference

Correct Option: D
  1. print the observations of the dataset

  2. renaming variables

  3. selecting only the first or last n observations for processing

  4. dropping variables from processing or from the output data set

Correct Option: B,C,D

The general form of SUM statement is

  1. variable = variable+expression;

  2. variable+expression;

  3. sum(expression,variable)

  4. expression=variable+expression;

Correct Option: B

The following SAS program is submitted: data work.flights; destination='CPH'; select(destination); when('LPR') city = 'London'; when('CPH') city='Copenhagen'; otherwise; end;run; Which one of the following is the value of the CITY variable?

  1. London

  2. Copenh

  3. Copenhagen

  4. Missing

Correct Option: B
- Hide questions