School of Distance Educationfundaments of Web Designing7

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

School of Distance EducationFundaments of Web Designing7104.

What
should appear at the very end of your JavaScript?The <script
LANGUAGE="JavaScript">taga. The </script>b. The <script>c. The
END statementd. None of the above105. Which of the following can't be
done with client-side JavaScript?a.Validating a formb. Sending a form's
contents by emailc.Storing the form's contents to a database file on the
serverd.None of the above106. Which of the following are capabilities
of functions in JavaScript?a. Return a valueb. Accept parameters and
Return a valuec. Accept parametersd. None of the above107. ______ tag
is an extension to HTML that can enclose any number of JavaScript
statements.a. <SCRIPT>b. <BODY>c. <HEAD>d. <TITLE>108.
Which of the following attribute can hold the JavaScript
version?a.LANGUAGEb. SCRIPTc. VERSIONd. None of the
above109. What is the correctJavaScript 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")110.
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"!>
JavaScriptstatements...</SCRIPT>111. Inside which HTML element do
we put the JavaScript?a. <js>b. <scripting>c. <script>d.
<javascript>112. Inside which HTML element do we put the
JavaScript?a.<js>b. <scripting>c. <script>d. <javascript>113. What is
the correct syntax for referring to an external scriptcalled " abc.js"?a.
<script href=" abc.js">b. <script name=” abc.js”>c. <script src="
abc.js">d. None of the above114. 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 above115. JavaScript entities start with _______
and end with _________.a. Semicolon, colonb. Semicolon, Ampersandc.
Ampersand, colond. Ampersand, semicolon116. 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.117. Which of the
following event fires when the form element losesthe focus: <button>,
<input>,<label>, <select>, <textarea>?a. onfocusb. onblurc. onclickd.
ondblclick
School of Distance EducationFundaments of Web Designing8118.
JavaScript is interpreted by _________a. Clientb. Serverc. Objectd.
None of the above119. How to create a Date object inJavaScript?a.
dateObjectName = new Date([parameters])b.
dateObjectName.newDate([parameters])c. dateObjectName := new
Date([parameters])d. dateObjectName Date([parameters])120. The
syntax of a blur method in a button object is ______________a. Blur()b.
Blur(contrast)c. Blur(value)d. Blur(depth)121. The syntax of capture
events method for document object is ______________a.
captureEvents()b. captureEvents(argseventType)c.
captureEvents(eventType)d. captureEvents(eventVal)122. Thesyntax of
close method for document object is ______________a. Close(doC.B.
Close(object)c. Close(val)d. Close()123. <script
type="text/javascript">x=4+"4";document.write(x);</script>Output------
?a.44b. 8c. 4d. Error output124.Scripting language area.High Level
Programming languageb.Assembly Level programming
languagec.Machine level programming language125. Choose the client-
side JavaScript object:a. Databaseb. Cursorc. Clientd. FileUpLoad126.
In JavaScript,Window.prompt() method return true or false value
?a.Falseb. True127. <script language="javascript">function
x(){document.write(2+5+"8");}</script>a.258b. Errorc. 7d. 78128.
<script type="text/javascript">var s = "9123456 or 80000?";varpattern =
/\d{4}/;var output =
s.match(pattern);document.write(output);</script>a.9123b. 91234c.
80000d. None of the above129. JavaScript is ______ Side Scripting
Language.A.BrowserB.ISPC.Noneof TheseD.Server130. JavaScript is
designedfor following purpose–a.To add interactivity to HTML
Pages.b.To Execute Query Related to DB

You might also like