(B) University "JNTUOSMANIA"
(B) University "JNTUOSMANIA"
5)i s th e p r o c e s s of e n s u r i n g t h at u s e r s s u b m i t on l y t h e s e t o f ch ar ac te rs w h i ch yo u r e q u i r e . ( a) D at a d e l e ti o n ( b ) D at a val i d a ti o n ( c ) D at a ch e ck i n g ( d ) D at a c o r r e c t i on
7)c o n s i d e r t h e s c r i p t va r fi r s t = A S t ri n g i s va r s e c on d = a d d e d t o t h e e n d fi r s t += s e c o n d ; T h e c ont e nt s o f th e va r i ab l e fi r s t i s ( a) S t r i n g i s a d d e d t o t h e e nd ( b ) a d d e d t o t h e e n d ( c ) a d d e d t o t h e e n d A S t r i n g i s ( d ) A s tr i n g i s 8)I n J ava S c r i p t , t o i n s e r t s a l i s t of e l e m e nt s ont o t h e f r o nt of t h e a r ray, t h e f u n c t i on i s . ( a) s h i f t ( ) ( b ) s l i c e ( ) ( c ) p u s h ( ) ( d ) u n s h i f t ( ) 9)W h a t i s t h e t ag u s e d t o e mb e d t h e mu l t i m e d i a o b j e c t s d i r e c t l y i nt o t h e we b page? ( a) h r e f ( b ) i nclude (c) link (d) object 10)T h e f u n c t i on t h at r e t u r n s th e ch ar a c t e r w h i ch i s a t p o s i t i on i n d e x i n t h e s t ringis. ( a) ch a rAt ( ) ( b ) ch a rAt ( i n d e x ) ( c ) ch a r( i n d e x ) ( d ) ch a rO ff ( i n d e x ) 11)J avaS c ri p t ha s nu mb e r o f ty p e s of op e r at o rs . ( a) 1 ( b ) 2 ( c ) 3 ( d ) 4
( a) s l i c e ( ) ( b ) p u s h ( ) ( c ) s h i f t ( ) ( d ) u n s h i f t ( ) 13)J avaS c ri p t h a s on l y f ou r ty p e s of d at a . T h e y ar e . ( a) nu m e r i c , ch a r ac t e r , s t ri n g , B o o l e a n ( b ) i nt e ge r, fl oa t , s t r i n g, B o o l e an ( c ) nu m e r i c , s t r i n g , B o o l e a n , nu l l ( d ) i nt e ge r, fl oa t , ch a ra c t e r , B o o l e a n
( a) c o n c a t( ) (b) shift() (c) join() (d) pop() 18) I n J ava S c r i p t , va r i ab l e s a r e d e c l ar e d u s i n g th e ke y wo r d . ( a) va r i ab l e ( b ) va r ch ar ( c ) va r ( d ) va r i ant 19) Inside which HTML element do we put the JavaScript? <scripting> <script> <js> <javascript> 20) What is the correct JavaScript syntax to write "Hello World"? response.write("Hello World") document.write("Hello World") "Hello World" ("Hello World") 21) Where is the correct place to insert a JavaScript? The <head> section The <body> section Both the <head> section and the <body> section are correct
22) What is the correct syntax for referring to an external script called "xxx.js"? <script type="text/javascript" name="xxx.js"> <script type="text/javascript" href="xxx.js"> <script type="text/javascript" src="xxx.js"> 23) How do you write "Hello World" in an alert box? alertBox="Hello World" alertBox("Hello World") msgBox("Hello World") alert("Hello World") 24) How do you write a conditional statement for executing some code if "i" is equal to 5? if (i==5) if i==5 then if i=5 then if i=5 25) How does a "while" loop start? while (i<=10) while i=1 to 10 while (i<=10;i++) 26) How does a "for" loop start? for (i <= 5; i++) for i = 1 to 5 for (i = 0; i <= 5; i+ +) for (i = 0; i <= 5) 27) Which year javascript introduce 1988 1985
1986 1984 28)who was introduce javascript Netscape microsoft microsoft solu dennisritch 29) What is the correct HTML for referring to an external style sheet? <link rel="stylesheet" type="text/css" href="mystyle.css"> <stylesheet>mystyle.css</stylesheet /> <style src="mystyle.css" /> 30) Where in an HTML document is the correct place to refer to an external style sheet? At the end of the document In the <head> section In the <body> section At the top of the document