Interview Questions

Q:

What is a Canvas?

Answer

Canvas is a rectangular area on a HTML page, specified with the tag <canvas>. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1463
Q:

What are the new features provided in HTML5?

Answer

Some of the new features provided in HTML5 are:


- It provides support for local storage


- New form controls, like calendar, date, time, email, url, search


- <canvas> element is provided to facilitate 2D drawing


- The <video> and <audio> elements are provided for media playback


- New content-specific elements are provided. For e.g. <article>, <header>, <footer>, <nav>, <section>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1463
Q:

What do you understand by private, protected and public?

Answer

These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference between protected and the default type (also known as package protected) within the context of the same package, however the protected keyword allows visibility to a derived class in a different package.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1463
Q:

What are the different new form element types in HTML 5?

Answer

These are the new form elements introduced in HTML 5:


Color


Date


Datetime-local


Email


Time


Url


Range


Telephone


Number


Search

Report Error

View answer Workspace Report Error Discuss

0 1462
Q:

Explain Overriding Polymorphism.?

Answer

Overriding means changing behavior of methods of base class in derive class by overriding the base class methods. If class A is a base class with method ’calculate’ and class B inherits class A, thus derives method ’calculate’ of class A. The behavior of ’calculate’ in class B can be changed by overriding it.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1462
Q:

What does isNaN function do?

Answer

NaN stands for ‘not-a-number’. The function isNaN determines the argument or the value is a NaN. The function returns true if the argument is not a number, otherwise returns false.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1460
Q:

What are windows object and navigator object in JavaScript?

Answer

Windows object is top level object in Java script. It contains several other objects such as, document, history, location, name, menu bar etc., in itself. Window object is the global object for Java script that is written at client-side.


Information pertaining to the client browser and system is returned by the navigator object of JavaScript. Navigator object is the top level object for all users.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1460
Q:

What is the difference between Client side JavaScript and Server side JavaScript.

Answer

Client side java script comprises the basic language and predefined objects which are relevant to running java script in a browser. The client side java script is embedded directly by in the HTML pages. This script is interpreted by the browser at run time.


Server side java script also resembles like client side java script. It has relevant java script which is to run in a server. The server side java scripts are deployed only after compilation.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1460