



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CS 843 - Distributed Computing Systems - Final Exam - Name: Date: Friday, May 16, 2003, 10:00 - 11:50 AM (200 + 20 (bonus) points)
(a) Software agent
(b) LDAP
(c) NTP
(d) 2PL
(e) PGP
(f) IIOP
int f(x,y) { x = x + 1 ; y = x * y - 5; return(x + y); }
main() { int a, b; a = 2; b = f(a, a); printf("a = %d, b = %d \n",a,b); }
What will be printed if the parameters are passed using:
(a) call-by-value? (b) call-by-reference? (c) call-by-copy/restore using Pascal semantics?
Which of the above parameter passing method(s) cannot be easily implemented using remote procedure calls? Explain. (8 points)
(b) For each of the following applications, do you think at-least-once semantics or at most once semantics is best? Discuss. (6 points) i. Write a block of data into a file ii. Request the number of users currently logged into a remote system iii. Deposit money into a bank account
ciphertext =
(b) Using the RSA public key cryptography algorithm. (8 points) i. If p = 5 and q = 11, list four legal values for d. ii. If p = 7, q = 13, and d = 7, find e.
(c) Why are asymmetric encryption algorithms usually used for authentication and symmetric encryption algorithms for document secrecy? (4 points)
(b) What are the major goals of your research project? (6 points) (c) What is the scope of your research project? (6 points)
#define NAMESIZE 40
typedef struct { int day; int month; int year; } date;
struct person { char name[NAMESIZE]; date birthdate; };
#include <day.h> extern date birthday_dblookup(char ); / database lookup by name */ extern char *list_dblookup(date); / database lookup by date */
date birthday_lookup (char *name) { return(birthday_dblookup(name)); }
char **list_lookup(date birthday) { return(list_dblookup(birthday)); }
main() { char name[NAMESIZE]; date birthday; char **list; int i = 0;
printf("Name: "); scanf("%s", name); birthday = birthday_lookup(name); printf("Hello! %s, your birthday is %d-%d-%d.\n", name, birthday.day, birthday.month, birthday.year); list = list_lookup(birthday); printf("Following persons have the same birtday as you:\n"); while (list[i] != โ\0โ) printf("%s\n", list[i++]); }
(a) Use CORBA IDL to specify this application (The main function is not required). (b) Suppose BirthdayDBLookup and ListDBLookup are two available Java methods corresponding to C birthday dblookup and list dblookup functions respectively. Write the Java servant class that im- plements the interfaces and methods defined in the above COBRA IDL file.