programming languages Online Quiz - 206
Description: programming languages Online Quiz - 206 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
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?
Which of the following examples correctly defines the macro program Hex?
%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);
STRIP(string) returns the same result as :
What will the following PROC CATALOG step do? proc catalog cat=mylib.sasmacr; contents; quit;
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 :
The SYMPUT routine cannot
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
Which of the following is false?
When you use an %IF-%THEN statement in your macro program
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?
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:
What should be the order of the @param tag when there are multiple parameters in the declaration ?
Which of the following tag is mandatory while using the Javadoc tool ?
Which tag is synonymous to the @throws tag ?
Which tag adds a comment indicating that the API should no longer be used ?
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.
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));
...
What is main objective of Component Based Development (CBD) approach?
Which of the following is an advantage of CBD?