1) Which is the correct syntax of JQuery
a. $selector.action()
b.
$(selector).action()
c. E of attribute$(selector).(action)()
d. None of above
2) The JQuery element selector select elements based on
a. Attribute name
b. Attribute type
c.
Element name
d. Value of attribute
3) The JQuery #id selector use which attribute of an HTML
tag to find the specific element
a. Br
b.
Id
c. I
d. Priority
4) What is the description of this JQuery syntax of
selector.$(“*”)
a.
Select all elements
b. Select all classes
c. Select all attributes
d. None of above
5) Commonly used jQuery events methods are
a. Ready(), hide()
b. React(), click()
c.
Ready(), click()
d. Click(), hide()
6) What are 3 jQuery methods for DOM
a. Text(), ready(), click()
b. Text(),
html(), val()
c. Text(), click(),select()
d. Head(), html(), body()
7) The jQueryattr() method is used for what
a.
To get attribute values
b. To count the attributes
c. Call the attribute
d. None of above
8) Which method is one of the jQuery sliding methods
a. Down slide()
b. Sdown()
c. Sldown()
d. Slide down()
9) The jQuery method used for animation is
a. Graphic()
b.
Animate()
c. Draw()
d. Edit()
10) jQuery is light weight with less code
a.
True
b. False
11) Which of the following is true about typeof operator
in JavaScript?
a. The typeof is a unary operator that is placed before
its single operand, which can be of any type.
b. Its value is a
string indicating the data type of the operand.
c.
Both
d. None of these
12) Can you assign a anonymous function to a variable?
a.
True
b. False
13) Which built-in method sorts the elements of an array?
a. changeOrder(order)
b. order()
c.
sort()
d. None of these.
14) Which of the following function of Array object
extracts a section of an array and returns a new array?
a. reverse()
b. shift()
c.
slice()
d. some()
15) Which of the following is not JavaScript Data Types?
a. Undefined
b. Number
c. Boolean
d. Float
16) Inside which HTML element do we put the JavaScript?
a.
<script>
b. <head>
c. <meta>
d. <style>
17) Why so JavaScript and Java have similar name?
a. JavaScript is a stripped-down version of Java
b.
JavaScript's syntax is loosely based on Java's
c. They both originated on the island of Java
d. None of these
18) What is the original name of JavaScript?
a. LiveScript
b. EScript
c.
Mocha
d. JavaScript
19) JSON name/value pair is written as
a. name’ : ‘value’
b. name = ‘value’
c. name = “value”
d.
“name” : “value”
20) In the below notation, Employee is of type {
“Employee”: [ “Amy”, “Bob”, “John” ] }
a. Not a valid JSON string
b.
Array
c. Class
d. Object
21) What is the file extension of JSON?
a. .jn
b. .js
c. .jsn
d.
.json
22) In modern websites what is the common usage for
JSON?
a. To store information remotely.
b.
To send and receive bits of data.
c. To store information locally.
d. None of these
23) Which of these is a benefit JSON has over XML?
a. JSON is more forgiving of poor formatting
b.
JSON has less markup requirements and therefore is
lighter than XML
c. JSON can be written poorly and still be parsed
d. JSON does not need to be stored in a file to be sent
remotely.
24) In this example, what is the TYPE of employee?
{ “employee” : { “type” : “Director”, “functions” : [‘sales’, ‘marketing’] } }
a. String
b. Director
c. Type
d.
Object
25) JSON elements are separated by
a. semi-colon
b. line break
c.
comma
d. white space
26) What kind of format is JSON, and what does the acronym
mean?
a. A lightweight data-encoding framework. Java
Omnipresent Notation.
b.
A lightweight data-interchange format. JavaScript
Object Notation.
c. A lightweight data-interchange format. Java Objective
Notion.
d. A lightweight database framework.JavaScript Object
Notation.
Comments
Post a Comment