Vous êtes sur la page 1sur 1

Seventh Semester B.E. Degree Examination, Dec. 07 I Jan.

08
Java and CGI Programming

1 a. Explain how Java is robust and architecture neutral. (08 Marks)


b. Give the meaning of public static void main (string s[]) (04 Marks)
c. Write a program to count the number of lines in a given
String s = "Hello,\n" + "I am\n" + "Fine\n";

2 a. With example, define:


i) »> ii) « iii) I. (06 Marks)
b. How overriding is different from overloading? Explain with example. (08 Marks)
c. Explain with example:
i) Final class ii) Abstract class.

3 a. Differentiate string and string buffer class. (04 Marks)


b. What is an exception? How throw is used in exception? (08 Marks)
c. Write a program to insert two numbers in side a stack and pop it using utility package.
(08 Marks)

4 a. Write a pragrum to read ft number 234 from keyboard. Reverse it i.e.(432) and add (234 +
432). Then print the result. (10 Marks)
b. Give syntax for various applet tags. (05 Marks)
c. With example explain grid layout. (05 Marks)

5 a. Explain any four ways of securing Apache server. (08 Marks)


b. Write a program to select information stored in the database using mysql and perl.
(08 Marks)
c. Give an example, how to load and dumping a database. (04 Marks)

f.
v a. Write a CGI program to print system date using here document. (06 Marks)
b. Discuss types of information received by the CGI program. (09 Marks)
c. Give any five form widget methods. (05 Marks)

'7
I a. What is SSI? What are two lines in the apache configuration file, to be uncommented?
(06 Marks)
b. \\i hat are two types of arrays in pup? Explain with an example. (06 Marks)
c. Write a program in pup:
i) To display numbers from an array using for each loop
ii) Reverse the numbers in an array using build in function.

8 a. Enlist string functions in php. Explain each with example, (08 Marks)
b. \Vrite a php program to accept the name, age and address from HTML page using post
method, and insert into the database. Display to the browser "inserted". Otherwise display
not inserted. (12 Marks)

Vous aimerez peut-être aussi