Java and SAS Programming Fundamentals
Quiz covering Java programming concepts including threading, serialization, constructors, I/O streams, and memory management, along with SAS programming topics like PROC statements, data libraries, and syntax handling.
Questions
Which of the following files is a permanent SAS file?
- Sashelp.PrdSale
- Sasuser.MySales
- Profits.Quarter1
- all of the above
Which statement prints a summary of all the files stored in the library named Area51?
- a.proc contents data=area51.all nods;
- a.proc contents data=area51 all nods;
- a.proc contents data=area51 all noobs;
- a.proc contents data=area51 all.nods;
Which of the following correctly references a SAS data set named SalesAnalysis that is stored in a permanent SAS library?
- a.data saleslibrary.salesanalysis;
- set sales_99.salesanalysis;
- proc print data=salesanalysis.quarter1;
- a.proc freq data=1999data.salesanalysis;
What does the following statement do? libname osiris spss 'c:\myfiles\sasdata\data';
- a.defines a library called Spss using the OSIRIS engine
- a.defines a library called Osiris using the SPSS engine
- a.defines two libraries called Osiris and Spss using the default engine
- a.defines the default library using the OSIRIS and SPSS engines
What usually happens when a syntax error is detected?
- a.SAS continues processing the step.
- a.SAS continues to process the step, and the SAS log displays messages about the error.
- a.SAS stops processing the step in which the error occurred, and the SAS log displays messages about the error.
- SAS stops processing the step in which the error occurred, and the Output window displays messages about the error.
What does the following log indicate about your program? proc print data=sasuser.cargo99 var origin dest cargorev; 22 76 ERROR 22-322: Syntax error, expecting one of the following: ;, (, DATA, DOUBLE, HEADING, LABEL, N, NOOBS, OBS, ROUND, ROWS, SPLIT, STYLE, UNIFORM, WIDTH. ERROR 76-322: Syntax error, statement will be ignored. 11 run;
- a.SAS identifies a syntax error at the position of the VAR statement.
- a.SAS is reading VAR as an option in the PROC PRINT statement.
- a.SAS has stopped processing the program because of errors.
- a.all of the above
Which of the following statements selects from a data set only those observations for which the value of the variable Style is RANCH, SPLIT, or TWOSTORY?
- a.where style='RANCH' or 'SPLIT' or 'TWOSTORY';
- a.where style in 'RANCH' or 'SPLIT' or 'TWOSTORY';
- a.where style in (RANCH, SPLIT, TWOSTORY);
- a.where style in ('RANCH','SPLIT','TWOSTORY');
What does PROC PRINT display by default?
- a.PROC PRINT does not create a default report; you must specify the rows and columns to be displayed.
- PROC PRINT displays all observations and variables in the data set. If you want an additional column for observation numbers, you can request it.
- PROC PRINT displays columns in the following order: a column for observation numbers, all character variables, and all numeric variables.
- a.PROC PRINT displays all observations and variables in the data set, a column for observation numbers on the far left, and variables in the order in which they occur in the data set.
In order for the date values 05May1955 and 04Mar2046 to be read correctly, what value must the YEARCUTOFF= option have?
- a value between 1947 and 1954, inclusive
- 1955 or higher
- 1946 or higher
- any value
JAVA supports UNICODE Character set?
- True
- False
All local and reference variables are stored in _______ area.
- Code Area
- Data Area
- Stack Area
- Heap Area
How many types of streams are there in JAVA IO Stream?
- Bit-oriented
- Byte-oriented
- Character Oriented
- 1+2
- 2+3
- All of these
Does Orcale 8i support Full Outer Join?
- True
- False
Which method calls another constructor from within a constructor within a class?
- this()
- super()
- both
- none of these
Is clonable marker interface?
- True
- False
Can primitive data types be serialized, technically?
- True
- False
Is JAVA priority preemptive?
- True
- False
Thread Synchronization protects access to _____.
- Code
- Data
- Both
- None of these