Model question paper
III Semester MSc Degree Examination, November 2002
Branch II Physics
PH233C COMPUTER SCIENCE -I
Duration: 3 hours
Maximum mark: 75
Part A
(Answer any five questions. Each question carries three marks)
I a). Explain encapsulation and polymorphism.
b) Explain when you should use embedded Javascript and Javascript source file.
c) Write a note on the working of world wide web.
d) Explain FTP and TELNET.
e) Explain the retrieving of binary and text files.
f) What is hidden surface problem in computer graphics.
g) Explain the term aspect ratio. What is its significance.
h) What are the different common display devices that are used for producing graphical
output.
Part B
(Answer all three questions. Each question carries 15 marks.)
II A (a) Explain the various data types, variables, arrays and operators in Java with examples.
(b) Create a program that assigns integers and exponential numbers to variables and print the values.
OR
II B (a) What is exception handling and multithreaded programming?
(b) Create a questionnaire that prompts visitors to your web site for personal information such as name, address, occupation and identity number. Assign each piece of information to an array, then use a for loop that prints the information to the screen. Name the HTML document as Information.html.
III A What is email? Explain the following operations.
(1) Opening and viewing the mail.
(2) Sending single email messages.
(3) Adding attachments to the email message and
(4) Retrieving and deleting the email
OR
III B What is the need for computer communication? Explain network hard ware and network software with reference models.
IV A (a) Explain clipping and shielding.
(b) Explain line segment clipping and polygon clipping with suitable examples
OR
IV B (a) Explain different coordinate representations used in computer graphics
(b) Discuss the basic transformations translation, rotation and scaling in 2D with examples
Part C
(Answer any three questions. Each question carries five marks)
V (a) Using Java, create a program that performs arithmetic calculations, addition, subtraction, multiplication and division of two numbers.
(b) Create an HTML document names Personal.html with a function in the <HEAD> section named printPersonal. Within the printPersonal function, use the document.write() and document.writeln() methods to print your details.
(c) Write necessary commands to upload and download files from a remote system
using file transfer protocol.
(d) Write necessary steps to send the same message to different email addresses.
(e) Find the complete viewing transformation that maps a window in world coordinates with x extent 1 to 10 and y extent 1 to 10 onto a view port with x extent to ¼ to ¾ and y extent to 0 to ½ in normalized device space, and then maps a window with x extent ¼ to ½ and y extent ¼ to ½ in the normalized device space into a view port with x extent 1 to 10 and y extent 1 to 10 on the physical display device.
(f) Perform a 600 rotation of the triangle A(1,1) , B(2,3) and C(4,5) about the origin. What are the new coordinates?
Go to: resources