JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 39
Javascript interview questions part 39
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which syntax is used to describe elements in CSS?
A. Protectors
B. Selectors
C. Both Protectors and Selectors
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Selectors
2. What does the following code snippet mean? #log>span
A. Span child after log declaration
B. Specific span child of id greater than log
C. Span child less than log
D. Any span child of the element with id as log
Show Correct Answer
Correct Answer is :
Any span child of the element with id as log
3. Which of the following is the ultimate element selection method?
A. querySelectorAll()
B. querySelector()
C. queryAll()
D. query()
Show Correct Answer
Correct Answer is :
querySelectorAll()
4. Which of the following is the Web application equivalent to querySelectorAll()?
A. #()
B. &()
C. $()
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$()
5. The C in CSS stands for
A. Continuous
B. Cascaded
C. Contentional
D. Cascading
Show Correct Answer
Correct Answer is :
Cascading
6. The latest version of CSS is
A. CSS1
B. CSS2
C. CSS3
D. CSS4
Show Correct Answer
Correct Answer is :
CSS3
7. Which of the following is an example of a Shortcut Property?
A. border
B. font
C. text
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
8. Which of the following is the default positioning elements with CSS?
A. relative
B. static
C. absolute
D. none of the mentioned
Show Correct Answer
Correct Answer is :
static
9. Which property lays the element according to the normal flow?
A. relative
B. absolute
C. fixed
D. static
Show Correct Answer
Correct Answer is :
relative
10. Which of the following property allows you to specify an element’s position with respect to the browser window?
A. relative
B. fixed
C. static
D. absolute
Show Correct Answer
Correct Answer is :
fixed
11. The central object in a larger API is known as __________
A. Document Object Material
B. Document Object Model
C. Binary Object Model
D. Data object model
Show Correct Answer
Correct Answer is :
Document Object Model
12. The paragraph “p” is a part of __________
A. h1
B. body
C. html
D. Both body and html
Show Correct Answer
Correct Answer is :
Both body and html
13. The node directly above a node is called __________
A. sibling
B. child
C. parent
D. ancestors
Show Correct Answer
Correct Answer is :
parent
14. The Text and Comment is part of __________
A. CharacterData
B. Document
C. Attr
D. Element
Show Correct Answer
Correct Answer is :
CharacterData
15. The nodes that represent HTML elements are the __________
A. Subclass nodes
B. HTML nodes
C. Window nodes
D. Element nodes
Show Correct Answer
Correct Answer is :
Element nodes
16. Which of the following is/are of Text nodes?
A. Text
B. Comment
C. Both Text and Comment
D. h1
Show Correct Answer
Correct Answer is :
Both Text and Comment
17. Which is one of way to query a document for an element or elements?
A. With a specified id attribute
B. Matching the specified CSS selector
C. With the specified tag name
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
18. Which of the following can be used to select HTML elements based on the value of their name attributes?
A. getElementByName()
B. getElementsByName()
C. getElementsName()
D. getElementName()
Show Correct Answer
Correct Answer is :
getElementsByName()
19. Which of the following property refers to the root element of the document?
A. documentElement
B. elementdocument
C. rootdocument
D. none of the mentioned
Show Correct Answer
Correct Answer is :
documentElement
20. The return type of getElementsByClassName() is __________
A. DOM
B. Document
C. Node
D. NodeList
Show Correct Answer
Correct Answer is :
NodeList
Similar Interview Questions
Search for latest jobs
Find Jobs