` tag. Option C correctly demonstrates this syntax.","upvoteCount":1}},{"@context":"https://schema.org","@type":"Question","eduQuestionType":"Flashcard","text":"Inside which HTML element do we put the JavaScript? A)<js> B)<scripting> C)<script> D)<javascript>","acceptedAnswer":{"@type":"Answer","text":"The correct HTML element for embedding JavaScript code is

Deck 1: Javascript Basics: Syntax, Execution, and Capabilities

Full screen (f)
exit full mode
Question
Javascript is _________ language.

A)application
B)programming
C)scripting
D)none of these
Use Space or
up arrow
down arrow
to flip the card.
Question
When a user views a page containing a JavaScript program, which machine actually executes the script?

A)the user's machine running a web browser
B)the web server
C)a central machine deep within netscape's corporate offices
D)none of the above
Question
_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.

A)client-side
B)server-side
C)local
D)native
Question
Which of the following can't be done with client-side JavaScript?

A)validating a form
B)sending a form\s contents by email
C)storing the form\s contents to a database file on the server
D)none of the above
Question
Which of the following are capabilities of functions in JavaScript?

A)return a value
B)accept parameters and return a value
C)accept parameters
D)none of the above
Question
______ tag is an extension to HTML that can enclose any number of JavaScript statements.

A)<script>
B)<body>
C)<head>
D)<title>
Question
Which of the following attribute can hold the JavaScript version?

A)language
B)script
C)version
D)none of the above
Question
What is the correct JavaScript syntax to write "Hello World"?

A)system.out.println("hello world")
B)println ("hello world")
C)document.write("hello world")
D)response.write("hello world")
Question
Which of the following way can be used to indicate the LANGUAGE attribute?

A)<language="javascriptversion">
B)<script language="javascriptversion">
C)<script language="javascriptversion"> javascript statements…</script>
D)<script language="javascriptversion"!> javascript statements…</script>
Question
Inside which HTML element do we put the JavaScript?

A)<js>
B)<scripting>
C)<script>
D)<javascript>
Question
What is the correct syntax for referring to an external script called " abc.js"?

A)<script href=" abc.js">
B)<script name=" abc.js">
C)<script src=" abc.js">
D)none of the above
Question
What does the <noscript> tag do?

A)enclose text to be displayed by non-javascript browsers.
B)prevents scripts on the page from executing.
C)describes certain low-budget movies.
D)none of the above
Question
JavaScript entities start with _______ and end with _________.

A)semicolon, colon
B)semicolon, ampersand
C)ampersand, colon
D)ampersand, semicolon
Question
Which of the following best describes JavaScript?

A)low-level programming language.
B)a scripting language precompiled in the browser.
C)a compiled scripting language.
D)an object-oriented scripting language.
Question
Which of the following event fires when the form element loses the focus: <button>, <input>, <label>, <select>, <textarea>?

A)onfocus
B)onblur
C)onclick
D)ondblclick
Question
JavaScript is interpreted by _________

A)client
B)server
C)object
D)none of the above
Question
How to create a Date object in JavaScript?

A)dateobjectname = new date([parameters])
B)dateobjectname.newdate([parameters])
C)dateobjectname := new date([parameters])
D)dateobjectname date([parameters])
Question
The syntax of a blur method in a button object is ______________

A)blur()
B)blur(contrast)
C)blur(value)
D)blur(depth)
Question
The syntax of capture events method for document object is ______________

A)captureevents()
B)captureevents(argseventtype)
C)captureevents(eventtype)
D)captureevents(eventval)
Question
The syntax of close method for document object is ______________

A)close(doc)
B)close(object)
C)close(val)
D)close()
Question
Choose the client-side JavaScript object:

A)database
B)cursor
C)client
D)fileupload
Question
What Is The Output Of Following JavaScript Code?

-<script language="javascript">function x(){document.write(2+5+"8");}</script>

A)258
B)error
C)7
D)78
Question
What Is The Output Of Following JavaScript Code?

-<script type="text/javascript"> var s = "9123456 or 80000?"; var pattern = /\d{4}/; var output = s.match(pattern); document.write(output); </script>

A)9123
B)91234
C)80000
D)none of the above
Question
JavaScript is ______ Side Scripting Language.

A)browser
B)isp
C)noneof these
D)server
Question
Local Browser used for validations on the Web Pages uses __________.

A)java
B)css
C)js
D)html
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Javascript Basics: Syntax, Execution, and Capabilities
1
Javascript is _________ language.

A)application
B)programming
C)scripting
D)none of these
scripting
2
When a user views a page containing a JavaScript program, which machine actually executes the script?

A)the user's machine running a web browser
B)the web server
C)a central machine deep within netscape's corporate offices
D)none of the above
the user's machine running a web browser
3
_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.

A)client-side
B)server-side
C)local
D)native
client-side
4
Which of the following can't be done with client-side JavaScript?

A)validating a form
B)sending a form\s contents by email
C)storing the form\s contents to a database file on the server
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following are capabilities of functions in JavaScript?

A)return a value
B)accept parameters and return a value
C)accept parameters
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
______ tag is an extension to HTML that can enclose any number of JavaScript statements.

A)<script>
B)<body>
C)<head>
D)<title>
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following attribute can hold the JavaScript version?

A)language
B)script
C)version
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
What is the correct JavaScript syntax to write "Hello World"?

A)system.out.println("hello world")
B)println ("hello world")
C)document.write("hello world")
D)response.write("hello world")
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following way can be used to indicate the LANGUAGE attribute?

A)<language="javascriptversion">
B)<script language="javascriptversion">
C)<script language="javascriptversion"> javascript statements…</script>
D)<script language="javascriptversion"!> javascript statements…</script>
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Inside which HTML element do we put the JavaScript?

A)<js>
B)<scripting>
C)<script>
D)<javascript>
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
What is the correct syntax for referring to an external script called " abc.js"?

A)<script href=" abc.js">
B)<script name=" abc.js">
C)<script src=" abc.js">
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
What does the <noscript> tag do?

A)enclose text to be displayed by non-javascript browsers.
B)prevents scripts on the page from executing.
C)describes certain low-budget movies.
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
JavaScript entities start with _______ and end with _________.

A)semicolon, colon
B)semicolon, ampersand
C)ampersand, colon
D)ampersand, semicolon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following best describes JavaScript?

A)low-level programming language.
B)a scripting language precompiled in the browser.
C)a compiled scripting language.
D)an object-oriented scripting language.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following event fires when the form element loses the focus: <button>, <input>, <label>, <select>, <textarea>?

A)onfocus
B)onblur
C)onclick
D)ondblclick
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
JavaScript is interpreted by _________

A)client
B)server
C)object
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
How to create a Date object in JavaScript?

A)dateobjectname = new date([parameters])
B)dateobjectname.newdate([parameters])
C)dateobjectname := new date([parameters])
D)dateobjectname date([parameters])
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
The syntax of a blur method in a button object is ______________

A)blur()
B)blur(contrast)
C)blur(value)
D)blur(depth)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
The syntax of capture events method for document object is ______________

A)captureevents()
B)captureevents(argseventtype)
C)captureevents(eventtype)
D)captureevents(eventval)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
The syntax of close method for document object is ______________

A)close(doc)
B)close(object)
C)close(val)
D)close()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Choose the client-side JavaScript object:

A)database
B)cursor
C)client
D)fileupload
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
What Is The Output Of Following JavaScript Code?

-<script language="javascript">function x(){document.write(2+5+"8");}</script>

A)258
B)error
C)7
D)78
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
What Is The Output Of Following JavaScript Code?

-<script type="text/javascript"> var s = "9123456 or 80000?"; var pattern = /\d{4}/; var output = s.match(pattern); document.write(output); </script>

A)9123
B)91234
C)80000
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
JavaScript is ______ Side Scripting Language.

A)browser
B)isp
C)noneof these
D)server
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Local Browser used for validations on the Web Pages uses __________.

A)java
B)css
C)js
D)html
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.