0

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

$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

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

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

  1. True

  2. False


Correct Option: B

Which of the following is not a legal scalar variable

  1. $Scalar

  2. $_Scalar

  3. $Scalar1

  4. $Sca_lar


Correct Option: B

print 12e-02;

  1. 0.12

  2. 12

  3. 120

  4. 0.012


Correct Option: A

SAS programs have basically 2 steps .They are

  1. Base SAS

  2. DATA

  3. Macro

  4. PROC


Correct Option: B,D

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

  1. True

  2. False


Correct Option: B

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

  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

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

  1. True

  2. False


Correct Option: A

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

The output created by the DATA step are

  1. Means Reports

  2. SAS Datasets

  3. Frequency Reports

  4. SAS Files


Correct Option: B,D

Some of the PROCs present in SAS are

  1. SUM

  2. MEANS

  3. FREQ

  4. DATASET


Correct Option: B,C,D

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

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
- Hide questions