0

programming languages Online Quiz - 3

Description: programming languages Online Quiz - 3
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Servlet

  2. Runnable

  3. Serializable

  4. ActionListener


Correct Option: C
  1. Jan 31, 2012

  2. Aug 08, 1987

  3. Aug 18, 1951

  4. May 19, 1955


Correct Option: D

Macro character functions

  1. can be used to manipulate character strings in macro variable values.

  2. have the same basic syntax as the corresponding DATA step functions and yield similar results.

  3. all of the above

  4. none of the above


Correct Option: C

Assuming that you began your SAS session today, which of the following statements correctly sets the macro variable currdate to today's date?

  1. %let currdate = %sysfunc(today(), worddate.);

  2. %let currdate = &sysdate9;

  3. %let currdate = %sysfunc(date());

  4. all of the above


Correct Option: D

What happens if you use a GROUP BY clause in a PROC SQL step without a summary function?

  1. The step does not execute.

  2. The first numeric column is summed by default.

  3. The GROUP BY clause is changed to an ORDER BY clause.

  4. The step executes but does not group or sort data.


Correct Option: C

SAS is not portable ...

  1. True

  2. False


Correct Option: B

SAS is a free format language

  1. True

  2. False


Correct Option: A

SAS Statements can span more than one line

  1. True

  2. False


Correct Option: A

We all know that constructors are nothing but methods in java. But, as all the methods are either static or non-static , Then, what is the type-access modifier for the constructor?

  1. static

  2. non-static

  3. special-mixed type

  4. not-defined


Correct Option: D

The constructors do not have a return-type.

  1. True

  2. False


Correct Option: B
  1. show(byte b){ }

  2. show(long l){ }

  3. none of the above

  4. compilation error


Correct Option: B

Which of the following methods will be invoked when the call is-- show(10L);

  1. show(float f){ }

  2. show(int i){ }

  3. show(double d){ }

  4. none of the above


Correct Option: A
class A  {
    int x=10;
    public static void show()    {
        int x=20;
        System.out.println(x);
    }
}

The Output we always get is-- 20,, But Why... What is the name of this concept??

  1. Data Hiding

  2. Data Shadowing

  3. Data Obscuring

  4. None of the Above


Correct Option: B
- Hide questions