programming languages Online Quiz - 215

programming languages Online Quiz - 215

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What are the valid values of SYSENV macro variable

  1. FORE, BACK
  2. OpenVMS,WIN, HP 300
  3. Batch,Interactive
  4. All of the above
Question 2 True/False

(a) %let prog=%str(data new; x=1; run;); (b) %let prog=data new%str(;) x=1%str(;)run%str(;); The above two are equivalent?

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

%let a=begin; %let b=%nrstr(&a); %put UPCASE produces: %upcase(&b); %put QUPCASE produces: %qupcase(&b); The output of the two put statement is :

  1. BEGIN and &A
  2. begin and &A
  3. begin and begin
  4. begin and BEGIN
Question 4 Multiple Choice (Single Answer)

What are the resulting values for the macro variables that are defined here? %let month1 = June; %let month2 = July; %let period1 = &month1&month2; %let period2 = May&month1; %let period3 = &month2.Aug;

  1. month1 June month2 July period1 June July period2 May June period3 July Aug
  2. month1 June month2 July period1 JuneJuly period2 MayJune period3 July.Aug
  3. month1 June month2 July period1 JuneJuly period2 MayJune period3 JulyAug
  4. month1 June month2 July period1 junejuly period2 Mayjune period3 julyaug
Question 5 Multiple Choice (Single Answer)

%let lib=sasuser; %let year=02; %let month=jan; libname &lib ’SAS-data-library’; proc print data=&lib.y&year&month; run; The dataset name that proc print gets is "sasusery02jan".Which of the following character you will use in place of to finally have "sasuser.y02jan" dataset. proc print data=&lib.y&year&month; run;

  1. . (period)
  2. &(ampersand)
  3. %(percentage)
  4. Any one of the above character
Question 6 Multiple Choice (Single Answer)

Which of the following correctly produces a title in which the current date is left justified in order to remove extra blanks?

  1. title "Report for %sysfunc(left(%sysfunc(today(),worddate.)))";
  2. title "Report for %sysfunc(left(today(), worddate.))";
  3. title "Report for %sysfunc(left(%qsysfunc(today(), worddate.)))";
  4. title "Report for %left(today(), worddate.))";
Question 7 Multiple Choice (Single Answer)

Suggest the most appropriate masking macro function that can be used to read the following text strings: Pride and Prejudice Rice & Beans Charles Dickens' Complete Works

  1. %QUOTE , %NRQUOTE , %BQUOTE
  2. %NRQUOTE , %NRQUOTE , %QUOTE
  3. %QUOTE , %QUOTE , %NRQUOTE
  4. %QUOTE , %BQUOTE , %NRQUOTE
Question 8 Multiple Choice (Single Answer)

New functions provided with SAP NetWeaver PI 7.1 are an extension of the robust architecture based on

  1. JEE5
  2. VB
  3. .NET
  4. ABAP
Question 9 Multiple Choice (Multiple Answers)

The integral part of SAP Netweaver is made up of

  1. Enterprise Service Repository
  2. Enterprise Service Registry
  3. Integration Directory
  4. Integration Builder
Question 10 Multiple Choice (Single Answer)

The Expansion for eSOA

  1. Extensible Service Oriented Architecture
  2. Extensible Schema of Application
  3. Enterprise Schema Oriented Application
  4. enterprise Service Oriented Architecture
Question 11 Multiple Choice (Single Answer)

As of SAP Netweaver PI 7.1 , the Integration Builder(Design) is replaced by

  1. Operation mapping
  2. Service Interface
  3. Enterprises Service Builder
  4. Communication Component
Question 12 Multiple Choice (Single Answer)

As of SAP Netweaver PI 7.1 , Interface mapping is replaced by

  1. Message mapping
  2. Communication Channel
  3. Operation mapping
  4. Communication Component
Question 13 Multiple Choice (Single Answer)

Among the following choices which is correct about readonly variable in C# code?

  1. It's the same as a constant
  2. It's value can be assigned only once
  3. You can never assign a value to it
  4. You can assign value multiple times
Question 14 Multiple Choice (Single Answer)

What is a manifest ?

  1. area where the assembly code is compiled
  2. area in which Debug information is a stored
  3. area in which Assembly metadata is stored
  4. area where variables are initialized
Question 15 Multiple Choice (Single Answer)

COM objects can be called in C# using :

  1. DLLImport
  2. UsingDLL
  3. DLLCall
  4. CallDLL
Question 16 Multiple Choice (Single Answer)

In C# an assembly is deployed

  1. Using MSI installer
  2. using XCOPY
  3. using a CAB archive
  4. All of the above
Question 17 Multiple Choice (Single Answer)

Which among the following is a valid syntax defining a delegate

  1. delegate {TheMethod( int Z) }
  2. delegate void TheMethod(int Z) ;
  3. delegate: TheMethod (int Z)
  4. delegate: {TheMethod (int Z)}
Question 18 Multiple Choice (Single Answer)

Which of the following is an exclusive feature of C#?

  1. Object Oriented
  2. IL
  3. XML documentation
  4. Garbage Collection
Question 19 Multiple Choice (Single Answer)

Considering that applications are running in different application domains how does a running application communicate or share data with other application?

  1. using Exceptions
  2. using attributes
  3. using .NET remoting services
  4. using IO
Question 20 Multiple Choice (Single Answer)

How does struct differ from class in C#?

  1. Structs cannot be inherited.
  2. Structs are passed by value, not by reference.
  3. Struct is stored on the stack, not the heap.
  4. structs can be inherited