Multi-Language Programming Quiz: Java, ASP.NET, JSON, PHP

Test your knowledge across multiple programming languages including Java collections and OOP, ASP.NET web development, JSON data format, and PHP fundamentals.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What an interface could be

  1. private
  2. protected
  3. Both
  4. None
Question 2 Multiple Choice (Single Answer)

I defined an equals method, but Hashtable ignores it. Why?

  1. You forgot the hashCode method
  2. You didn't handle circular references properly
  3. Could be any / both of above
  4. None of above
Question 3 Multiple Choice (Single Answer)

PHP is a widely used -------- language

  1. mark up
  2. object based
  3. content based
  4. general purpose
Question 4 Multiple Choice (Single Answer)

What JSON stands for?

  1. Java Objects Notation
  2. JavaScript Object Notation
  3. JavaScript Object Oriented Notation
  4. Java Objects Node
Question 5 Multiple Choice (Single Answer)

JSON was invented by

  1. Smith Jackson
  2. Brian McRowell
  3. Douglas Crockford
  4. Michale Scwzhenar
Question 6 Multiple Choice (Multiple Answers)

Brackets used in JSON are

  1. Angled
  2. Square
  3. Round
  4. Squiggly
Question 7 True/False

JSON is a text format that is completely language independent

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

JSON is

  1. Superset of JavaScript
  2. Subset of Javascript
  3. Not related to Javascript
  4. Union of Java and Javascript
Question 9 Multiple Choice (Single Answer)

The number of forms that can be added to a aspx page is

  1. 1
  2. 2
  3. 3
  4. More than 3
Question 10 Multiple Choice (Single Answer)

What Namespace does the Web page belong in the .NET Framework class hierarchy?

  1. System.Web.UI.Page
  2. System.Windows.UI.Page
  3. System.Web.Page
  4. System.Windows.Page
Question 11 Multiple Choice (Single Answer)

How do you explicitly kill a user’s session ?

  1. Session.Close ( )
  2. Session.Discard ( )
  3. Session.Abandon ( )
  4. Session.Exit ( )
Question 12 Multiple Choice (Single Answer)

Which Namespace allows us to implement the form authentication ?

  1. System.Web.Ui.Forms.Security
  2. System.Web.Configuration
  3. System.Web.Services
  4. System.Web.Security
Question 13 Multiple Choice (Single Answer)

What is the Full Form of WSDL ?

  1. Web System Description Language
  2. Web Service Description Language
  3. Web Service Definition Language
  4. Web System Definition Language
Question 14 Multiple Choice (Single Answer)

Select the output of the statement < form method=post action=”test.aspx” >

  1. Transfers all the form data to test.aspx with HTTP headers
  2. Transfers all the form data to test.aspx with out HTTP headers
  3. Calls Post method on test.aspx
  4. Transfers all the form data from test.aspx to others
Question 15 True/False

null is a keyword?

  1. True
  2. False
Question 16 True/False

A class is a subclass of itself?

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

What is a daemon thread?

  1. main thread is a daemon thread.
  2. garbage collector thread is a daemon thread.
  3. All user defined threads are daemon thread.
  4. None of above.
Question 18 Multiple Choice (Multiple Answers)

Which is/are true?

  1. 'Composition' and 'Aggregation' both are 'association'.
  2. 'Composition' is a stronger form of 'Aggregation'.
  3. 'Aggregation' is a stronger form of 'Composition'.
  4. A 'Composition' adds a lifetime responsibility to 'Aggregation'.
Question 19 Multiple Choice (Multiple Answers)

Which is true about HashMap and Hashtable?

  1. Both HashMap and Hashtable will allow null as key and value.
  2. HashMap is not Synchronized and Hashtable is Synchronized.
  3. The iterator in the HashMap is fail-safe, but enumerator for the Hashtable is not fail-safe.
  4. Hashtable will be faster than HashMap.
Question 20 Multiple Choice (Multiple Answers)

How can you sort a ArrayList?

  1. By creating an implementation of the java.lang.Comparable interface.
  2. java.util.Collections.sort()
  3. java.utils.Arrays.sort()
  4. By creating an implementation of the java.lang.Comparator interface.