Web Technologies MCQ pdf - Set 02 - ObjectiveBooks

Web Technologies MCQ pdf - Set 02

Practice Test: Question Set - 02


1. What are Empty elements and is it valid?
    (A) No, there are no such terms as Empty Element
    (B) Empty elements are element with no data
    (C) No, it is not valid to use Empty Element
    (D) None of these

2. 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()

3. Which of the following is a container?
    (A) <SELECT>
    (B) <BODY>
    (C) <INPUT>
    (D) Both (a) and (b)

4. 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()

5. How can you open a link in a new browser window?
    (A) < a href = "url" target = "new">
    (B) <a href = "url" target= "_blank">
    (C) <a href = "url".new>
    (D) <a href = "url" target ="open">

6. The tag used to create a hypertext relationship between current document and another URL is
    (A) <ISINDEX>
    (B) <A>
    (C) <LINK>
    (D) None of these

7. Which tag creates a number/order list?
    (A) <UL>
    (B) <OL>
    (C) <OT>
    (D) None of these

8. Consider the following statement:

GET /cgi-bin/dispenser.pl&want=whatsnew.html HTTP/1.0

Which of the following options is a correct one?

    (A) The above statement is a part of a request from a web client
    (B) The above statement is a part of the input to a CGI program
    (C) Want is a variable and whatsnew.html is a value
    (D) Dispenser.pl may be a CGI program

9. Which of the following is a Valid Name?
    (A) <_person>
    (B) <123 person>
    (C) Both (a) and (b)
    (D) None of these

10. Which of the following statement is not true regarding JavaScript?
    (A) JavaScript is a loosely typed language
    (B) JavaScript is an object-based language
    (C) JavaScript is event driven
    (D) A JavaScript embedded in an HTML document is compiled and executed by the client browser


Show and hide multiple DIV using JavaScript View All Answers

 Next Tests: