Chapter 19 Quiz:

CSE111, Lab4, By: Jieqin Shang

What is Javascript?

A.It is a client-side scripting language.
B.It is tool for webpage decorations.
C.It is an operating system.
D.It is a painting software.

Which of the following statement of correct about Javascript?

A.The "alert" command does not exist in Javascript.
B.It is case-sensitive.
C.It is not case-sensitive.
D.The methods in Javascript for writing a single-line comment and a double-line comment are the same.

How to define a variable in Javascript?

A.using nothing
B.using var
C.using variable
D.using function

Of the following choices, which one does not belong to Javascript data-types?

A.Null
B.Numbers
C.Functions
D.Strings.

How to express the meaning of "identical" in Javascript?

A.=
B.==
C.<=>
D.===

Which of the following expressions indicates gradual increase of variable i by 1 per change?

A. B.--i
C.+i
D.i++

Which following statement is right about Javasciprt loops?

A.An infinite loop can be created by Javascript.
B.An infinite loop can not be created by Javascript.
C.No matter how you write it, a Javscript loop will always run.
D.Javasciprt loops are not recognized as being useful/powerful.

How to find a string's length in Javascript?

A."string".findLength
B."string".length
C."caculateLength."stirng"
D.length."string"

How to declare a function abc in Javascript?

A.declareFunction abc
B.write nothing, just the funciton name
C.varFunction abc
D.funciton abc

How to end arguments in Javascript funciton?

A.using ;
B.using .
C.use nothing
D.use "enter-key" on the keyboard"