0

programming languages Online Quiz - 143

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

y=intnx('year','21oct2009'd,3,'mid')What is the value of y?

  1. 01jun2012

  2. 21jul2012

  3. 19175 - Numeric equivalent of the date 01jul2012

  4. 21oct2012


Correct Option: C

The option that has to be used in order to debug a sas program is

  1. option debug=yes;

  2. data x/DEBUGGER;

  3. data x /DEBUG;

  4. option debug;


Correct Option: C

first = 'London,england'; city=substr(first,1,6); new_city=city||","||'England'; What is the value of new_city?

  1. Syntax Error

  2. london ,England

  3. london,england

  4. london, England


Correct Option: B

dataset sales sno amt 10 100 15 200 30 300 proc print data = sales; where sno < 20; where sno = 30; run; what is the result?

  1. No observations

  2. sno amt { 30 300}

  3. sno amt { 10 100} {15 200}

  4. sno amt { 10 100} {15 200} {30 300}


Correct Option: B

The contents of Dataset Emp is as follows {Ename} {Babu} {arun} proc sort data = Emp; by ename; run; The output will be: NOTE: { } are added for readability

  1. Babu arun

  2. Syntax Error

  3. arun Babu

  4. No observations


Correct Option: A

data new;input x $ @;if X='A' theninput y;datalines;A 1A 2B 3;run;What is the output?

  1. No observations

  2. x y {A 1} {A 2} {B 2}

  3. x y {A 1} {A 2}

  4. x y {A 1} {A 2} {B .}


Correct Option: D

proc sort data=new dupout=newdup;by x;run;What is the result of the above proc execution?

  1. Warning is displayed : NODUPKEY or NODUPREC not specified

  2. The duplicates are written into the dataset newdup

  3. syntax Error

  4. The unique records are written into the dataset newdup


Correct Option: A

The input file is like below {IP:10.236.130.102} {IP:10.160.236.202} {IP:10.236.119.99} . Read the IP address and store the IP numbers alone without having the IP word in the dataset. Required output is: address {10.236.130.102} {10.160.236.202} {10.236.119.99} Choose the correct option NOTE: { } is added for readability

  1. input @ 1 'IP:' address $;

  2. input @ 'IP:' address :$16. ;

  3. input @ 'IP:' address $16 ;

  4. input @ 'IP:' address $;


Correct Option: B

In the ENVIRONMENT DIVISION which paragrahs should a program (not a subroutine) have?

  1. ERROR RECOVERY

  2. ROLLBACK

  3. Any one of the above

  4. Both of the above


Correct Option: D

In the ENVIRONMENT DIVISION which of the following paragrahs should a subroutine have (using same schema)?

  1. ERROR RECOVERY

  2. ROLLBACK

  3. None of the above

  4. Both of the above


Correct Option: A

Levels are indented by multiples of ___ columns?

  1. 2

  2. 4

  3. 1

  4. No Compulsion


Correct Option: B

What is the format of date in the REMARKS ______?

  1. DD-MMM-YY

  2. DD-MMM-YYYY

  3. MMM-DD-YY

  4. MMM-DD-YYYY


Correct Option: A

R$Core should not be used for ------ SORT?

  1. EXTERNAL

  2. INTERNAL

  3. BOTH

  4. NONE OF THESE


Correct Option: A

--------- should be used as default qualifier and account-id in @run statement.

  1. PRODUCTION

  2. CCL

  3. YYY

  4. ANY OF THESE


Correct Option: A

INITIALIZE can be used for large Group varibales?

  1. True

  2. False


Correct Option: B

INITIALIZE can be used for small Group varibales?

  1. True

  2. False


Correct Option: B

What all needs to be registered while working on a new program/ecl

  1. ECL + Program + Input files

  2. Program+input file

  3. ECL + Program

  4. Program only


Correct Option: A

What all points to be considered while doing testing?

  1. Run the test scripts related to change

  2. Check the existing functionality

  3. do some negative/boundary condition

  4. all of them


Correct Option: D

Version number needs to be changed in CIF/ISTP when ever we are updating it?

  1. True

  2. False


Correct Option: A

we should avoid VALUE clause in programs for dynamic variables?

  1. True

  2. False


Correct Option: A
- Hide questions