Java & Web Development Assessment Exam

90 Questions | Attempts: 115
Share
SettingsSettings
Please wait...
  • 1/90 Questions

    Which one is a valid declaration of a boolean?

    • Boolean b1 = 1;
    • Boolean b2 = ‘false’;
    • Boolean b3 = false;
    • Boolean b4 = ‘true’
Please wait...
Java & Web Development Assessment Exam - Quiz
About This Quiz

.


Quiz Preview

  • 2. 

    Which of these methods is used to know when was the URL last modified?

    • LastModified()

    • GetLastModified()

    • GetLastModified()

    • GetlastModified()()

    Correct Answer
    A. GetLastModified()
  • 3. 

    Which of the following are the features of jQuery?

    • Efficient query method for finding the set of document elements

    • Expressive syntax for referring to elements in the document

    • Useful set of methods for manipulating selected elements

    • All of the mentioned

    Correct Answer
    A. All of the mentioned
  • 4. 

    What is the output of this program?

    • 0

    • 1

    • True

    • False

    Correct Answer
    A. True
  • 5. 

    Which of these methods is used to know the type of content used in the URL?

    • ContentType()

    • ContentType()

    • GetContentType()

    • GetContentType()

    Correct Answer
    A. GetContentType()
  • 6. 

    Which of these package is used for graphical user interface?

    • Java.applet

    • Java.awt

    • Java.awt.image

    • Java.io

    Correct Answer
    A. Java.awt
  • 7. 

    Which of these methods is used to know host of an URL?

    • Host()

    • GetHost()

    • GetHost()

    • Gethost()

    Correct Answer
    A. GetHost()
  • 8. 

    Which of these standard collection classes implements a dynamic array?

    • AbstractList

    • LinkedList

    • ArrayList

    • AbstractSet

    Correct Answer
    A. ArrayList
  • 9. 

    Which attribute is used to name an html element uniquely?

    • Class

    • Id

    • Name

    • All of above

    Correct Answer
    A. Id
  • 10. 

    Which of these is a method of ObjectOutput interface used to finalize the output state so that any buffers are cleared?

    • Clear()

    • Flush()

    • Fflush()

    • Close()

    Correct Answer
    A. Flush()
  • 11. 

    Which of these classes implements Set interface?

    • ArrayList

    • HashSet

    • LinkedList

    • DynamicList

    Correct Answer
    A. HashSet
  • 12. 

    Which of these standard collection classes implements a linked list data structure?

    • AbstractList

    • LinkedList

    • HashSet

    • AbstractSet

    Correct Answer
    A. LinkedList
  • 13. 

    State True or False.  A windows application creation or a web application creation is mandatory in order to test a web service.

    • True

    • False

    Correct Answer
    A. False
  • 14. 

    Which of these method of HashSet class is used to add elements to its object?

    • Add()

    • Add()

    • AddFirst()

    • Insert()

    Correct Answer
    A. Add()
  • 15. 

    Which of these is a process of writing the state of an object to a byte stream?

    • Serialization

    • Externalization

    • File Filtering

    • All of the mentioned

    Correct Answer
    A. Serialization
  • 16. 

    Which of these package is used for invoking a method remotely?

    • Java.rmi

    • Java.awt

    • Java.util

    • Java.applet

    Correct Answer
    A. Java.rmi
  • 17. 

    Which of these method of ArrayList class is used to obtain present size of an object?

    • Size()

    • Length()

    • Index()

    • Capacity()

    Correct Answer
    A. Size()
  • 18. 

    What is the output of this program?

    • 25

    • 24

    • 32

    • 33

    Correct Answer
    A. 32
  • 19. 

    What is the output of this program?

    • 0

    • 1

    • True

    • False

    Correct Answer
    A. False
  • 20. 

    Which of these class can generate an array which can increase and decrease in size automatically?

    • ArrayList()

    • DynamicList()

    • LinkedList()

    • DynamicList()

    Correct Answer
    A. ArrayList()
  • 21. 

    Which of these values can a boolean variable contain?

    • True & False

    • 0 & 1

    • Any integer value

    • Both a & b

    Correct Answer
    A. True & False
  • 22. 

    What is a web service?

    • A standard way of integrating web-based applications

    • One type of service can be part of a Service Oriented Architecture

    • Programmable XML-based service

    • All of the above

    Correct Answer
    A. All of the above
  • 23. 

    What are the web service platform elements?

    • SOAP, UDDI, XML

    • HTTP, WSDL

    • UDDI, XML, SOAP

    • SOAP, UDDI, WSDL

    Correct Answer
    A. SOAP, UDDI, WSDL
  • 24. 

    The basic purpose of the toLocaleString() is to

    • Return a localised object representation

    • Return a parsed string

    • Return a local time in the string format

    • Return a localized string representation of the object

    Correct Answer
    A. Return a localized string representation of the object
  • 25. 

    Which of these keywords are used to define an abstract class?

    • Abst

    • Abstract

    • Abstract

    • Abstract class

    Correct Answer
    A. Abstract
  • 26. 

    What is the output of this program?

    • 16.34

    • 16.566666644

    • 16.46666666666667

    • 16.46666666666666

    Correct Answer
    A. 16.46666666666667
  • 27. 

    What is the output of this program?

    • 162

    • 65 97

    • 67 95

    • 66 98

    Correct Answer
    A. 65 97
  • 28. 

    Which of these type parameters is used for a generic methods to return and accept any type of object?

    • K

    • N

    • T

    • V

    Correct Answer
    A. T
  • 29. 

    Which of these methods can be used to delete the last element in a LinkedList object?

    • Remove()

    • Delete()

    • RemoveLast()

    • DeleteLast()

    Correct Answer
    A. RemoveLast()
  • 30. 

    What is new about web services?

    • XML - a common language for describing RMC

    • XML - a common language for describing web services

    • XML - a common language for describing web service directories

    • All of the above

    Correct Answer
    A. All of the above
  • 31. 

    If a class inheriting an abstract class does not define all of its function then it will be known as?

    • Abstract

    • A simple class

    • Static class

    • None of the mentioned

    Correct Answer
    A. Abstract
  • 32. 

    Which of the following is not a new feature of HTML5?

    • Use canvas tag element for 2D drawing.

    • Use video tag elements for media playback.

    • Use audio tag elements for media playback.

    • Support for local storage

    • All of the above are new features.

    Correct Answer
    A. All of the above are new features.
  • 33. 

    Which of these package is used for analyzing code during run-time?

    • Java.applet

    • Java.awt

    • Java.io

    • Java.lang.reflect

    Correct Answer
    A. Java.lang.reflect
  • 34. 

    What is the range of data type byte in Java?

    • -128 to 127

    • -32768 to 32767

    • -2147483648 to 2147483647

    • None of the mentioned

    Correct Answer
    A. -128 to 127
  • 35. 

    What is the output of this program?

    • I i i i i

    • 0 1 2 3 4

    • I j k l m

    • None of the mentioned

    Correct Answer
    A. I i i i i
  • 36. 

    Which of these interface extends DataOutput interface?

    • Serializable

    • Externalization

    • ObjectOutput

    • ObjectInput

    Correct Answer
    A. ObjectOutput
  • 37. 

    Which of these method is used to add an element to the start of a LinkedList object?

    • Add()

    • First()

    • AddFirst()

    • AddFirst()

    Correct Answer
    A. AddFirst()
  • 38. 

    Which of the following is used to locate and describe web services?

    • SOAP

    • Web page

    • WSDL

    • UDDI

    Correct Answer
    A. WSDL
  • 39. 

    What is correct behavior of preventDefault() function:

    • Prevent the drag event

    • Prevent the drop event

    • Prevent the browser default handling of the data

    • All of the above

    Correct Answer
    A. Prevent the browser default handling of the data
  • 40. 

     A linkage of series of prototype objects is called as :

    • Prototype stack

    • Prototype chain

    • Prototype class

    • Prototypes

    Correct Answer
    A. Prototype chain
  • 41. 

    Which data type value is returned by all transcendental math functions?

    • Int

    • Float

    • Double

    • Long

    Correct Answer
    A. Double
  • 42. 

    Which of these packages contains abstract keyword?

    • Java.lang

    • Java.util

    • Java.io

    • Java.system

    Correct Answer
    A. Java.lang
  • 43. 

    Which of these is not a correct statement?

    • Every class containing abstract method must be declared abstract.

    • Abstract class defines only the structure of the class not its implementation.

    • Abstract class can be initiated by new operator.

    • Abstract class can be inherited.

    Correct Answer
    A. Abstract class can be initiated by new operator.
  • 44. 

    Which of the following are legal lines of Java code?
    1. int w = (int)888.8;
    2. byte x = (byte)100L;
    3. long y = (byte)100;
    4. byte z = (byte)100L;

    • 1 and 2

    • 2 and 3

    • 3 and 4

    • All statements are correct.

    Correct Answer
    A. All statements are correct.
  • 45. 

    What is the output of this program?

    • 301.5656

    • 301

    • 301.56

    • 301.56560000

    Correct Answer
    A. 301.5656
  • 46. 

    Which of the following is not form controls elements in HTML5?

    • Url

    • Search

    • Email

    • Money

    • Time

    Correct Answer
    A. Money
  • 47. 

    What are generic methods?

    • Generic methods are the methods defined in a generic class.

    • Generic methods are the methods that extend generic class’s methods.

    • Generic methods are methods that introduce their own type parameters.

    • Generic methods are methods that take void parameters.

    Correct Answer
    A. Generic methods are methods that introduce their own type parameters.
  • 48. 

    Which of the following is used to locate and describe web services?

    • SOAP

    • Web Page

    • WSDL

    • UDDI

    Correct Answer
    A. WSDL
  • 49. 

    What is the range of data type short in Java?

    • -128 to 127

    • -32768 to 32767

    • -2147483648 to 2147483647

    • None of the mentioned

    Correct Answer
    A. -32768 to 32767

Quiz Review Timeline (Updated): Mar 17, 2022 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 17, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 14, 2015
    Quiz Created by
    Catherine Halcomb
Back to Top Back to top
Advertisement