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.
Questions
What an interface could be
- private
- protected
- Both
- None
I defined an equals method, but Hashtable ignores it. Why?
- You forgot the hashCode method
- You didn't handle circular references properly
- Could be any / both of above
- None of above
PHP is a widely used -------- language
- mark up
- object based
- content based
- general purpose
What JSON stands for?
- Java Objects Notation
- JavaScript Object Notation
- JavaScript Object Oriented Notation
- Java Objects Node
JSON was invented by
- Smith Jackson
- Brian McRowell
- Douglas Crockford
- Michale Scwzhenar
Brackets used in JSON are
- Angled
- Square
- Round
- Squiggly
JSON is a text format that is completely language independent
- True
- False
JSON is
- Superset of JavaScript
- Subset of Javascript
- Not related to Javascript
- Union of Java and Javascript
The number of forms that can be added to a aspx page is
- 1
- 2
- 3
- More than 3
What Namespace does the Web page belong in the .NET Framework class hierarchy?
- System.Web.UI.Page
- System.Windows.UI.Page
- System.Web.Page
- System.Windows.Page
How do you explicitly kill a user’s session ?
- Session.Close ( )
- Session.Discard ( )
- Session.Abandon ( )
- Session.Exit ( )
Which Namespace allows us to implement the form authentication ?
- System.Web.Ui.Forms.Security
- System.Web.Configuration
- System.Web.Services
- System.Web.Security
What is the Full Form of WSDL ?
- Web System Description Language
- Web Service Description Language
- Web Service Definition Language
- Web System Definition Language
Select the output of the statement < form method=post action=”test.aspx” >
- Transfers all the form data to test.aspx with HTTP headers
- Transfers all the form data to test.aspx with out HTTP headers
- Calls Post method on test.aspx
- Transfers all the form data from test.aspx to others
null is a keyword?
- True
- False
A class is a subclass of itself?
- True
- False
What is a daemon thread?
- main thread is a daemon thread.
- garbage collector thread is a daemon thread.
- All user defined threads are daemon thread.
- None of above.
Which is/are true?
- 'Composition' and 'Aggregation' both are 'association'.
- 'Composition' is a stronger form of 'Aggregation'.
- 'Aggregation' is a stronger form of 'Composition'.
- A 'Composition' adds a lifetime responsibility to 'Aggregation'.
Which is true about HashMap and Hashtable?
- Both HashMap and Hashtable will allow null as key and value.
- HashMap is not Synchronized and Hashtable is Synchronized.
- The iterator in the HashMap is fail-safe, but enumerator for the Hashtable is not fail-safe.
- Hashtable will be faster than HashMap.
How can you sort a ArrayList?
- By creating an implementation of the java.lang.Comparable interface.
- java.util.Collections.sort()
- java.utils.Arrays.sort()
- By creating an implementation of the java.lang.Comparator interface.