The document is a past exam paper for an Introduction to Internet Programming course. It provides instructions for a 1 hour practical exam worth 30 marks total. The exam contains 2 compulsory questions worth 10 marks each - the first asks students to write a Java program that throws a custom exception for negative numbers, and the second asks students to write a program that compares elements in two arrays and returns true if they match or false if they don't. An additional 10 marks are available for a viva voce evaluation. All programs must be written in Java.
1. No. of Printed Page : 1 SET-6
BACHELOR IN COMPUTER APPLICATIONS (BCA Revised)
Term-End Practical Examination 00292
June, 2011
CS-74P : Introduction to Internet Programming
Time allowed : 1 hour Maximum Marks : 30
(Weightage : 15%)
Note : There are two compulsory questions, 10 marks each. 10 marks are for viva-voce.
All Programs are to be written in Java.
1. Write a program in java that prompts the user to enter an integer number. It should 10
throw a user-defined exception Invalid number if a number is negative.
2. Write a program to compare the corresponding elements of the two arrays and return 10
TRUE if there is a match, otherwise return FALSE.
CS-74P/ S6 1 1,000