Development - Java Script - Basics Question And Answers

JavaScript is _________ language.

A.  Programming

B.  Application

C.  Scripting

D.  None of These

View Answer  

JavaScript is ______ Side Scripting Language.

A.  Server

B.  ISP

C.  Browser

D.  None of These

View Answer  

JavaScript is designed for following purpose 

A.  To Style HTML Pages

B.  To add interactivity to HTML Pages.

C.  To Perform Server Side Scripting Operation

D.  To Execute Query Related to DB on Server

View Answer  

JavaScript Code is written inside file having extension __________.

A.  .jvs

B.  .javascript

C.  .js

D.  .jsc

View Answer  

Why JavaScript is called as Lightweight Programming Language ?

A.  because JS is available free of cost.

B.  because JS is client side scripting

C.  because we can add programming functionality inside JS

D.  because JS can provide programming functionality inside but up to certain extend.

View Answer  

JavaScript is also called as _____________.

A.  Server Side Scripting Language

B.  Browser/Client Side Scripting Language.

C.  Not a Client Side Scripting Language.

D.  None of These

View Answer  

JavaScript Code can be called by using _________.

A.  Function / Method

B.  RMI

C.  Preprocessor

D.  None Of thease

View Answer  

JavaScript Code can be called by using _________.

A.  Triggering Event

B.  RMI

C.  Preprocessor

D.  None Of thease

View Answer  

State the correct place of JS Code inside HTML -

A.  Inside Body

B.  Inside Head

C.  Inside Single JavaScript File

D.  All of these

View Answer  

Microsoft Developed a compatible dialect of JavaScript called _____________.

A.  JScript.

B.  MS JavaScript

C.  MJavaScript

D.  Advanced JavaScript

View Answer  

JavaScript was invented at _______ Lab .

A.  Netscape

B.  Google Lab

C.  AT&T Bell LAb

D.  Sun Microsystem

View Answer  

JavaScript was originally developed under the name _______.

A.  ActionScript

B.  Mocha

C.  Oak

D.  Sencha

View Answer  

In March 1996, _______________ was released, featuring support for JavaScript.

A.  Netscape Navigator 1.0

B.  Internet Explorer 2.0

C.  Netscape Navigator 2.0

D.  Internet Explorer 1.0

View Answer  

Which was the first browser to support JavaScript ?

A.  Mozilla Firefox

B.  Google Chrome

C.  IE

D.  Netscape

View Answer  

JavaScript is invented by ________.

A.  Brendan Eich

B.  Helsinki, Linus

C.  W3 Group

D.  James Gosling

View Answer  

All modern browsers supports JS.

A.  False

B.  True

C.  

D.  

View Answer  

______ attribute is used to specify the character encoding used in an external script file.

A.  type

B.  charset

C.  character

D.  None of These

View Answer  

It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.

A.  False

B.  True

C.  

D.  

View Answer  

Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)

A.  type

B.  defer

C.  async

D.  parse

View Answer  

Which of the following Attribute is used to include External JS code inside your HTML Document -

A.  link

B.  script

C.  src

D.  ext

View Answer  

Is this correct syntax to include JS Code inside HTML Page ? ...  

A.  No

B.  Yes

C.  

D.  

View Answer  

"async" attribute is used to include External JS Code Asynchronously.  

A.  False

B.  True

C.  

D.  

View Answer  

What will be the Output of the above Code ?

A.  Will Throw Error

B.  Will not print anything because of Comment.

C.  Hello

D.  None of These

View Answer  

Is this placement of JS code inside HTML Element is Error Free ? My Page Click here function myFunction() { alert('Hello world'); }  

A.  No

B.  Yes

C.  

D.  

View Answer  

This code will include External JS inside your webpage.

A.  No

B.  Yes

C.  

D.  

View Answer  

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 the above

View Answer  

The type of a variable that is volatile is

A.  Volatile variable

B.  Mutable variable

C.  Immutable variable

D.  Dynamic variable

View Answer  

A hexadecimal literal begins with

A.  00

B.  0x

C.  0X

D.  Both 0x and 0X

View Answer  

The generalised syntax for a real number representation is

A.  [digits][.digits][(E|e)[(+|-)]digits].

B.  [digits][+digits][(E|e)[(+|-)]digits].

C.  [digits][(E|e)[(+|-)]digits].

D.  [.digits][digits][(E|e)[(+|-)]digits].

View Answer  

When there is an indefinite or an infinity value during an arithmetic value computation, javascript

A.  Prints an exception error

B.  Prints an overflow error

C.  Displays “Infinity”

D.  Prints the value as such

View Answer