programming languages Online Quiz - 145

Description: programming languages Online Quiz - 145
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Which ALL are true?

  1. A finalizer may NOT be invoked explicitly.

  2. The finalize method declared in class Object takes no action

  3. super.finalize() is called implicitly by any overriding finalize method

  4. The finalize method for a given object will be called no more than once by the garbage collector

  5. The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable

Correct Option: B,D
  1. Compilation fails.

  2. An exception is thrown at runtime

  3. The variable first is set to null.

  4. The variable first is set to elements[0].

Correct Option: D
  1. Compilation fails.

  2. Pi is approximately 3.

  3. Pi is approximately 3.141593

  4. An exception is thrown at runtime

Correct Option: D

Variables are not interpolated inside which operator when used normally?

  1. " "

  2. < >

  3. ' '

  4. / /

Correct Option: C

Which of the following statements are correct when using the RETAINstatement?

  1. Variables read with the SET statement will not be affected by it

  2. The RETAIN statement is used when a variable needs to be

  3. Variables will be initialized to the desired value in each iteration

  4. Variables are created during execution

Correct Option: A
  1. It will be initialised to 1 in the begining

  2. It will have the observation number that caused the error

  3. It will not be dropped while writing into the dataset

  4. It can be used in expressions

Correct Option: D
  1. 1001/ 5461

  2. Error because of concatenating character and numeric variable

  3. 1001/ 5461

  4. 1001/5461

Correct Option: C

data test; input @1 sal 6.; datalines; $1,234 ; run; What is the value of sal in the test dataset?

  1. Error because of giving formats while the format statement is not provided

  2. Missing

  3. 1234

  4. $1,234

Correct Option: B
  1. 1 and 2

  2. 5 and 0

  3. 1 and 3

  4. none of the above

Correct Option: B
  1. when arrays and references are passed

  2. only when references are passed

  3. args are not changed

  4. Command line args are changed

Correct Option: D

What is the outcome of the scenario : open(FH, ">c:\temp\notes.txt") ?

  1. Opens a file notes.txt

  2. fails to create a file and displays error

  3. fails to open a file but doesn't display error

  4. Opens a file but not notes.txt

Correct Option: D

the regex /g.d?c*/ doesn't matches

  1. godccc

  2. gddd

  3. goc

  4. gc

Correct Option: B

which is correct?

  1. 1 can only be called with predecleration of complex_num

  2. 1 and 2 are same

  3. 2 can only be called with predecleration of complex_num

  4. 1 is reference to a subroutine

Correct Option: C

what does the structure create?

  1. A list of hashes which contains a list

  2. A hash of hashes which contains a list

  3. A list of list which contains another list

  4. A list of arrays and hashes containing lists

Correct Option: A

XML Schema is developed by?

  1. World Wide Web Consortium

  2. SWIFT

  3. Sun

  4. SAP

Correct Option: A

How many primitive data types does XSD provide?

  1. 4

  2. 8

  3. 10

  4. 19

Correct Option: D

What is the root element in XSD?

Correct Option: A
- Hide questions