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

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Can inner classes have static members?

  1. Yes
  2. No
  3. In specific conditions
  4. Not sure
Question 2 Multiple Choice (Single Answer)

Can a class be declared "synchronized"?

  1. Yes
  2. No
  3. In specific conditions
  4. Not sure
Question 3 Multiple Choice (Single Answer)

Which of these statements correctly declares a two-dimensional array in C#?

  1. int[,] testArray;
  2. int[][] testArray;
  3. int[2] testArray;
  4. System.Array[2] testArray;
Question 4 Multiple Choice (Single Answer)

If a method is marked as protected internal who can access it?

  1. Classes that are both in the same assembly and derived from the declaring class.
  2. Only methods that are in the same class as the method in question.
  3. Internal methods can be only be called using reflection.
  4. Classes within the same assembly, and classes derived from the declaring class.
Question 5 Multiple Choice (Single Answer)

What is boxing?

  1. Encapsulating an object in a value type.
  2. Encapsulating a copy of an object in a value type.
  3. Encapsulating a value type in an object.
  4. Encapsulating a copy of a value type in an object.
Question 6 Multiple Choice (Single Answer)

Which compiler switch creates an xml file from the xml comments in the files in an assembly?

  1. /text
  2. /doc
  3. /xml
  4. /help
Question 7 Multiple Choice (Single Answer)

What is a satellite Assembly?

  1. A peripheral assembly designed to monitor permissions requests from an application.
  2. Any DLL file used by an EXE file.
  3. An assembly containing localized resources for another assembly.
  4. An assembly designed to alter the appearance of an application.
Question 8 Multiple Choice (Single Answer)

What is a delegate?

  1. A strongly typed function pointer.
  2. A light weight thread or process that can call a single method.
  3. A reference to an object in a different process.
  4. An inter-process message channel.
Question 9 Multiple Choice (Single Answer)

How does assembly versioning in .NET prevent DLL Hell?

  1. The runtime checks to see that only one version of an assembly is on the machine at any one time.
  2. .NET allows assemblies to specify the name AND the version of any assemblies they need to run.
  3. The compiler offers compile time checking for backward compatibility.
  4. It doesn't
Question 10 Multiple Choice (Single Answer)

In the NUnit test framework, which attribute must adorn a test class in order for it to be picked up by the NUnit GUI?

  1. TestAttribute
  2. TestClassAttribute
  3. TestFixtureAttribute
  4. NUnitTestClassAttribute
Question 11 Multiple Choice (Single Answer)

Which of the following operations can you NOT perform on an ADO.NET DataSet?

  1. A DataSet can be synchronised with the database.
  2. A DataSet can be synchronised with a RecordSet.
  3. A DataSet can be converted to XML.
  4. You can infer the schema from a DataSet.
Question 12 Multiple Choice (Single Answer)

In Object Oriented Programming, how would you describe encapsulation?

  1. The conversion of one type of object to another.
  2. The runtime resolution of method calls.
  3. The exposition of data.
  4. The separation of interface and implementation.
Question 13 True/False

SAS is not platform independent.

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

The co-founder of SAS.

  1. David Stirling
  2. John Sall
  3. Lawrence Joseph
  4. Dennis Richie
Question 15 Multiple Choice (Multiple Answers)

DATA Step is used for :-

  1. To output the statistical report.
  2. To create a new dataset
  3. To delete a dataset
  4. To read an external file
Question 16 Multiple Choice (Single Answer)

PROC CONTENTS is a :-

  1. PROC STEP
  2. DATA STEP
  3. MACRO
  4. FUNCTION
Question 17 True/False

SAS DATASETS can be TEMPORARY and as well as PERMANENT.

  1. True
  2. False
Question 18 Multiple Choice (Single Answer)

Lenght of character variables can be

  1. 1-256 charcters
  2. 8 charcters
  3. 256 charcters
  4. 1-32 charcters
Question 19 Multiple Choice (Single Answer)

How many types of variables does SAS recognize?

  1. Date variable
  2. Date , Character and Numeric varibale
  3. Date and Character variable
  4. Character and Numeric variable
Question 20 Multiple Choice (Single Answer)

Which one is not an Automatic variable in SAS ?

  1. ERROR
  2. N
  3. FORMAT
  4. IORC