0

programming languages Online Quiz - 119

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

data work.flights; destination='cph'; select(destination); when('LPR') city='London'; when('CPH') city = 'Copenhagen'; otherwise city='Other'; end; run; which one of the following is the value of the CITY variable?

  1. Other

  2. Copenh

  3. Copenhagen

  4. Missing


Correct Option: A

data work.company; set work.dept1(keep=jobcode) work.dept2(rename=(jcode=jobcode)); run; which one of the following is the result?

  1. The variable JCODE is written to the output data set

  2. The variable JOBCODE is written to the output data set

  3. Neither variable JCODE nor JOBCODE is written to the output dataset

  4. The program fails to execute due to errors


Correct Option: B

A realtor has two customers.One customer wants to view a list of homes selling for less than $60,000.the other customer wants to view a list of homes selling for greater than $100,000.Assuming the PRICE variable is numeric,which one of the following PRINT procedure steps will select all desired observations.

  1. proc print data=sasuser.houses; where price lt 60000;where price gt 100000;run;

  2. proc print data=sasuser.houses; where price lt 60000 or price gt 100000;run;

  3. proc print data=sasuser.houses; where price lt 60000 and price gt 100000;run;

  4. proc print data=sasuser.houses; where price lt 60000 or where price gt 100000;run;


Correct Option: B

which one of the following System option displays the time on the report

  1. DATE

  2. TIME

  3. TODAY

  4. DATETIME


Correct Option: A

which one of the following statements is true when SAS encounters a data error in a DATA step?

  1. The DATA step stops executing at the point of the error and no SAS dataset is created

  2. A note is written to the SAS log expalining the error and the DATA step continues to execute

  3. A note appreas in the SAS log that the incorrect data record was saved to a seperate SAS file for further examiantion

  4. The DATA step stops executing at the point of the error and the resulting DATA set contains observations up to that point


Correct Option: B

The same method name , same argumentlist But different return type is called as

  1. overload method

  2. override method

  3. ploymorphism

  4. none


Correct Option: D

is it possible to declare the abstract class referece type?

  1. True

  2. False


Correct Option: A

What is the super calss of class?

  1. Nothing

  2. Class object

  3. class

  4. calss reference


Correct Option: B
- Hide questions