Tag: programming languages

Questions Related to programming languages

What are the benefits of generics?

  1. Generic collections accept only Object types

  2. Type errors are caught at compile time

  3. Generics result in readily understandable code

  4. Generics sometimes require type casting


Correct Option: B,C,D
  1. No difference, they function the same

  2. /COPY cannot be used as a conditional directive

  3. /INCLUDE files cannot contain embedded SQL

  4. Nesting /INCLUDE directives is not allowed


Correct Option: C
  1. No difference, they function the same

  2. /COPY cannot be used as a conditional directive

  3. /INCLUDE files cannot contain embedded SQL

  4. Nesting /INCLUDE directives is not allowed


Correct Option: C
  1. No difference, they function the same

  2. /COPY cannot be used as a conditional directive

  3. /INCLUDE files cannot contain embedded SQL

  4. Nesting /INCLUDE directives is not allowed


Correct Option: C
  1. No difference, they function the same

  2. /COPY cannot be used as a conditional directive

  3. /INCLUDE files cannot contain embedded SQL

  4. Nesting /INCLUDE directives is not allowed


Correct Option: C
  1. No difference, they function the same

  2. /COPY cannot be used as a conditional directive

  3. /INCLUDE files cannot contain embedded SQL

  4. Nesting /INCLUDE directives is not allowed


Correct Option: C

Which of the following statement(s) explains the difference(s) between the /INCLUDE and /COPY directives?

  1. No difference, they function the same

  2. /COPY cannot be used as a conditional directive

  3. /INCLUDE files cannot contain embedded SQL

  4. Nesting /INCLUDE directives is not allowed


Correct Option: C

What are the features of raw types?

  1. Can be used with Generic code

  2. Raw types take Type parameters

  3. Raw types must be cast to appropriate objects at runtime

  4. Type safety


Correct Option: A,C