Mixed Programming Languages Quiz (SAS, .NET, C#, Java)
A quiz covering concepts and features across multiple programming languages including SAS, .NET framework, C#, and Java
Questions
Can inner classes have static members?
- Yes
- No
- In specific conditions
- Not sure
Can a class be declared "synchronized"?
- Yes
- No
- In specific conditions
- Not sure
Which of these statements correctly declares a two-dimensional array in C#?
- int[,] testArray;
- int[][] testArray;
- int[2] testArray;
- System.Array[2] testArray;
If a method is marked as protected internal who can access it?
- Classes that are both in the same assembly and derived from the declaring class.
- Only methods that are in the same class as the method in question.
- Internal methods can be only be called using reflection.
- Classes within the same assembly, and classes derived from the declaring class.
What is boxing?
- Encapsulating an object in a value type.
- Encapsulating a copy of an object in a value type.
- Encapsulating a value type in an object.
- Encapsulating a copy of a value type in an object.
Which compiler switch creates an xml file from the xml comments in the files in an assembly?
- /text
- /doc
- /xml
- /help
What is a satellite Assembly?
- A peripheral assembly designed to monitor permissions requests from an application.
- Any DLL file used by an EXE file.
- An assembly containing localized resources for another assembly.
- An assembly designed to alter the appearance of an application.
What is a delegate?
- A strongly typed function pointer.
- A light weight thread or process that can call a single method.
- A reference to an object in a different process.
- An inter-process message channel.
How does assembly versioning in .NET prevent DLL Hell?
- The runtime checks to see that only one version of an assembly is on the machine at any one time.
- .NET allows assemblies to specify the name AND the version of any assemblies they need to run.
- The compiler offers compile time checking for backward compatibility.
- It doesn't
In the NUnit test framework, which attribute must adorn a test class in order for it to be picked up by the NUnit GUI?
- TestAttribute
- TestClassAttribute
- TestFixtureAttribute
- NUnitTestClassAttribute
Which of the following operations can you NOT perform on an ADO.NET DataSet?
- A DataSet can be synchronised with the database.
- A DataSet can be synchronised with a RecordSet.
- A DataSet can be converted to XML.
- You can infer the schema from a DataSet.
In Object Oriented Programming, how would you describe encapsulation?
- The conversion of one type of object to another.
- The runtime resolution of method calls.
- The exposition of data.
- The separation of interface and implementation.
SAS is not platform independent.
- True
- False
The co-founder of SAS.
- David Stirling
- John Sall
- Lawrence Joseph
- Dennis Richie
DATA Step is used for :-
- To output the statistical report.
- To create a new dataset
- To delete a dataset
- To read an external file
PROC CONTENTS is a :-
- PROC STEP
- DATA STEP
- MACRO
- FUNCTION
SAS DATASETS can be TEMPORARY and as well as PERMANENT.
- True
- False
Lenght of character variables can be
- 1-256 charcters
- 8 charcters
- 256 charcters
- 1-32 charcters
How many types of variables does SAS recognize?
- Date variable
- Date , Character and Numeric varibale
- Date and Character variable
- Character and Numeric variable
Which one is not an Automatic variable in SAS ?
- ERROR
- N
- FORMAT
- IORC