Tag: programming languages

Questions Related to programming languages

Dataset x Rev1 Rev2 Rev3 Rev4 1 3 4 5 data y; set x; z=mean(?); run; Fill in the mean function call.

  1. mean(Rev1-Rev4)

  2. mean(of Rev:)

  3. mean(Rev1 Rev2 Rev3 Rev4)

  4. mean(of Rev1,Rev2,Rev3,Rev3)


Correct Option: B
  1. The use of This; local to a function is illegal

  2. Access modifiers can not be applied to local variables

  3. All classes must be declared public

  4. None of these


Correct Option: B

Which of the following can be marked Static ? (A)Initialization blocks (B)A class nested within another class, but not within a method

  1. Only A

  2. Only B

  3. None of these

  4. Both A & B


Correct Option: D

x=input('13mar2010'd,date9.) What is the length and type of the variable x

  1. 8 bytes;Numeric

  2. 9 bytes Numeric

  3. 8 bytes Character

  4. 9 bytes Character


Correct Option: A
  1. x and y are numeric and z is character

  2. All the variables are numeric

  3. x and z are numeric y is character

  4. All the variables are character


Correct Option: B