0
Alien head

programming languages Online Quiz - 122

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

data temp; set lib1.x lib2.y; length jobcode $12.; run; What would be the length of Jobcode in temp?

  1. 5

  2. 12

  3. 8

  4. Syntax error


Correct Option: B

Which ODS command closes the HTML file

  1. ODS HTML; CLOSE;

  2. ODS HTML CLOSE;

  3. ODS; HTML CLOSE;

  4. ODS CLOSE HTML;


Correct Option: B

Which is the correct statement: a.) ODS HTML FILE = ‘file’; b.) ODS FILE HTML = ‘file’ c.) ODS FILE = ‘file’ d.) ODS HTML = ‘file’

  1. c

  2. b

  3. a

  4. d


Correct Option: C

In Java, all non-static methods are by default "virtual functions." Only methods marked with the keyword final are non-virtual.

  1. True

  2. False


Correct Option: A

Some of the PROCs present in SAS are

  1. SUM

  2. MEANS

  3. FREQ

  4. DATASET


Correct Option: B,C,D

The output created by the DATA step are

  1. Means Reports

  2. SAS Datasets

  3. Frequency Reports

  4. SAS Files


Correct Option: B,D

In SAS log lines displayed with NOTE: contains

  1. Error messages

  2. Number of observations

  3. Usage of CPU in seconds

  4. Number of variables


Correct Option: B,C,D

In SAS log there are lines displayed with NOTE: ERROR: and WARNING:

  1. True

  2. False


Correct Option: A

Data Example2; Set Example1; Run; Proc Print Data = Example2; run; Here Proc step is executed first as Proc step always takes precedence in SAS .

  1. True

  2. False


Correct Option: B

Data Example2; Set Example1; Run; Proc Print Data = Example2; run; Here Proc step is executed first as Proc step always takes precedence in SAS .

  1. True

  2. False


Correct Option: B

Each time a step is executed, SAS software generates a log of the processing activities and the results of the processing.Separate sets of messages for each step in the program are produced.

  1. True

  2. False


Correct Option: A

Each time a step is executed, SAS software generates a log of the processing activities and the results of the processing.Separate sets of messages for each step in the program are produced.

  1. True

  2. False


Correct Option: A

SAS Statements – Usually begins with a keyword, always ends with a colon and are free format

  1. True

  2. False


Correct Option: B

A SAS program may contain a DATA step embedded within a PROC STEP and viceversa

  1. True

  2. False


Correct Option: B

SAS programs have basically 2 steps .They are

  1. Base SAS

  2. DATA

  3. Macro

  4. PROC


Correct Option: B,D

print 12e-02;

  1. 0.12

  2. 12

  3. 120

  4. 0.012


Correct Option: A

Which of the following is not a legal scalar variable

  1. $Scalar

  2. $_Scalar

  3. $Scalar1

  4. $Sca_lar


Correct Option: B

By default all our code is placed in one package called main

  1. True

  2. False


Correct Option: B

How many times does the following loop iterates? %list = ("first", "1", "second", "2", "third", "3"); foreach $word (keys(%list)) { last if ($word == "second"); }

  1. four

  2. three

  3. two

  4. one

  5. Unpredictable


Correct Option: E

$input =”12345”; $value1 = chop($input); $value2=chomp($input”); print $value1, $value2;

  1. 1234 and 1

  2. 12345 and 0

  3. 1234 and 0

  4. 5 and 0

  5. 1 and 0


Correct Option: D
+ View questions