0% found this document useful (0 votes)
38 views

Unit 6

Uploaded by

api-239480838
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Unit 6

Uploaded by

api-239480838
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Unit 6 JAVA SCRIPT Topics included: Introduction to java script Variables Java Script Operators Designed by: Prof.

Nirzari !ayani

"# Java script is a........ a# Script b# Part of t!eory

c) Programming language
d# None $# Variable is........

a) Storage area
b# Part of t!eory c# ot! a % b d# None &# '!ic! of t!e follo(ing is correct for variables)

a) It can have alpha ets or num ers


b# Variable na*e can be +ey(ord c# Variable can use all special sy*bol d# ,ll of above -# .!e lengt! of variable na*e is.... a# $/ b# $"

c) !"
d# &/ 0# Variable s!ould start (it!111111 a# Nu*bers

) Alpha ets
c# Special sy*bol d# ,ny of above can be used

2# In variable blan+ space is..... a# 3o*pulsory b# It (ill not *a+e any difference to t!e progra**e c# No i*portance of it

d) #ot allo$ed

4# In java script operators are of 555 type a# 4 b# 2 c# /

d) %

/# 6 7 8 9 : ; are used in (!ic! operators) a# ,rit!*etic operator b# <ogical operator c# =elational operator

d) #one

>#

In belo( option (!ic! of t!e follo(ing is given in correct order) ,ND O= NO. a# ? ; %%

)
c#

&& '
%% ? ?

d# %% ;

"@# '!ic! of t!e follo(ing is used to co*pare t(o variables or values to c!ec+ t!e eAuality and it c!ec+s only value not only data type)

a) ((
b# 666 c# ;6 d# ;66

""#

3!oose t!e correct sy*bol for follo(ing condition

.!is operator is used to c!ec+ eAuality of t(o values as (ell as data type also. It (ill return true o*ly if t!e values and data type are eAual. a# 66

) (((
c# ;6 d# ;66

"$#

3!oose t!e correct sy*bol for follo(ing condition B

.!is operator is for ineAuality. It (ill return true only and only if t!e values are not eAual and data types are also not sa*e. a# ;6 b# 6; c# 66

d) '((

"&#

3!oose t!e follo(ing condition for t!e follo(ing condition7

.!ese operators used to c!ec+ ineAuality. It (ill return true if t!e values are not sa*e. It (ill not go to c!ec+ t!e data types. a# 666 b# 66

c) '(
d# ;66 "-# '!at is output of follo(ing)

Var n*6CDeetanjaliCE Var sn*6C3ollegeCE Var fn*6n*Fsn*


a# DeetanjaliF3ollege

) )eetan*ali College
c# geetanjali college d# none

"0#

Gatc! t!e correct condition (it! its sy*bol7

,ssign*ent of rig!t side data to left side variable S!ort !and addition operation =eturns true if any of t!e condition is true 3!ec+s eAuality of t(o values

" $ & -

F6 6 666 ??

3 D

a#

A+, -+" C ./
0 .!

c#

, 7 7 " 3 7 $ D 7 &

b# , 7 7 3 7 D 7

& " $

d# , 7 7 3 7 D 7

& " $ -

You might also like