Tag: programming languages

Questions Related to programming languages

  1. Character variables

  2. Numeric Variables

  3. Both Numeric & Character Variables.

  4. None : Variable names must be specified.


Correct Option: C
  1. proc freq data=asthma ; weight count; tables asthma / nocum; format asthma asth.; run;

  2. proc freq data=asthma order = formatted ; weight count; tables asthma / nocum; format asthma asth.; run;

  3. proc freq data=asthma order = formatted ; weight count; tables asthma ; format asthma asth.; run;

  4. proc freq data=asthma order = formatted ; tables asthma / nocum; format asthma asth.; run;


Correct Option: B

What will be printed? use strict; my @a = (1, 2, 3); my %b = (2 => undef); for my $val (@a) { last if $b{$val}; } print $val;

  1. undef

  2. 0

  3. 1

  4. 2

  5. the code is ill-formed


Correct Option: E
  1. holds the last pattern matched.

  2. holds the output field separator.

  3. identifies the current command line argument.

  4. none of the above is correct.


Correct Option: C
  1. Practical Extraction and Report Language

  2. Practice for Exclusive and Report Language

  3. Practical Extraction and Report Learning

  4. Practical Exclusive and Report Language


Correct Option: A
  1. is 10

  2. is true.

  3. cannot be determined from the information given.

  4. relies on which command line arguments were used.


Correct Option: C
  1. @a = split($str).

  2. @a = split(/\s/, $str).

  3. This task can be done in Perl but none of the above commands do it.

  4. @a = split(/./, $str).


Correct Option: C