0

programming languages Online Quiz - 200

Description: programming languages Online Quiz - 200
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. More than one Object

  2. No Objects

  3. Only One Objects.

  4. Two Objects.


Correct Option: C

Identify the following. x. public final String getDetails(final File file, final String key) throws IOException y. getDetails(File, String)

  1. X is a method Signature and Y is a method Header

  2. Both X and Y is a method Header

  3. X is a method Header and Y is a method Signature

  4. Both X and Y is a method Signature


Correct Option: C
  1. Its non-static members

  2. Static members of the enclosing class

  3. Its Static members

  4. Non-Static members of the enclosing class


Correct Option: D
  1. Reading data through key board

  2. Using system properties and environment variables

  3. Running non-java programs from within a java application.

  4. All of the Above

  5. None of the Above


Correct Option: D
  1. They can be applied to both data & methods

  2. They must precede a class's data variables or methods

  3. They can follow a class's data variables or methods

  4. They can appear in any order

  5. They must be applied to data variables first and then to methods


Correct Option: A,B,D

What modifiers may be used with top-level class?

  1. Public

  2. Private

  3. Abstract

  4. Final

  5. Protected


Correct Option: A,C,D
  1. Compile failure

  2. sucessfully compiled, but through exception in run time

  3. It runs sucessfuly and prints "without the main method"

  4. It runs sucessfuly, but No output.


Correct Option: C

class C1 { static interface I { static class C2 { } } public static void main(String a[]) { C1.I.C2 ob1=new C1.I.C2(); System.out.println("object created"); } } What is the result of attempting to compile and run the program?

  1. prints object created

  2. Compile time error

  3. Runtime Excepion

  4. None of the above


Correct Option: A
  1. Compile failure

  2. sucessfully compiled, but through exception in run time.

  3. It runs sucessfuly and prints "without the main method"

  4. It runs sucessfuly, but No output.


Correct Option: C

class C1 { static interface I { static class C2 { } } public static void main(String a[]) { C1.I.C2 ob1=new C1.I.C2(); System.out.println("object created"); } } What is the result of attempting to compile and run the program?

  1. prints object created

  2. Compile time error

  3. Runtime Excepion

  4. None of the above


Correct Option: A

class C{ static int f1(int i) { System.out.print(i + ","); return 0; } public static void main (String[] args) { int i = 0; i = i++ + f1(i); System.out.print(i); } } What is the result of attempting to compile and run the program?

  1. Prints: 0,0

  2. Prints: 1,0

  3. Prints: 0,1

  4. Compile-time error


Correct Option: B

Which version of Visual Studio first supported Linq for defining standard query operators

  1. VS2003

  2. VS2005

  3. VS2008

  4. VS2010


Correct Option: C
- Hide questions