WorksheetsJavascript
Total questions: 105
Worksheet time: 1hrs 1mins
draw = function(){
......
}
x++;
This saves a value, which can be then assigned when writing code
Parameter
Function
Variable
The "stroke" command means
color inside shape
color outside shape
color of blocks
border
What does the "fill" command do
put letters in the shape
put pictures in the shape
put color in the shape
put code in the shape
Javascript is _________ language.
Programming
Scripting
Application
applet
JavaScript is ______ Side Scripting Language.
JSP
Servlet
Server
Browser
JavaScript is designed for following purpose -
To Style HTML Pages
To Perform Server Side Scripting Opertion
To add interactivity to HTML Pages.
To Execute Query Related to DB on Server
JavaScript is can be written -
directly into JS file and included into HTML
directly into HTML pages
directly on the Server Script
None of these
JavaScript is an ________ language.
compiled
interpreted
JavaScript Code is written inside file having extension __________.
.jsc
.jvs
.js
.javascript
Why JavaScript is called as Lightweight Programming Language ?
because JS can provide programming functionality inside but up to certain extend.
because JS is client side scripting
because JS is available free of cost.
because we can add programming functionality inside JS
Local Browser used for validations on the Web Pages uses __________.
HTML
CSS
js
java
JavaScript Code can be called by using _________.
RMI
Function / Method
Triggering Event
Preprocessor
Is this correct syntax to include JS Code inside HTML Page ?
<script type="text/javascript">
...
</script>
Yes
No
We cannot Place JS Code in the body tag . Say true/false.
True
False.
The simplest data-storing structure in any programming language
Lists
Array
Queue
List
A programming language used for webpage functionality such as interactivity, data processing, animation, and development of purpose built apps such as mobile and desktop apps and more.
HTML5
CSS
JS
C#
These are any variable names listed within a function's argument definition.
example: myFunction(x, y)
Parameter
Literals
Constraints
Variables
Which of the following is NOT a valid starting character for JS variable names?
Uppercase Letter
Lowercase Letter
Dollar Sign
Underscore
This allows JS Scripts and applications to perform different actions based on given conditions.
Variables
Loops
Conditional Statement
Stacks
Which of the following is NOT a valid component of a function declaration?
Function keyword
Function name
Pair of Square Braces
Pair of Curly Braces
Which of the following is a symbol that must NOT be present in any JS Variable?
A
z
_
%
A property that contains a function definition.
Object Properties
Object Attributes
Object Methods
Objects
Method used to select the element with a given identifier represented by the HTML element property ID
getElementByClassName() method
getElementById() method
getId()
getElementByTagName()
Which of the following operator is used for the Assignment Operator?
==
!
=
+
Which of the Tag Pair is used to enable JS script writing in HTML?
<br>
<script>
<JS>
<code>
What is the symbol pair used to write a new line within a string values?
\*
\'
\n
\br
in JS, Arrays are considered as what type of programming concept?
Class
Variable
Object
Function
What is the symbol used for the INCREMENT operator in JS?
+
++
=
==
Using object constructors what specific keyword is used to create new object?
if
var
new
this
Which funtion is used when a JS application must ensure that the user gets the information that is displayed?
Alert box
Prompt Box
Combo Box
Confirm Box
Which of the following is NOT a valid keyword for JS
new
switch
synchronize
void
Conditions return values of which data type?
Integer
boolean
floating-point
string
file extension for external JS files
.javascript
.js
.jscript
.script
built in object in JS that allows a script to perform mathematical task
Arithmetic
Math Object
Operation Object
Mathematics Object
used to write comments
++
=
//
--
Which type of array declaration allows for greater simplicity?
Dynamic array
Array Literals
Standar Array Syntax
Specified array declaration
symbol pair used to code backspace within string value
\b
\bspace
\backspace
\n
Since JS functions allow reusability of code, how many times do written codes need too be DEFINED?
TWICE
THRICE
AS MANY AS POSSIBLE
ONCE
HOW MANY CSS PROPERTIES CAN BE SET AND MODIFIED USING JS?
1
HALF OF THE TOTAL NUMBER OF PROPERTIES
NONE
ALL PROPERTIES
What is a * ?
What is a / ?
What is -- ?
What is === ?
What is != ?
What is ! == ?
What is >= ?
What is <= ?
What is && ?
What is ! ?
What is == ?
What is + ?
What is a - ?
Multiplication
What is ++ ?
What symbol represents the and operator in JavaScript?
AND
and
&
&&
What symbol represents the or operator in JavaScript?
OR
or
||
|
var typeOfApples="Fuji";
What is the correct syntax for referring to an external JavaScript script?
<script src="myscript.js"></script>
<script href="myscript.js"></script>
<js href="myscript.js"></js>
<js src="myscript.js"></js>
What attribute/value do we use to make a button execute JavaScript when clicked?
onclick="doSomething;"
on-click="doSomething;"
onclick="doSomething();"
onclick=doSomething();
How can a developer show a pop-up message to the user?
alert
prompt
console.log
<p> tag
Which of the following platform(s) can be used to run Javascript Code
Google Chrome
Firefox
Microsoft Edge
Safari
What is formatting in HTML?
The HTML contains six types of headings which are defined with the <h1> to <h6> tags.
a process of format the text for a better look and feel
There are some HTML tags that don't need a closing tag.
Content is placed between tags to display data on the web page.
What is a style sheet?
A style sheet is used to build a consistent, transportable, and well-designed style template.
To create a multicolor text on a web page
It is used to define a container for navigation links
It is used to define content aside from the content
Which of the following is not an application of javascript
Client-side validation
Dynamic drop-down menus
Transport data in a network
Displaying clocks
Which of the following is not a feature of javascript?
Lightweight
Good for the applications which are network-centric
Object oriented
Open source
Complementary to HTML
Is JavaScript case sensitive language?
Yes
No
Depends on the browser
Depends on the platform
Identify non-primitive datatype from the following?
String
Array
number
boolean
What is the output of the following script?
function display() { document.writeln(10+20+"30"); } display();
60
30"30"
3030
102030
Which of the following is not a feature of GET method in HTML?
Parameters remain in browser history because they are part of the URL
Can be bookmarked.
More difficult to hack
Easier to hack for script kiddies
GET is less secure compared to POST because data sent is part of the URL. So it's saved in browser history and server logs in plaintext.
Which of the following is not a feature of POST method in HTML?
Can send parameters, including uploading files, to the server.
Binary data is also allowed.
POST is a little safer than GET because the parameters are not stored in browser history or in web server logs.
POST method should not be used when sending passwords or other sensitive information.
POST method variables are not displayed in the URL.
