Web Technologies | Internet Technologies Set 3

Questions 21 to 30


21. Which of the following statements is false about event handlers in JavaScript?

(a) They can be included with input tags
(b) They can be associated with end of file processing for a database application
(c) They can be included with the form tag
(d) They are generally used to call functions when triggered
(e) They can be used to trigger server-side scripts.

22. What method is used to specify a container's layout in JSP?

(a) setLayout()
(b) Layout()
(c) setContainerLayout()
(d) ContainerLayout()
(e) setConLayout().

23. Which method of the Component class is used to set the position and size of a component in JSP?

(a) setSize()
(b) setBounds() 
(c) setPosition()
(d) setPositionSize()
(e) setSizePosition().

24. What value does readLine() return when it has reached the end of a file in JSP?

(a) Last character in the file
(b) False
(c) Null
(d) EOF
(e) True.

25. Which class in JSP provides the capability to implement a growable array of objects?

(a) Array class
(b) GrowAbleArray class
(c) Container class
(d) Vector class
(e) DynamicArray class.

26. In JSP, the classes that allow primitive types to be accessed as objects are known as

(a) Primitive classes
(b) Object classes
(c) Boxing classes
(d) UnBoxing classes
(e) Wrapped classes.

27. In JSP, a Canvas object provides access to a Graphics object via one of its method called:

(a) getCanvas()
(b) getGraphics()
(c) paint()
(d) getPaint()
(e) accessGraphics().

28. In ASP the function which returns the current system date is:

(a) getDate()
(b) Date()
(c) Now()
(d) getCurrentDate()
(e) CurrentDate().

29. In ASP the function which returns an expression formatted as a date or time is:

(a) FormatDateOrTime()
(b) FormatDateAndTime()
(c) FormatTimeDate()
(d) FormatDateTime()
(e) FormatDT().

30. The function returns a Boolean value that indicates whether a specified expression can be evaluated as a number; in ASP is

(a) IsNumeric()
(b) IsNumber()
(c) IsNotNumeric()
(d) IsNotNumber()
(e) IsNumberOrNot().


Answers

      Ans            Reason 

21. B Event handlers in JavaScript can’t be associated with end of file processing for a database application.

22. A In JSP setLayout() method is used to specify a container's layout. The remaining all the options are incorrect.

23. B Component. setBounds() is used to set the position and size of a component in JSP.

24. C According to the semantic of the readLine() method, it returns null when it reaches the end of a file in JSP.

25. D In JSP Vector class is used implement a growable array of objects.

26. E According to the definition of the wrapper class.

27. C According to the definition of the paint() method, The remaining all the options are wrong.
28. B According to the definition of the Date() method of ASP, The remaining all the options are wrong.

29. D According to the definition of the FormatDateTime() method of ASP, The remaining all the options are wrong.

30. A In ASP, IsNumeric() function returns a Boolean value that indicates whether a specified expression can be evaluated as a number.


3 comments :