Description: programming languages Online Quiz - 206 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which of the following is an advantage of CBD?
What is main objective of Component Based Development (CBD) approach?
What is the output of the following,
...
StringBuffer sb1 = new StringBuffer("Debopam");
StringBuffer sb2= new StringBuffer("Debopam ");
String ss1 = " Debopam ";
System.out.println(sb1==sb2);
System.out.println(sb1.equals(sb2));
System.out.println(sb1.equals(ss1));
System.out.println("Poddar".substring(3));
...
Identify whether the following statement is true or false.
The finally block is executed when an exception is thrown, even if no catch matches it.
Which tag adds a comment indicating that the API should no longer be used ?
Which tag is synonymous to the @throws tag ?
Which of the following tag is mandatory while using the Javadoc tool ?
What should be the order of the @param tag when there are multiple parameters in the declaration ?
You can avoid re-typing doc comments by being aware of how the Javadoc tool duplicates (inherits) comments for methods that override or implement other methods. This occurs in three cases:
data test; a='A dataset'; run; %macro opends(name); %if %sysfunc(exist(&name)) %then %do; %let dsid=%sysfunc(open(&name,i)); %put data set &name; %end; %else %put Data set &name does not exist.; %mend opends; %opends(null); %opends(test); What will be written in the Log?
When you use an %IF-%THEN statement in your macro program
Which of the following is false?
According to the global symbol table shown here, what value will a reference to &&teach&crs resolve to? TEACH1 Hallis, Dr. George TEACH2 Wickam,Dr. Alice TEACH3 Forest,Mr. Peter CRS 3
The SYMPUT routine cannot
data test ; x="Math A English B Physics A"; y=compress(x,'ABCD','k'); put y; run; The value of 'y' written in log is :
What will the following PROC CATALOG step do? proc catalog cat=mylib.sasmacr; contents; quit;
STRIP(string) returns the same result as :
%let x=5; %let y=10; %let a=%nrstr(%eval(&x + &y)); What is the output of the two put statement %put QCMPRES: %qcmpres(&a); %put CMPRES: %cmpres(&a);
Which of the following examples correctly defines the macro program Hex?
Given: class Feline { public static void main(String[] args) { Long x = 42L; Long y = 44L; System.out.print(" " + 7 + 2 + " "); System.out.print(foo() + x + 5 + " "); System.out.println(x + y + foo()); } static String foo() { return "foo"; } } What is the result?