InterviewSolution
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() |
|
| 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() |
|
| 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 |
|
| 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() |
|
| 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 |
|
| 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() |
|
| 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() 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 |
|
| 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 |
|
| 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() |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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() |
|
| 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() |
|
| 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() |
|
| 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 |
|
| 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() |
|
| 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) []. |
|
| 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 |
|
| 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) $(“*”) |
|
| 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 |
|
| 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() |
|
| 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() |
|
| 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 |
|
| 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 |
|
| 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) |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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. tag contains the GROUP of header. |
|
|---|---|---|---|---|---|---|
| 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() |
|
| 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. But some browsers by DEFAULT draw the lines AROUND table.|
| tag. tag contains the group of header. | |||
|---|---|---|---|
| 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() |
|
| 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 |
|
| 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. |
|