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

Web QP

Uploaded by

Goku
Copyright
© © All Rights Reserved
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)
29 views

Web QP

Uploaded by

Goku
Copyright
© © All Rights Reserved
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/ 2

24

AmritaAmrita Vishwa VidyapeethamRollNumber


School of
Engineering,
15CSA216 Web programmiAmringtapuri
First periodical
Time:2 hour Exami nation, Pebruary 2018
S4 BCA
Answer Al Questions maximum:50 marks

1. Differentiate client side scripting and


2 Write the proper lineof code to server side scripting, (2 marks)
include an extenal java seript fle to your HTML Coe.
, Create two one dimensiOnal arrays to keep (2 marks)
informafign of students in a class. First array 1s to
store the height and second array is to
store the names of the students
height and name trom the students and store it in the respectively. Kea
araYs, Find and dísplay the names ot
the students who bave minimun and
maxinmum height in the class, Also find the average
height of the class.
(5 marks
4 How we can wTite user defined functions in JavaScript? Write a user
defined function whic
take twO numbers as parameter and return a random number between these numbers.
(6 marks)
5. *We can write JavaScript code anywhere in the HTML page." State whether the given
statement is true or false. (3 marks)
6. Predict the output

<script type="text/javascript"> (lmark)


X=4+"4";
document. write (x) ;

</script>
language="javascript"> (l mark)
b. <script type="text/javascript"
TECHNOLOGIES";
var qpt = " JAVA SCRIPT
var result = gpt.split (" ");
document.write (result) ;

</script>
language="javascript "> (1 mark)
C. <script
SCRIPT TECHNOLOGIES";
vàr gpt="JAVA
alert (gpt.charAt (gpt.length-1));

</script>
I. What is URL? Howcan we
create a hyperlinks in a webpage?
Þ. Write the HTML Code to create the
following set of radio buttons.
choose only one radio button at a time from each group. Make sure that
rlcon -Buiton
G fommatior C AbotRetrylgnore
C CancelTryCortiue
CQuestion rHelp
CBxckamaion
Stop C akCancel
r Hand C RetryCancel
CAsteisk CYesNoCancel

9. List out and explain the popup boxes available in JavaScript with
one. Also write the output of the sample programs.
sample prOgram for
10. How do you invoke afunction when a buton click event is Occurred in
11.Explain the following functions with example
slice)
push)
substr)
toLowerCase)
min)
indexOf)

You might also like