Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which method is not used for CSS manipulation?(a) toggleClass()(b) removeClass()(c) beforeClass()(d) css()I have been asked this question in unit test.This interesting question is from Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right option is (C) beforeClass()

The best explanation: There are several functions for CSS manipulation. Some of them are css(), removeClass(), toggleClass(), addClass(). The style attribute is returned by css() METHOD. Classes are added by addClass() method. Classes are removed by removeClass() method. The toggling between adding and removing classes is ACHIEVED by toggleClass() method.

2.

For testing we should use ________(a) document.write()(b) console.log()(c) window.alert()(d) innerHTMLThe question was posed to me in an interview.My enquiry is from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct option is (a) document.write()

To elaborate: For TESTING we USED document.write() in JavaScript. If we use document.write() after HTML document, it will DELETE all existing HTML. This method can only be used for testing purposes.

3.

Which of the following is not the value for rules attribute?(a) vsides(b) rows(c) all(d) groupsThis question was posed to me by my school principal while I was bunking the class.Origin of the question is Working with Tables in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct CHOICE is (a) vsides

Explanation: The rules which will APPEAR between cells of the table is specified by this attribute. It can take the values groups, NONE, rows, all and cols. None is the DEFAULT VALUE, rows are for appearance between rows only and cols is for columns only.

4.

The method releases jQuery’s control of $ is __________(a) $.param()(b) $.noConflict()(c) each()(d) data()This question was addressed to me during an interview.Origin of the question is Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer» RIGHT option is (b) $.noConflict()

Explanation: $.noConflict() method releases control of $ in jQuery. A REFERENCE to jQuery is returned by noConflict() method. E.g. VAR ty=$.noConflict(); ty(DOCUMENT).ready(function()) { ty(“button”).click(function() {ty(“h”).text(“It is working!”);}); });. $.param() jQuery AJAX method is the representation of an object or array. An each() method particularize function to run for every matched ELEMENT. data() method either connects data to selected elements or get data from them.
5.

Which method is not used for converting variables to number?(a) parseInt()(b) Number()(c) parseFloat()(d) valueOf()I had been asked this question by my school principal while I was bunking the class.This intriguing question originated from Essential JavaScript and jQuery topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct answer is (d) VALUEOF()

The explanation is: There are MAINLY three methods with the help of those we can convert variables to numbers. The methods are the parseFloat() method, the Number() method, the parseInt() method. These are GLOBAL JAVASCRIPT methods. valueOf() method return number as a number only.

6.

Negative positions for string do not work in ______________(a) Internet Explorer 8(b) Chrome(c) Safari(d) OperaI got this question in homework.My question is based upon Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct choice is (a) Internet Explorer 8

To EXPLAIN: While USING SLICE(), substr() and SUBSTRING() method we pass numbers as parameters respective to the string. E.g var tes= str.slice(-10). -10 is indicates negative position. It does not WORK in Internet Explorer or older versions.

7.

Which is not the location object method?(a) stop()(b) reload()(c) assign()(d) replace()The question was posed to me in homework.This question is from Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer» RIGHT choice is (a) stop()

For EXPLANATION: assign(), REPLACE(), reload() are the location object methods. A new document is loaded by calling assign() method. The CURRENT document is replaced by the new one by calling replace() method. Current document is RELOADED by reload() method.
8.

Which of the following is the Navigator object method?(a) javaEnabled()(b) moveBy()(c) scroll()(d) stop()I had been asked this question at a job interview.Question is from Essential JavaScript and jQuery in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right OPTION is (a) javaEnabled()

To ELABORATE: There are TWO navigator object methods namely taintEnabled() and javaEnabled(). taintEnabled() the ability of the browser of data TAINTING. This METHOD can’t be used in JavaScript 1.2 version. javaEnabled() method specifies whether Java is enabled in the browser or not.

9.

What is the correct syntax of jQuery?(a) action().$(selector)(b) $(selector).action()(c) (selector)$.action()(d) action().(selector)$This question was posed to me in an interview for internship.This intriguing question comes from Essential JavaScript and jQuery in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct option is (B) $(selector).ACTION()

Explanation: The basic syntax of jQuery is $(selector).action(), $ sign defines access of jQuery, (selector) is HTML element, action() is for the jQuery action that is to be PERFORMED. E.g. $(“h1”).hide(), this will hide all the

ELEMENTS.

10.

jQuery does not contain the _____________ feature.(a) AJAAX(b) AJAX(c) CSS manipulation(d) Effects and animationsI got this question during an interview.Asked question is from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer» RIGHT option is (a) AJAAX

Easy explanation: jQuery contains many features like CSS manipulation, AJAX, Effects, and ANIMATIONS, Utilities, HTML event methods, HTML/DOM manipulation. There are also jQuery PLUGINS for every GIVEN task. jQuery simplifies complicated things in JAVASCRIPT.
11.

Which of the following is not the value for align attribute?(a) justify(b) char(c) middle(d) leftI got this question in a national level competition.My doubt is from Working with Tables topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct option is (c) middle

The explanation is: align attribute is the ALIGNMENT of data and for justification of text in the cell. It can take the values LEFT, RIGHT, justify, CENTER, char. Justify is for double justifying the text, char is for aligning text around a particular character.

12.

Which of the following keyword stops the execution of JavaScript?(a) break(b) return(c) debugger(d) try….catchThe question was posed to me in an online interview.My question is taken from Essential JavaScript and jQuery in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT choice is (c) debugger

Easiest EXPLANATION: By using debugger keyword execution of JavaScript stops, and is debugger function is defined it is called at the moment, break is the keyword used to TERMINATE a loop or a switch, return is used for exit from a function, try…catch handle the ERRORS.

13.

Which of the following is not window object method?(a) blur()(b) close()(c) confirm()(d) unescape()I have been asked this question in an internship interview.The doubt is from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT option is (d) UNESCAPE()

The BEST I can explain: Some of the window object methods are atob(), close(), focus(), blur(), alert(), CLEARINTERVAL(), confirm(), btoa(), getComputedStyle(), open(), moveTo(), prompt(), matchMedia(), moveBy(), getSelection(), scroll(), setInterval(), stop(), setTimeout() etc.

14.

External scripts can’t take the tag _________(a) (b) (c) (d) I have been asked this question in an interview.My query is from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right CHOICE is (a)

15.

Which of the following is not screen object property?(a) width(b) colorDepth(c) pixelDepth(d) languageI got this question in an internship interview.Question is from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right OPTION is (d) language

Explanation: The screen OBJECT properties are availWidth, pixelDepth, width, HEIGHT, colorDepth, availDepth. The TOTAL width of the screen is returned by width, height returns the total height of the screen, pixelDepth returns color resolution of the screen in pixels.

16.

By default JavaScript displays the numbers as ___________(a) base 16(b) base 10(c) base 6(d) base 2The question was asked during an interview.My doubt stems from Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct choice is (b) BASE 10

The best I can explain: base 10 decimals are displayed as numbers by default by JAVASCRIPT. We can use toString() method for converting numbers as any of the base among 16, 2, 8. E.g var NUMBER= 1256; number.toString(6); number.toString(16); number.toString(2).

17.

For adding caption to the table we use ____________(a) (b) (c) (d) I had been asked this question in exam.The doubt is from Working with Tables in division HTML Tables, Javascript & Jquery Basics of HTML

Answer» RIGHT OPTION is (a) <CAPTION>

Easiest explanation: For adding caption to the table we use
tag. It should be used just below the tag.
18.

Which of the following is not DOM property?(a) document.anchors(b) document.cookie(c) document.body(d) document.originI got this question during an interview.This key question is from Essential JavaScript and jQuery topic in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT answer is (d) document.origin

To explain: PROPERTIES of DOM METHOD are: document.anchors, document.applets, document.baseURI, document.body, document.cookie, document.doctype, document.documentElement, document.documentMode, document.documentURI, document.domain, document.domConfig, document.embeds, document.forms, document.head, document.images, document.implementation, document.inputEncoding, document.lastModified, document.links, document.readyState, document.referrer, document.scripts, document.strictErrorChecking, document.title and document.URL.



To explain I would SAY: Headings of the table lies INSIDEELEMENT. Footer lies inside the

element. The body of the table lies inside element.
19.

Headings of table lies inside ___________(a) (b) (c) (d) I had been asked this question in exam.This question is from Working with Tables topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right choice is (a)

is used for giving heading to a row or a COLUMN. EVERY element must have closing tag also i.e. , ,
20.

Which one is not regular expression object method?(a) test()(b) exec()(c) compile()(d) each()This question was posed to me in class test.I want to ask this question from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right option is (d) each()

Easiest EXPLANATION: compile(), toString(), exec(), test() are some of the regular expression methods in JAVASCRIPT. Compile() is method that compiles regular expression. Test() method is for matching in a STRING. Exec() is also for matching in a string but it returns FIRST match. toString() method returns string VALUE.

21.

Which is not a JavaScript global function?(a) compile()(b) eval()(c) decodeURI()(d) isNaN()The question was asked in unit test.This interesting question is from Essential JavaScript and jQuery topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct answer is (a) compile()

Easiest explanation: There are various global FUNCTIONS in JavaScript, decodeURI(), escape(), ISFINITE(), eval(), isNaN(), encodeURI(), DECODEURICOMPONENT(), encodeURIComponent(), isFinite(), is NaN(), parseFloat(), String(), parseInt(), UNESCAPE() are some of the methods.

22.

Which method is not used for traversing DOM tree?(a) parent()(b) parentsUntil()(c) parents()(d) after()I had been asked this question by my college director while I was bunking the class.This question is from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT choice is (d) after()

Best explanation: There are three methods for the traversal of DOM tree. Parent(), parentsUntil(), PARENTS(). Direct parent element is returned by parent() METHOD. All the ancestor elements are returned by parents() method. All the ancestor elements that are between given TWO arguments are returned by parentsUntil() method.

23.

Math.random() returns _______________(a) random number between 0 and 1(b) random number between 1 and 10(c) random number between 1 and 100(d) random number between 0 and 10I had been asked this question in an international level competition.This intriguing question comes from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right option is (a) random number between 0 and 1

To explain I WOULD say: Math.random() generate any random number between 0 and 1. If we use Math.random() with Math.floor() it returns any random integer. E.g. Math.floor(Math.random * 1000); It will generate any random number between 0 and 999. For the SAKE of CONVENIENCE we can also DEFINE a random function.

24.

hover() method is the combination of ____________(a) mouseleave() and mouseeneter()(b) mousedown() and mouseenter()(c) mouseup() and mousedown()(d) mouseleave() and mousedown()I got this question in final exam.Question is taken from Essential JavaScript and jQuery in section HTML Tables, Javascript & Jquery Basics of HTML

Answer» CORRECT OPTION is (a) mouseleave() and mouseeneter()

To explain I WOULD say: hover() method is the COMBINATION of mouseleave() and mouseenter(). It takes two functions. When the mouse LEAVES HTML element then mouseleave() function is called and when mouse enters HTML element then mouseenter() function is called.
25.

Which of the following is not the sliding method in jQuery?(a) slideToggle()(b) slideDown()(c) slideUp()(d) slideIn()This question was addressed to me in final exam.I would like to ask this question from Essential JavaScript and jQuery topic in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct answer is (d) slideIn()

Best explanation: jQuery have three slide methods namely slideUp(), slideDown() and slideToggle().

SYNTAX for slideDown() is $(selector).slideDown(SPEED,callback);

For slideUp() we USE $(selector).slideUp(speed,callback).

For slideToggle() METHOD the syntax is $(selector).slideToggle(speed,callback).

26.

Which of the following is not event method in jQuery?(a) click()(b) mouseenter()(c) mousedown()(d) hide()I got this question during an interview.This is a very interesting question from Essential JavaScript and jQuery topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer» CORRECT option is (d) hide()

The explanation is: The actions that can be performed on the WEB page are called events. Some common DOM events are blur(), click(), bilnd(), change(), DBCLICK(), eroor(), DELEGATE(), die(), event.data, event.currentTarget, event.pageX, mouseenter(), mousedown(), event.result, event.target, focus(), hover(), keydown(), focusout(), live(), LOAD(), keyup() etc.
27.

Typeof “infinity” will return ___________(a) string(b) number(c) object(d) undefinedI have been asked this question by my college director while I was bunking the class.This interesting question is from Essential JavaScript and jQuery in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer» RIGHT choice is (B) number

For explanation I would say: The typeof “infinity” will RETURN number. E.g. typeof Infinity; // it will return “number”, when we divide any number by zero it will generate infinity.
28.

Arrays in JavaScript are written within ____________(a) {}(b) [].(c) “”(d) ()I got this question in an online interview.The question is from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct answer is (B) [].

The explanation: ARRAYS in JavaScript are WRITTEN in square brackets. The elements of array are separated by commas. Index of array items starts from 0. E.g. var fruits= [“APPLE”, “orange”, “banana”, “pine-apple”]; objects in JavaScript are written inside curly brackets.



The best I can explain: Borders can’t be APPLIED on elements. It can’t be applied on table structural elements. For SETTING borders with element, border-COLLAPSEPROPERTY should be set to collapse.
29.

Borders can’t be applied on ________________(a) (b) (c) (d) I have been asked this question during an online interview.I need to ask this question from Working with Tables topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct choice is (c)

30.

AJAX is not used in _____________(a) Gmail(b) Youtube(c) Facebook(d) YahooThe question was posed to me in an online interview.This question is from Essential JavaScript and jQuery topic in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right choice is (d) Yahoo

Easiest EXPLANATION: AJAX stands for Asynchronous JavaScript and XML. AJAX loads data in the BACKGROUND and then displays it on the webpage. The application of AJAX is on Gmail, YOUTUBE, Facebook and Google MAPS TABS. Several methods for AJAX functionality is provided by jQuery.

31.

In jQuery all the elements are selected by writing ____________(a) $(this)(b) $(“:button”)(c) $(“*”)(d) $(“.class_name”)I got this question in examination.I'd like to ask this question from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT CHOICE is (c) $(“*”)

The best I can explain: In jQuery all the elments are SELECTED by writing $(“*”). $(this) helps in selecting current HTML element. All the button elements are selected by writing $(“:button”). If we want to select a SPECIFIC class we should write $(“.class_name”).

32.

JavaScript numbers are stored as ______________(a) integers(b) double precision floating point(c) double(d) floating pointI got this question during an online exam.My question is based upon Essential JavaScript and jQuery topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT choice is (b) DOUBLE precision floating POINT

The best I can explain: The numbers according to international IEEE 754 standard are stored as a double precision floating point. It stores the numbers in 64-bit format, stored in bits from 0 to 51, exponent in bits is from 52 to 62 and signs in a bit is 63.

33.

Which of the following is not the element associated with HTML table layout?(a) size(b) spanning(c) alignment(d) colorThe question was posed to me in an international level competition.The question is from Working with Tables in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer» CORRECT choice is (d) color

Explanation: There are three ELEMENTS in HTML table layout i.e. size, spanning and alignment.Layout TYPE can be achieved by setting Rows elements layout attribute to Fixed or Auto. Auto attribute relies on browser compatibility whereas fixed layout relies on developer SPECIFICATION.
34.

Which method is not used for filtering in jQuery?(a) next()(b) first()(c) eq()(d) last()I got this question in my homework.Enquiry is from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct choice is (a) NEXT()

Easy EXPLANATION: The BASIC filtering methods are EQ(), not(), FILTER(), last() and first(). The first element is returned by first() method, last element is returned by last() method, the specific index number of element is returned by eq() method.

35.

For converting string to array we can use ______________ method.(a) charAt()(b) charCodeAt()(c) split()(d) toLowerCase()This question was addressed to me in final exam.The origin of the question is Essential JavaScript and jQuery in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right answer is (c) split()

The EXPLANATION: For converting any string to an ARRAY we use split() method. E.g. var tr=”t,o,I,k,l”; tr.split(“,”); tr.split(“|”); tr.split(“ ”); charAt returns a character from the given INDEX, charCodeAt() returns Unicode of character at the given index. toLowerCase() method converts input string into LOWER case string.

36.

Which of the following is not the value for frame attribute?(a) above(b) void(c) none(d) boxI had been asked this question by my college director while I was bunking the class.This interesting question is from Working with Tables topic in division HTML Tables, Javascript & Jquery Basics of HTML

Answer» RIGHT choice is (c) none

The explanation is: Frame attribute GIVES INFORMATION about which sides of the frame surrounding that table will be visible. The values that this attribute can TAKE are LHS, rhs, box, border, vsides, hsides, below, above, void.
37.

Scope attribute can’t have the value __________(a) row(b) rowgroup(c) col(d) I have been asked this question in an international level competition.My query is from Working with Tables topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right option is (d)



For explanation I would SAY: scope attribute defines a set of data cell. It is USED in place of headers. This attribute can have one of the value among rowgroup, row, colgroup, col, rowgroup, and colgroup PROVIDES information of HEADER cell of the corresponding row and COLUMN groups.
38.

Which of the following is not navigator object property?(a) appVersion(b) geolocation(c) document(d) cookieEnabledI got this question in exam.My query is from Essential JavaScript and jQuery in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right choice is (c) document

For explanation I WOULD say: The navigator OBJECT properties are appVersion, cookieEnabled, appCodeName, GEOLOCATION, appName, product, userAgent, PLATFORM, online, language. Engine NAME of the browser is returned by product and the language of the browser is returned by language.

39.

In JavaScript, which one is used to finding the non-whitespace characters?(a) \d(b) \s(c) \S(d) \wI have been asked this question in an online quiz.The origin of the question is Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct answer is (c) \S

The explanation: There are metacharacters DEFINED in JavaScript. \S is used to find the NON-WHITESPACE character. \d is used for finding a digit. \s is used for finding whitespace character. \w is used to find word character. \W is used to find non word character.

40.

Correct syntax for $.post() method is ____________(a) $.post(URL,data,callback)(b) $.post(URL,data)(c) $.post(URL,callback)(d) $.post(data,callback)The question was asked by my school principal while I was bunking the class.This intriguing question originated from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT OPTION is (a) $.post(URL,data,CALLBACK)

Explanation: The correct syntax for $.post() method is $.post(URL,data,callback). URL is the URL we want to request for. Callback is the NAME of the FUNCTION that is to be executed. Data specifies the data that is to be send with the request.

41.

The integers in JavaScript are precise up to ___________(a) 12 digits(b) 10 digits(c) 23 digits(d) 15 digitsI had been asked this question at a job interview.Question is taken from Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct OPTION is (d) 15 digits

Easy explanation: The INTEGERS in JavaScript have accuracy up to 15 digits. E.g. var y=111111111111111; // value of y will be 111111111111111. For DECIMAL the MAXIMUM number of decimals is 17.

42.

What is the Boolean value of “” in JavaScript?(a) true(b) on(c) off(d) falseThis question was addressed to me in an online interview.Asked question is from Essential JavaScript and jQuery in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct ANSWER is (d) false

Best explanation: For an empty STRING (“”), the Boolean value is false. E.g. var t= “ ”; Boolean(t); //it will return false. For -0(MINUS ZERO), the Boolean value is false. The Boolean value of undefined is also false. For null and false the Boolean value is also false.

43.

valign attribute does not take the value __________________(a) justify(b) middle(c) baseline(d) bottomThe question was posed to me in unit test.Query is from Working with Tables in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right choice is (a) justify

For EXPLANATION: valign attribute is for specifying the vertical position of the data in a cell. It can take the VALUES middle, top, baseline, bottom, Top is for the top of the cell’s data, middle is for the centered data, bottom is for the bottom of the cell, first text LINE OCCURS on the baseline which is common to all the cells.

tag contains the GROUP of header. is used to INDICATE start of every row i.e. it stands for table row.
44.

For heading we can use ____________(a) (b) (c) (d) The question was posed to me in an interview for internship.My question is taken from Working with Tables topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT answer is (d)



To elaborate:
element is used for representing heading of COLUMN or a row. It works same as element. If shell has no content we can use element also there. We can use scope attribute for SPECIFYING the heading is for row or column. Usually content of is represented in bold.
45.

The method not used to add new content is ___________(a) after()(b) prepend()(c) before()(d) add()This question was posed to me in an interview.This interesting question is from Essential JavaScript and jQuery in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer» CORRECT choice is (d) ADD()

For explanation I would say: In jQuery there are four methods to add new content namely PREPEND(), before(), after(), append(). The append() method inserts at the END, prepend() method inserts at the beginning of the content, after() method inserts the content after selected HTML ELEMENT, befor() inserts before the selected HTML element.
46.

Which of the following is not a jQuery dimension method?(a) innerWidth()(b) outerHeight()(c) height()(d) css()I have been asked this question in an international level competition.The doubt is from Essential JavaScript and jQuery topic in section HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right ANSWER is (d) css()

To EXPLAIN I would SAY: There are various important methods for dimension. Some of them are height(), innerHeight(), outerWidth(), outerHeight(), WIDTH(), innerWidth(). Width() method includes border, margin and padding. innerWidth() and innerHeight() method includes padding. outerHeight() and outerWidth() method includes border and padding. CSS() method is used for CSS manipulation in jQuery.

TAG. But some browsers by DEFAULT draw the lines AROUND table. is used to indicate start of every row i.e. it stands for table row. The header information is present in tag contains the group of header.
47.

Each cell of the table can be represented by using __________(a) (b) (c) (d) This question was posed to me in a job interview.This key question is from Working with Tables in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right option is (b)



For explanation I would say: td stands for table data, we can represent each cell of the table by using
, at the END we USED
tag.
48.

Which of the following is not the fade method in jQuery?(a) fadeTo()(b) fadeOn()(c) fadeOut()(d) fadeIn()The question was posed to me during a job interview.Query is from Essential JavaScript and jQuery topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The correct answer is (b) fadeOn()

For EXPLANATION I WOULD say: jQuery has VARIOUS fade methods including fadeout(), fadeTo(), fadeToggle(), fadeIn().

The syntax of fadeIn() is $(SELECTOR).fadeIn(speed,callback);

For fadeout() we USE $(selector).fadeOut(speed,callback);

For fadeToggle we use $(slecetor).fadeToggle(speed,callback);

For fadeTo() syntax is $(selector).fadeTo(speed,opacity,callback).

49.

Which of the following is not window object property?(a) defaultStatus(b) closed(c) constructor(d) framesI have been asked this question during an internship interview.This interesting question is from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right answer is (c) constructor

Explanation: Window object properties are frames, history, frameElement, DEFAULTSTATUS, CLOSED, innerHeight, DOCUMENT, innerWidth, location, name, outerHeight, outerHeight, opener, pageXOffset, parent, screenTop, screen, screenLeft, screen, scroll, status, SELF, sessionStorage, top.

50.

Which is not the method of History object?(a) go()(b) moveBy()(c) forward()(d) back()The question was posed to me in an online interview.The origin of the question is Essential JavaScript and jQuery topic in portion HTML Tables, Javascript & Jquery Basics of HTML

Answer» RIGHT answer is (b) moveBy()

To elaborate: There are MAINLY three methods of history object, forward(), BACK() and GO(). The next URL of history list is loaded by calling forward() FUNCTION. The previous URL in the history list is loaded by back() method. A specific URL from history list is loaded by go() method.