Docsity

Microsoft Internet Information Server - Advanced Programming - Exam, Exams of Computer Programming

Toggle sidebar
bg1
Ollscoil na hÉireann, Gaillimh
GX_____
National University of Ireland, Galway
Semester 1 Examinations 2009/2010
Exam Code(s)
3BF1
Exam(s)
Third Year BSc in Business Information Systems
Module Code(s)
MS315
Module(s)
Advanced Programming
Paper No.
1
Repeat Paper
External Examiner(s)
Professor H. van der Heijden
Internal Examiner(s)
Dr. T. Acton
Instructions:
Answer any THREE QUESTIONS.
All questions carry equal marks.
Duration
2 hrs
No. of Answer books
Requirements:
Handout
MCQ
Statistical Tables
Graph Paper
Log Graph Paper
Other Material
No. of Pages
5
excluding this page
School
School of Business & Economics
pf3
pf4
pf5

Partial preview of the text

Download Microsoft Internet Information Server - Advanced Programming - Exam and more Exams Computer Programming in PDF only on Docsity!

Ollscoil na hÉireann, Gaillimh GX_____

National University of Ireland, Galway

Semester 1 Examinations 2009/

Exam Code(s) 3BF

Exam(s) Third Year BSc in Business Information Systems

Module Code(s) MS

Module(s) Advanced Programming

Paper No. 1

Repeat Paper

External Examiner(s) Professor H. van der Heijden

Internal Examiner(s) Dr. T. Acton

Instructions: Answer any THREE QUESTIONS.

All questions carry equal marks.

Duration 2 hrs

No. of Answer books

Requirements :

Handout

MCQ

Statistical Tables

Graph Paper

Log Graph Paper

Other Material

No. of Pages 5 excluding this page

School School of Business & Economics

OLLSCOIL NA hÉIREANN

NATIONAL UNIVERSITY OF IRELAND, GALWAY

SEMESTER 1 EXAMINATIONS 2009/

THIRD YEAR BSc. IN BUSINESS INFORMATION SYSTEMS

EXAMINATION

(MS315) ADVANCED PROGRAMMING

Professor H. van der Heijden

Dr. T. Acton

Time Allowed: TWO hours

Answer any THREE QUESTIONS. All questions carry equal marks.

Q1.

A university instructor requires a Javascript program to determine the best

percentage mark for a class of students taking an examination in a particular

subject. The number of

students in the class varies

from year to year. Write the

program to input a mark

between 0 and 100 inclusive

(e.g. 93.4, or 35) for each

student in the class, and output

the best (highest) mark as

indicated below.

The partially completed script

is provided (you do not need to

rewrite the provided code in

your answer).

Q1: Best Mark

Click Refresh (or Reload) to run this script again.

(33.3 marks)

(b) Give a full explanation of each of the following Perl code snippets. In

each case, detail exactly what is occurring in the code.

(i) $databaseHandle = DBI->connect( "DBI:mysql:cars", "root", "", { RaiseError => 1 } );

(ii) $databaseHandle->disconnect();

(iii) if ( $testString gt $compareString ) {

print( "… Some message goes here …\n" ); }

(iv) open( FILE, "passwords.txt" ) || die( "Could not be opened." );

(v) use CGI qw( :standard );

(10 marks)

Q3.

Fully detail how to install and configure one of the following technologies on

a production web server.

(a) Microsoft Internet Information Server (IIS)

(b) Apache web server

(c) PHP

(d) Perl

(33.3 marks)

Q4.

A bank needs to generate a random 8-digit code sequence each morning,

which it sends to its managers using a secure mechanism, who in turn use the

code to access a particular investment account. Write a script that generates

this code sequence.

A partially completed Javascript is provided (you do not need to rewrite the

provided code in your answer), though you may choose a different language.

Q4: 8-digit numerical code

Click Refresh (or Reload) to run this script again.

(33.3 marks)

Q5.

The output below shows a registration form html document (form.html)

displaying in a web browser: when the user clicks the ‘Register’ button, the

details entered on the form are handled by a php script (form.php) on the web

server.

The line-numbered contents of form.php are below. Give a full and

thorough explanation of what is occurring in the code.

01 03 04 05 06 07 08 09 Form Validation 10 11 12 13 14 20 INVALID PHONE NUMBER: