Friday, May 17, 2013

HTML MCQ Test – 1


Que.1. Which of the following attribute(s) isn’t supported by HTML 5?
1)      frameborder
2)      scrolling
3)      marginewidth
4)      margineheight

A.    1 and 2
B.     3 and 4
C.    All choices are correct
D.    None of these

Right Answer: C

Que.2.  Following method is used to get the current location of the user in Geolocation in HTML 5?
A.    getCurrentPosition()
B.     getPossition()
C.    getLocation()
D.    getCurrentLocationning n()

Right Answer: A

Que.3. SVG graphics do not lose quality when they are realized?
A.    True
B.     False
C.    Can’t determine
D.    None of the above

Right Answer: A

Que.4. Which modern browser does not support the HTML 5 tags?
A.    IE 8
B.     Safari
C.    Mozilla
D.    Opera

Right Answer: A 

Que.5. Which attribute allows the inline frame to appear as though it is being rendered as part of the containing document?
A.    sandbox
B.     seamless
C.    src
D.    srcdoc

Right Answer: B

Que.6. In SVG, each drawn shape or figure is considered or remembered as _________.
A.    Class
B.     Object
C.    Method
D.    None

Right Answer: B

Que.7. Graphics defined by SVG is in _______________format.
A.    HTML
B.     XML
C.    XHTML
D.    DTD

Right answer: B

Que.8. Which of the following is HTML 5 - based sketching app that works in all morden browsers?
A.    Muro
B.     hootsuite
C.    X-worlds
D.    csswrap

Right Ansewer: A

Que.9. How many graphic object types are allowed by SVG?
A.    2
B.     5
C.    3
D.    7

Right Answer: C

Que.10. What do you mean by SVG?
A.    Secondary vector  graphics
B.     Scalable vertical graphics 
C.    Scalable vector graphics
D.    Scalable vector graph

Right Answer: C

Que.11. Ancestor of all elements on the page is called _________________.
A.    parent
B.     ancestor
C.    root element
D.    siblings

Right Answer: D

Que.12. Frame concept is available in HTML 5
A.    YES
B.     NO

Right Answer: B

Que.13. What is W3C?
A.    World Wide Web Consortium
B.     World Wide Web Corporation
C.    World Wide Web Company
D.    World Wide Web Controlling

Right Answer: A

Que.14. Which attribute enables a set of extra restrictions on content hosted by the <iframe> ?
A.    src
B.     name
C.    srcdoc
D.    sandbox

Right Answer: D

Que.15.  ____________ allows you to set some element to be editable inside the browser.
A.    spellcheck
B.     contenteditable
C.    dropzone
D.    contentmenu

Right Answer: B

Que.16 If the browser does not support the srcdoc attribute, it will use the __________ provided by the src attribute.
A.    URL
B.     source
C.    documents
D.    path

Right Answer: A

Que.17. In SVG, there is a Support for event handlers.
A.    True
B.     False
C.    Can’t determine
D.    None

Right Answer: A

Que.18. It is possible to use HTML 5 for the mobile application?
A.    Yes
B.     No

Right Answer: A

Que.19. In HTML 5 width attribute specifies the width of the ___________
A.    inline frame
B.     outline frame
C.    frameset
D.    table

Right Answer: A

Que.20. HTML is based on which language
A.    XHTML
B.     XML
C.    SGML
D.    DTD

Right Answer: C

Java MCQ Test – 1


Que.1. Which of the following statements is false about objects?
A.    An instance of a class  is an object
B.     Object can access both static and instance data.
C.    Object is the super class of all other classes
D.    Object do not permit encapsulation

Right Answer: D

Que.2. All the wrapper class (Integer, Boolean, Float, Short, Long, Double and Character) in java
A.    are private
B.     are serializable
C.    are immutable
D.    are finale

Right Answer: D

Que.3. The code snippet if (“Welcome”.trim() == ”Welcome”.trim()) System.out.println(“Equals”); else System.out.println(“Not Equal”); will ____________
A.    compile and display Equal
B.     compile and display Not Equal
C.    cause a compiler error
D.    compile and display NULL

Right Answer: C

Que.4. What is an aggregate?
A.    An object with only primitive attributes.
B.     An instance of a class which has only static methods.
C.    An instance which has other objects.
D.    None of the above.

Right Answer:  C

Que.5. A class can have many methods with the same name as long as the number of parameters or type of parameters is different. This OOP concept is known as ________.
A.    Method Invocating.
B.     Method Overriding.
C.    Method Labeling.
D.    Method Overloading.

Right Answer: D

Que.6. When a thread terminates its processing, into what state the thread enters?
A.    Running State.
B.     Waiting State.
C.    Dead State.
D.    Beginning State.

Right Answer: C

Que.7. Which methods can access to private attributes of a class?
A.    Only static methods of the same class.
B.     Only instance of the same class.
C.    Only methods those defined in the same class.
D.    Only classes available in the same package.

Right Answer: C

Que.8. Which of the following is considered as a blue print that defines the variables and methods common to all of its objects of a specific kind?
A.    Object
B.     Class
C.    Method
D.    Real data types

Right Answer: B

Que.9. Which of the following statement is true?
A.    A subclass is a sub set of a superclass.
B.     Class ClassTwo extends ClassOne means ClassOne is subclass.
C.    Class ClassTwo extends ClassOne means ClassTwo is super class.
D.    The class Class is the super class of all other classes in Java.

Right Answer: A

Que.10. What is the meaning of the return data type void?
A.    An empty memory space is returned so that developers can utilize it.
B.     Void returns no data type.
C.    Void is not supported in Java.
D.    None of the above.

Right Answer: B

Que.11. A lower precision can be assigned to higher precision value in Java. For exa. A byte type  data  can be assigned to int type.
A.    True
B.     False

Right Answer: A

Que.12. What is the data type for the number 9.6352?
A.    float.
B.     double.
C.    Float.
D.    Double.

Right Answer: B

Que.13. Which of the following is synchronized?
A.    Set.
B.     linkedList.
C.    Vector.
D.    WeakHashMap.

Right Answer: A

Que.14. To execute the thread one after another.
A.    the keyword synchronize is used.
B.     the keyword synchronizable is used.
C.    the keyword synchronized is used.
D.    None of the above.

Right Answer: B

Que.15. Which of the following statements are about the Java language is true?
A.    Both procedural and OOP are supported in Java.
B.     Java supports only procedural approach towards programming.
C.    Java supports only OOP approach.
D.    None of the above.

Right Answer: A

Que.16. If result = 2+3*5, what is the value and type of result variable?
A.    17, byte.
B.     25, byte.
C.    17, int.
D.    25, int.

Right Answers: C

Que.17. How many numeric data types are supported in Java?
A.    8
B.     4
C.    2
D.    6

Right Answers: D

Que.18. Which of the statement is reserved word in java?
A.    Run
B.     Import
C.    transient
D.    Implement

Right Answers: B

Que.19. Which of the following is not a return type?
A.    boolean
B.     void
C.    public
D.    Button

Right Answer: C

Que.20. Which of the following statement is true?
A.    An exception can be thrown by throw keyword explicitly.
B.     An exception can be thrown by throws keyword explicitly.

Right Answer: A