Vous êtes sur la page 1sur 32

DE1338

DISTANCE EDUCATION

13

B.Sc. (Computer Science) DEGREE EXAMINATION, MAY 2011. DIGITAL COMPUTER FUNDAMENTALS (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. 1. (a) Convert the following :

(478)10 = ( )8 (0.5632 10 = ( )8 . ) (b) (10)

Write the procedure for converting decimal integer number to its Binary equivalent. (10) Convert the following :

2. (a)

(1010 2 = ( )16 ) (0.1011 2 = ( )16 . ) (b) (10)

How to convert Binary integer number to its octal equivalent? (10) Mention the fundamental axions of Boolean Algebra. (10)

3. (a) (b)

Simplify the expression S = ABCD + A BCD + A B CD + AB CD + ABC D (10)

4. (a) (b)

How Quinc Mckhuskey method can be used to reduce the Boolean expressions? (10)

With an example, show how to simplify the sum of products expression and products of sums expression. (10) Mention the functionalities of Arithmetic Logic Unit. (10)

5. (a)

DE 299

(b)

How full adder performs its job? Discuss it with its circuit diagram. (10) Explain the working concept of parallel Binary Adder. (10)

6. (a) (b)

How addition and subtraction takes place in a parallel arithmetic element? (10) Explain the RS flipflop with its diagramatic representation. (10)

7. (a) (b)

Give the purpose of Binary counters and BCD counters. (10) Describe the characteristics of RAM and ROM memory organisation. (10) First Generation. Second Generation. (10)

8. (a) (b)

Discuss the following generations of computer classification : (i) (ii)

DE 1339
DISTANCE EDUCATION

14

B.Sc. (Computer Science) DEGREE EXAMINATION, MAY 2011. DATA STRUCTURES USING C (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. (5 20 =100) 1. (a) (b) (c) Describe the six types of tokens in c with example. (6)

Write short notes on symbolic constants with example. (6) Describe the scope and lifetime of variable in a function. (8)

DE 299

2. (a) (b) (c)

Write a short note on pointers and arrays with an example. (5) (5)

Explain any two control statements with examples. Explain various operations relation to STACK and QUEUES wit algorithms. (10) Explain the string handling function with example. (10) (10) What are the differences between call by value and call by reference? Explain with examples. (8) (5)

3. (a) (b)

Describe the singly linked list with an example.

4. (a) (b) (c)

Describe the decision tree with an example.

Explain the decision making statements with an example. (7) Write a recursive function to calculate factorial of a numbers and a main program to calculate NCR value. (10) (10)

5. (a)

(b)

Narrate linear search method with an example.

6. (a) (b) (c)

Write a procedure to evaluate postfix and infix expression. (8)

What are the three categories of functions with examples? (6) What are the advantages of pointers? (6)

7. (a) (b)

Write a C program to search a number in an array. (10)

What are the operations done on stack? Implement stack using an array in program. (10) Explain how elements of a two dimensional array can be accessed using pointers. (10) (10)

8. (a) (b)

Explain in detail about doubly linked list.

DE 1340
DISTANCE EDUCATION

15

B.Sc. (Computer Science) DEGREE EXAMINATION, MAY 2011. DISCRETE MATHEMATICS

DE 299

(2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. 1. (a) (5) (b) Construct the truth tables of the following formula ( Q ( P Q ) P ) . that

Show

( ~P ( ~Q R ) ) ( Q R ) ( P R ) R .
(9)

(c)

Write an equivalent expression for ( P Q R ) ( R S ) which contains neither the biconditional nor the conditional. (6)

2. (a) (b) Let

Show that A B A B = A . X = {1, 2,...7} and R = { x, y) x y (

(6) is divisible

by 3}. Prove that R is n equivalence relation. (8) (c) Let R = { (1, 2) , ( 3, 4) , ( 2, 2)} and S = { ( 4, 2) , ( 2, 5) , ( 3, 1) , (1,3)} Find R S , S R and R ( S R ) . 3. (a) (b) Define bijective function with example.
1 3

(6) (4) for x R are inverse of

Show that the function f ( x) = x3 and g( x) = x each other. (8)

(c)

Show that the function f ( x, y) = ( x + y) is primitive recursive function. Hence compute the value of f ( 2, 4) . (8)

4. (a) (b) Find

Define monoid and semigroup. the

(4) in the multiplicative (7) group

G = a, a , a , a , a , a = e .

order
2 3

of
4

every
5 6

element

(c)

Prove that A subgroup H of a group G is normal if and only if g1hg H for every h H , g G . (9)

DE 299

5. (a) (b)

State and prove Lagranges theorem.

(12)

Define (i) (ii) group subgroup

(iii) group homomorphism (iv) coset. 6. (a) (8)

Prove that in any graph the number of add degree vertices is even. (6) (7)

(b) (c)

Explain the Konigsberg bridge problem.

Prove that a tree with n vertices has ( n 1) edges. (7) Define Pendent vertex Null graph

7. (a) (i) (ii)

(iii) Connected graph (iv) Bipartite graph (v) (b) Regular graph. (10)

Prove that a graph G without loops is a tree if and only if any two distinct vertices are connected by a unique path. (10) Let f : A B and g : B C be both one to one and onto function. Prove that (i) (ii) g f is one-to-one and onto.

8. (a)

( g f ) 1 = f 1 g1 .

(10) (5)

(b) (c)

Prove that for any 3 sets A , B , C A ( B C ) = ( A B ) C . Define quantifier and negation of quantifier statement. (5)

DE1341
5

23

DE 299

DISTANCE EDUCATION B.Sc. (Computer Science)/B.Sc. (Computer Science) (Lateral) DEGREE EXAMINATION, MAY 2011. OBJECT ORIENTED PROGRAMMING AND C++ (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. 1. (a) List the principles involved in object oriented programming. (10) (b) Explain the concept of manipulators. (10)

2. (a) (b)

Mention the benefits of object oriented programming. (10)

What are the operators used in C++? Discuss its usage with its hierarchy. (10) How to define and declare member functions?(10) (10)

3. (a) (b)

Explain the usage of friend function.

4. (a) (b)

What is meant by static data? How to use it in programming? (10)

With examples, discuss the concept of objects and classes. (10) How to define and use pointers? (10)

5. (a) (b)

Write a program in C++ to check whether the given string is palindrome or not. (10) Discuss the following : Dynamic constructor Copy constructor. (10)

6. (a) (i) (ii) (b)

Write a program in C++ to find the length of the string and to extract a part of sub string from main string. (10) How to overload unary and binary operators? (10)

7. (a) (b)

Write a program in C++ to implement the concept of function overloading. (10) 6

DE 299

8. (a) (b)

What is polymorphism? polymorphism. (10) Virtual function Virtual base class.

Explain

the

concept

of

runtime

Discuss the following : (i) (ii) (10)

DE-1342
DISTANCE EDUCATION

24

B.Sc. (C.S.)/B.Sc. (C.S.) (Lateral) DEGREE EXAMINATION, MAY 2011. SCIENTIFIC COMPUTING (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. (5 20 = 100) 1. (a) Solve by Gauss-Jordan method

2x + y + 4z = 12 8x 3y + 2z = 20 4x + 11y z = 33. (b) Solve by Gauss-Seidal method 27x + 6y z = 85 6x + 15y + 2z = 72 x + y + 54z = 110 . 2. (a) The following are data from the steam table : Temperature C : Pressure kgf/cm2 140 3.68 5 150 4.85 4 160 6.30 2 170 8.07 6 180 10.22 5

Using Newton formula, find the pressure of the steam for a temperature of 142. 7

DE 299

(b)

Obtain an approximate value of log 2 by calculating by Simpson's rule

1+ x
0

dx

after dividing the range into 8 equal parts.

3.

(a)

The following gives the monthly wages of workers in a factory compute (i) Standard deviation (ii) Quartile deviation. Wages : 125175 No. of workers : Wages : 375425 No. of workers : 4 425475 6 475525 1 525575 1 72 Total 2 175225 22 225275 19 275325 14 325375 3

(b)

Calculate

mean

deviation Size of item 3-4 4-5 5-6 6-7 7-8 8-9 9-10

from Frequenc y 3 7 22 60 85 32 8 217

(i)

Mean

(ii) Median (iii) Mode for the following data :

4. (a)

Find the three quartiles for the following distribution : Marks No. of students

DE 299

5-10 10-15 15-20 20-25 25-30 30-35 35-40 40-45 (b)

5 6 15 10 5 4 2 2

Below are given the marks obtained by 10 students : S. No. : 1 2 3 4 5 6 7 8 9 1 0 4 5 4 6 4 7 4 6 4 5 1 3 6 1 0 6 1 6 1 4 5 5 3 3 4 6 7 7 5 3 5 8 7 9 0 1 3 1 4 2

Marks in Physics :

Marks in Chemistry :

In which subjects is the level of knowledge of the students higher? 5. (a) One factory F1 produces 1000 articles, 20 of them being defective, 2nd Factory produces 4000 articles, 40 of them being defective, 3rd factory produces 5000 articles 50 of them being defective. All these articles are put in one stock pile. One of them is chosen and is found to be defective. What is the probability that it is from the factory F1 . (b) If A and B are independent events then prove that (i) (ii) A and B are also independent event A and B are also independent event.

DE 299

6. (a)

Find

(i) the constant K such that function kx2 if 0 < x < 3 f (x) = is a probability function otherwise 0 (ii) Compute P (1 < x < 2) . (8)

(iii) Find the distribution function. (b) A random variable X has the probability function P (x) = 1 ; x = 1, 2, 3 .... 2x (8) (4)

Find (i) M.G.f. (ii) Mean (iii) Variance. (c) Prove that 2 = E ( X 2 ) [E (X )]2 .

7. (a)

In a certain sample of 2000 families, 1400 families are consumers of tea. Out of 1800 Hindu families, 1236 families consume tea. Use 2 test and state whether there is any significant difference between consumption of tea among Hindu and Non-Hindu families.

(b)

Sample of 2 types of electric light bulbs were test for length of life and following data were obtained : Sample No. Sample Means : n1 = 8 x1 = 1234 hrs S1 = 36 hrs n1 = 7 x2 = 1036hr s S 2 = 40 hrs

Sample Standard deviation :

Is the difference in the means sufficient to warrant that type I superior to type II regarding length of life. 8. The following data represent the number of units of production per day turned out by 5 different workers using 4 different types of machines : Machine Type A B C D

10

DE 299

Workers 1 2 3 4 5 (a) (b)

4 4 4 6 3 4 4 3 3 8

3 8 4 0 3 6 3 8 4 2

4 7 5 2 4 4 4 6 4 9

3 6 4 3 3 2 3 3 3 9

Test whether the mean production is the same for the different machine types. Test whether the 5 men differ with mean productivity.

DE 1343
DISTANCE EDUCATION

25

B.Sc. (Computer Science)/B.Sc. (Comp. Sci.) Lateral DEGREE EXAMINATION, MAY 2011. APPLICATION PROGRAMS (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. (5 20 = 100) 1. (a) (b) (c) Explain how to start windows. (5) (10) (5)

Write notes on uses of mouse on the windows. Explain the uses of start menu.

11

DE 299

2. (a) (b)

How to create a new word document?

(5)

How to apply formatting in your word document? (15) How to add header and footer in a document? (5) (15)

3. (a) (b)

Write note on Mail merge.

4. (a) (b)

How to implement formula in the worksheet? Explain with example. (10) (10)

Explain about the charts used in excel.

5. Briefly explain the following : (a) (b) (c) (d) Find and replace data. Borders in excel. Resize columns and rows. (5) (5) (5) (5) Insert and delete rows and columns.

6. (a) (b) (c)

What is PowerPoint? How to create a new presentation? (10) (5) (5)

What are the steps available to run a slide show? How to print a PowerPoint presentation?

7. Write short notes on : (a) (b) (c) Creating and saving a table. Adding, Editing and deleting fields. Adding, Inserting and deleting records. How to create report using MS-Access? (8) (6) (6) (10) (5) (5)

8. (a) (b) (c)

Explain the commands used to sort the records. How to insert graphics in database?

DE 1344
DISTANCE EDUCATION

31

B.Sc.(CS)/B.Sc. (CS) (Lateral) DEGREE EXAMINATION, MAY 2011. COMPUTER GRAPHICS (2007 onwards)

12

DE 299

Time : Three hours

Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. (5 20 = 100)

1. (a) (b) (c)

Explain how to generate video display.

(3)

Compare Raster Scan display and Random scan display. (5) Discuss DDA line drawing algorithm. (12) Give various properties of Ellipse and Give Ellipse generating algorithm. (13)

2. (a) (b)

What is meant by Region filling and discuss any one of its technique? (7) What is meant by Co-ordinate system? Explain it.(8) Pivot-Point Rotation (8) and Explain General Fixed - Point Scaling.

3. (a) (b) (c)

Explain transformation between co-ordinate system. (4) Describe various Two-Dimensional viewing functions. (4) (4) Polygon (12) Clipping. Sutherland Hodgeman

4. (a) (b) (c)

Explain various clipping functions. Discuss

5. (a) (b) (c)

What is meant by Modeling? How transformation is used in modeling? (7) rotation transformation (8) (5) in

Explain about Three-Dimension.

Explain about composite transformation.

6. (a) (b) (c) How

Discuss clipping in homogeneous co-ordinate system. (6) to transform co-ordinates. world co-ordinates (6) (8) to view

Explain general parallel-projection transformation. Explain various components of user interface.(10) (5) (5)

7. (a) (b) (c)

Describe the need of command language. Explain about information display.

13

DE 299

8. (a) (b)

Explain any one Hidden-Surface Algorithm.

(12) (8)

Describe various Graphical Input Devices.

DE1345
DISTANCE EDUCATION

32

B.Sc. (Computer Science)/B.Sc. (Computer Science) (Lateral) DEGREE EXAMINATION, MAY 2011. VISUAL PROGRAMMING (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. (5 20 = 100) 1. (a) (b) 2. (a) (b) 3. (a) (b) 4. (a) (b) 5. (a) (b) 6. (a) (b) 7. (a) (b) Explain the special features of GUI. (10)

Explain the basic operations performed with a window. (10) Explain the role of PIF editor. How to format the Text? Explain the usage of paint brush. Give the usage of Input box. (10) (10) (10) (10)

What are the programming Language tools that are available in Visual basic? Explain them. (10) Write short notes on common Form properties.(10) Write short notes on For ... Next loop in visual basic. (10) Write a VB code to arrange the numbers in ascending order. How to create EXE file? (10) (10)

Explain the steps involved in program running and testing in Visual basic. (10) Compare functions and recursive functions with suitable examples. (10) How Event Handling is taken care of in visual basic (10) ?

14

DE 299

8. (a) (b)

Explain about VB projects with Multiple forms.(10) Explain in detail about MDI forms. (10)

DE1346
DISTANCE EDUCATION

33

B.Sc. (Computer Science)/B.Sc. (Comp.Sci.)( Lateral) DEGREE EXAMINATION, MAY 2011. OPERATING SYSTEMS (2009 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. 1. (a) (b) Mention the duties of operating systems. (10)

Describe the architectural structure of operating system. (10) Discuss the various concepts involved in system calls. (10)

2. (a) (b)

How operating system is classified? Discuss its growth in various generations. (10) Differentiate between process, processes and processors. (10)

3. (a) (b)

What is meant by policy driven scheduling? Explain with an example. (10) How Round robin scheduling is done? semaphores event counters. (10) (10) (10) (10)

4. (a) (b) (i) (ii) 5. (a) (b)

Explain the following :

How Input/out put devices are managed?

Explain the concept of deadlock modeling.

6. (a)

Give the importance of user-space input/output software. (10)

15

DE 299

(b)

What is meant by deadlock? How to prevent and avoid it? (10) Discuss on multiprogramming with fixed (10) partitions.

7. (a) (b)

Explain the concept of paging and segmentation in virtual memory. (10) How to improve the reliability and performance in file management? (10)

8. (a) (b)

Explain the technique of providing security for file system. (10)

DE 1347
DISTANCE EDUCATION

34

B.Sc. (Computer Science)/ B.Sc. (Computer Science) (Lateral) DEGREE EXAMINATION, MAY 2011. INTERNET PROGRAMMING (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. 1. (a) (b) Explain the Network Topologies with an example. (10) (10)

Explain the Network and Transport layer. Write short notes on : Internet E-mail Telenet (5) (5)

2. (a) (i) (ii)

(5)

(iii) URLs (iv) Web Server. 3. (a) (b)

(5)

What is TCP/IP? How can we apply the TCP/IP in the internet? Explain. (10) (10)

Discuss about the HTTP.

4. (a)

Discuss the various kinds of the applications of the Internet. (10) 16

DE 299

(b)

Briefly explains the Electronic Commerce.

(10)

5. (a) (b)

Explain the various kinds of data types in Java.(10)

Write a Java program to sort the n numbers in ascending order. (10) How can we define the two dimensional array in Java? Explain. (10)

6. (a) (b)

Write a Java program to find the largest and smallest number from given set of n numbers. (10) Write a Java program to count number of words and characters in a text. (10)

7. (a) (b)

What is constructor? How can we define the constructor? Explain. (10) Explain any two types of the inheritance with an example. (10) (10)

8. (a) (b)

Explain the I/O basic and applet fundamentals.

DE1348
DISTANCE EDUCATION

35

B.Sc. (Computer Science)/B.Sc. (Comp. Sci) (Lateral) DEGREE EXAMINATION, MAY 2011. RDBMS (2007 onwards) Time : Three hours Maximum : 100 marks Answer any FIVE questions. All questions carry equal marks. 1. (a) Mention the salient features of data base management system. (10) (b) Explain the concept of schema and sub schema. How data base differs from a data file? (10) (10)

2. (a) (b)

What is meant by data independence? How to achieve it? (10)

17

DE 299

3. (a) (b)

List the concept of relational model.

(10) (10)

Explain the facilities in data definition.

4. (a) (b)

What are the semantic issues that arise in relational model? (10) (10)

Discuss in data control facilities.

5. (a) (b)

Mention the properties of relational database. (10) (10)

Describe the architecture of oracle.

6. (a) (b)

Explain the concept in client server systems. (10)

How physical files are created and mainpulated in oracle? (10) Mention the elements of SQL language and discuss them. (10) (10) (10) (10)

7. (a) (b)

How to join multiple tables through queries? How a table is created and modified?

8. (a) (b)

Discuss on embedded SQL statements.

DE2078
DISTANCE EDUCATION

16

B.Sc. (Computer Science) DEGREE EXAMINATION, MAY 2011. C AND DATA STRUCTURES LAB (2007 onwards) Time : Three hours Maximum : 100 marks

One question should be given to each candidate by lot system. Answer both subdivisions (a) and (b). Each subdivision carries 50 marks.

18

DE 299

1. (a) Write a C program to convert given temperature in Celsius and find the corresponding temperature in Fahrenheit. Use the formula f = 9 / 5 C + 32 . (b) Write a C program to implement insert and delete operations on Queue using array concept.

Cut here
2. (a) (b) Write a C program to find the area of a circle.

Write a C program to evaluate the given mathematical expression using stack.

3. (a)

Write a C program to input a basic pay and calculate gross pay and net pay.

Income : HRA = 15% of Basic Pay DA = 90% of Basic Pay Gross pay = Basic Pay + DA + HRA. Deductions : PF = 10% of Basic Pay Wcharge = 200 Deductions = PF + Wcharge Netpay = Gross Pay Deductions (b) Write a C program to find the biggest of 5 Nos. Modify the program to find the biggest of 10 Nos.

Cut here
4. (a) Write a C program that receives the data such as age and name of person to check the eligibility for voting. Take the condition that if a person is more than 18 years old he is eligible to vote. Else display the no. of years, he has to wait for voting.

19

DE 299

(b)

Write a C program to find simple and compound interests using Function declaration.

5. (a)

There are 10 students in an class. Their names and marks in three different subjects are given. If a student takes more than 40 marks in each subject, then he is declared PASS. Otherwise FAIL. Write a C program to do the above.

(b)

Write a C program to compute commission earned by a salesperson according to the scheme given below : Sales Amount Commission % Upto Rs. 1,000 Above 5000 0 10 Above 1000 upto 50005

DE2079
DISTANCE EDUCATION

26

B.Sc. (Computer Science)/ B.Sc. (Computer Science) (Lateral) DEGREE EXAMINATION, MAY 2011. LAB II C++ PROGRAMMING LAB (2007 onwards) Time : Three hours Maximum : 100 marks

Examiner has to select ONE question and give it to the student by Lot system. Each sub division carries 50 marks. 1. (a) Assume you want to generate a table of multiples of any given number. Write a program that allows the user to enter the number, and then generates the table, formatting it into 10 columns and 20 lines. (b) Create a C++ class for a stock item abstract data type. It should have the attributes of stock levels (an integer) and unit price (a float). Define the methods to return the values of these two attributes and to set them using parameters. Add two more methods to allow stock receipts and issues updating the stock level as appropriate. Write a menu driven C++ program to solve the problem. Create a class product that contains a product number, product name and unit Cut here price. Write a menu driven C++ program to get the 20

2. (a)

DE 299

n number of product details and display all details in product name wise sorted order. (b) Write a menu driven C++ program to add and multiply two matrices of order (m m) defined in class. Create a class DONOR that contains donor number, donor name, age, address, sex, blood group. Write a menu driven C++ program to display the number, name and address of the donors for the following categories. blood donors having the blood group A+ blood donors in the age group between 20 to 25

3. (a)

(i) (ii)

(iii) male donors having blood group O+ in the age between 45 and 50. (b) Write a C++ program to find (i) (ii) 4. (a) the length of the string to count the number of occurrences of a particular character.

Cut process students marks with the help of classes. Write a program to here The class has private variables for name, mark1, mark2, mark3. It has two member functions getdata ( ) - to get input, result ( ) to print the results. All subject mark must be > = 50 for pass otherwise fail.

(b)

Raising a number n to power p is the same as multiplying by itself p times. Write a function called power ( ) that takes a double value for n and an int value for p and returns the result as double value. Use the default argument 2 for p, so that if this argument is omitted, the number will be squared. Write a main ( ) function that gets values from the user to test this function.

5. (a)

Imagine a publishing company that markets both books and audio cassette version of its works. Create a class publication that stores the title (a string) and price (type float) of a publication. From this class derive two classes :

Book which adds a page count (type int) and TAPE, which adds a length count (type int). Each of these three classes should have a get data ( ) function to get its data from the user at the keyboard and a put data ( ) function to display its data. Write a main ( ) program to test the book and tape classes by creating instances of them, asking the user to fill in their data with get data ( ) and then displaying the data with put data ( ).

21

DE 299

(b)

Write a program using polymorphism to calculate the cube of any two numbers of type int, float, double and long.

Cut here
6. (a) (b) Write a C++ program to convert all the upper case characters to lower case in a given sentence.

Using pointers create a class and write a menu driven C++ program to get the n names and display them in the order of A to Z or Z to A.

DE2080
DISTANCE EDUCATION

27

B.Sc. (Computer Science)/B.Sc. (CS) (Lateral) DEGREE EXAMINATION, MAY 2011. COMPUTER LAB III (APPLICATION PROGRAMS LAB) (2007 onwards) Time : Three hours (1) (2) Maximum : 100 marks Examiner has to select TWO questions ONE from Section A and another from Section B. The questions are given to the candidates by lot system. SECTION A (50 marks) 1. Prepare the first page of MCA Practical Record Note Book with picture insertion and alignment.

Cut here
2. Create a worksheet in MS-Excel with following columns : Employee number, Employee Name, designation, Basic Pay, HRA, DA, LIC, PF, Grosspay, Net pay. (a) Type data for empno, empname, designation, Basicpay and LIC, PF. (b) Calculate : HRA = 20% of Basic DA = 30% of Basic Gross pay = Basic + HRA + DA. Net pay = Gross pay (LIC + PF) (c) Draw the bar chart between empname and Netpay. (d) Sort the designation column and employee column name at a time.

22

DE 299

3. Draw Line, Bar, Pie charts for the data given below : ABC Company Limited Year 1991 data labels. Sales 1000 Cost 400 Profit 600

Add data for 10 years from 1991 to 2000. Provide titles, legends, grids and

Cut here
SECTION B (50 marks) 4. Create STUDENT table with the following fields REGNO, NAME, MARK1, MARK2, MARK3. Create Address table with fields REGNO, STREET, CITY and PIN. (a) (b) Write a query to display REGNO, NAME and total of all the three subject marks. Write a query to display REGNO, NAME, STREET, CITY, PIN and total of all the three subject marks.

Cut here
5. Create Inventory table with fields ITEMNO, NAME, QUANTITY ON HAND, REORDER LEVEL (a) (b) (c) Create a form in custom format. Create a query REORDER to show all the items. Create a macro that executes REORDER query automatically.

6. Create STUDENT table with fields REGNO, I1, E1, I2, E2, I3, E3, I4, E4, I5, E5, (internal and external marks in five subjects) and table SUBJECT with fields SCODE 1, SNAME1, SNAME 2, SCODE 2, ..... etc., (Subject code and subject names for five subjects). Create a report to print mark sheets for all the student in the following format. ALAGAPPA UNIVERSITY, KARAIKUDI STATEMENT OF MARKS REG NO : 05315001 SCODE SNAME 101 System analysis NAME : RAMANA . S INT EXT TOTAL RESULT 20 40 23 60 PASS

DE 299

102 103 104 105 (a) (b) (c)

DBMS Visual Programming Interenet Programming Compiler Design

22 20 21 28

50 38 27 30

72 58 48 58

PASS PASS FAIL PASS

Condition for passing a subject : A minimum of 35 marks in external and 50 marks in total. Grand total should not exceed total in failed subjects. Display FAIL in red colour.

DE2081
DISTANCE EDUCATION

36

B.Sc. (Computer Science)/B.Sc. (CS) (Lateral) DEGREE EXAMINATION, MAY 2011. LAB IV VISUAL BASIC AND ORACLE (2007 onwards) Time : Three hours Maximum : 100 marks

Examiner has to select TWO questions ONE from Visual Basic and another from Oracle. The questions are given to the candidates by lot system. VISUAL BASIC 1. Write and test the VB program to read three numbers and find the greatest and smallest numbers using labels and text boxes.

Cut here
2. Write and test whether the given number is odd or even, using option buttons.

Cut here
3. Write and test the VB program to find the fibonacci series for the given number.

24

DE 299

Cut here
4. Write and test the VB program written with option button to compute the sum of first n odd numbers.

5. Write a VB program to calculate the simple interest or compound interest using three command buttons namely input, calculate, display.

Cut here
6. Write and test the VB program to convert kilometer to meter and meter to kilometer using labels, text and enter key.

Cut here
7. Write and test a VB program to compute the area of a square, where the side a is given. Use option buttons and input boxes.

Cut here
8. Write and test the VB program to do the basic arithmetic operations, namely, addition, subtraction, multiplication and division for given any two numbers. Use option buttons and labels.

Cut here
9. Write and test the VB program to do temperature conversion from C to F and vice-versa at users choice using label, test and enter key.

Cut here
10.Write and test the VB program to display the given sentence to convert upper case to lower case and display the day of the given date.

ORACLE 11.Create table DEPARTMENT with the following details : Field name Type Width Decima l DEPT NO Varcha 8 r DEPTNAME Varcha 20 r EMPNO Varcha 6 r 25

DE 299

EMPNAME DESIGNATION SALARY

Varcha r Varcha r Numbe r

15 15 10 2

Perform the following SQL constructs (a) Add 5 records (b) Display all records of computer science department (c) Display the column names EMPNAME and DEPTNAME of all employees. (d) Display the employee names salary wise, from maximum to minimum. (e) Add the column allowance and fill the value of all the rows with 20% of the salary.

Cut here
12.Create a VENDOR table with following columns : Field Name Type Width Vendor No Varcha 10 r Vendor Varcha 12 Name r Address Varcha 12 r City Varcha 12 r State Varcha 15 r Product Varcha 15 name r Write queries for the following operations (a) Add 5 records (b) Display vendor No, Verdor Name, Address, City for Tamil Nadu State. (c) Display the Vendor details who supply the LCD monitor. (d) Change the width of the address field to 15. 13.Create table PAY with the following structure Field Type Width Decima Name l Emp No Name DOJ B Pay DA HRA Numeric Characte r Date Numeric Numeric Numeric 26 8 8 5 2 2 8 25

DE 299

DEDUC GPAY NPAY (a) (b) (c) (d)

Numeric Numeric Numeric

5 10 10 2 2

Add 5 records Fill DA with 75% of BPay for all employees. Calculate NPay, GPay for all employees. Display employee pay particulars.

Cut here
14.Create invoice table with the following columns : Field Name Type Width Invoice No Varcha 10 r Movies No Numbe 5 r Cust ID Varcha 8 r Issued Date Date Return Date date Write queries for the following operations (a) Add 5 records (b) Display the invoice table information for custid a001 and a002 (c) Display the issue date in the format dd-nm-yy (for eg : 13 October-2010) (d) Change the issue date of cusfid a001 to 31/10/10 (e) Display the invoice number and day on which customers were issued movies. 15.Create table LABEL with the following structure Field Type Width Decima Name l Name Street City Pincode (a) (b) (c) (d) (e) Char Char Char Numeri c 20 20 20 6

Add 5 records Display the contents of the table Display the ascending order list with NAME as primary key. Display the descending order list with pincode as primary key. Display the contents with appropriate headings.

27

DE 299

Cut here
16.Create a student table with the following structure : Filed Name Type Width Reg No. (primary key) Student name Java programming SE DBS DSA Java lab Vachar Vachar Numbe r Numbe r Numbe r Numbe r Numbe r 11 15 3 3 3 3 3

Write queries for the following operations : (a) Create 5 records (b) Fill total field with the sum of marks obtained in all subjects (c) Add a new column name, Average and update the average mark for each student. (d) List the records details whose average > 75. 17.Create table BIODATA with the following structure. Field Type Width Decima Name l Name Age Sex Degree (a) (b) (c) (d) (e) Characte r Numeric Characte r 20 25 2 1

City 20 Add 5 records i.e. create biodata of 5 employees. Display all records of FEMALE employees. Delete all BA degree holders and then display the table contents. Remote all employee records whose age > 750 Display all records having age < 50 and city Tirunelveli.

Cut here
18.Create table SALES with the following structure 28

DE 299

Field Name Sale No Sale Name Sale amount Commissio n Sale Date (a) (b)

Type Numeric Characte r Numeric Numeric Date

Width Decima l 5 20 10 6 2 2

(c) (d)

Create 5 records Replace commission with the following conditions. (i) If sales amount is less than 1000 there is no commission. (ii) If sales amount is 1000 but 7500 the commission is 75% of sales amount. above 7500 the commission is 10%. Display all the records Display the average sales and average commission.

19.Create the LOAN table with the following structures : Field Name Type Width Decima l Cust No Varcha r Cust Name Varcha r Branch Name Acc. No. Varcha r Numbe r Loan No. Numbe r Amount Numbe r Write queries for the following operations 10 2 7 8 15 20 5

29

DE 299

(a) (b) (c) (d)

Create 5 records Display the customer details who are having more than one loan. Add the column loan due with type number. Display all the columns for the customers who are having loan at Trichy branch.

(e)

Fill the value for loan due who are having due in loan payment.

20.Create table MARKS with the following structure. Field Type Width Decima Name l Reg. No Name Mark 1 Mark 2 Mark 3 Mark 4 Total Average Grade (a) (b) (c) Create 5 records Replace all TOTAL with mark 1 + mark 2 + mark 3 + mark 4 and display the contents. Replace grade with the following conditions Grade is A if Average is 60 Grade is B if Average is 40 to 59 Grade is C if average < 40 (d) (e) (f) Display the maximum marks in each subject Display the minimum marks in each subject Count the number of records for mark 4 > 60. Numeric Characte r Numeric Numeric Numeric Numeric Numeric Numeric Characte r 8 20 3 3 3 3 3 6 1 2

30

DE 299

DE2082
DISTANCE EDUCATION

37

B.Sc. (Computer Science)/ B.Sc.(Computer Science)(Lateral) DEGREE EXAMINATION, MAY 2011. LAB V JAVA PROGRAMMING LAB (2007 onwards) Time : Three hours Maximum : 100 marks

One question should be selected by the examiner for each candidate and given to them by lot system. Each subdivision carries 50 marks. 1. (a) Write a java program for sorting a given list of names in ascending order using command line arguments. (b) Write a java program to read and write the data using random access file.

Cut here
2. (a) (b) Write a java program to multiply two given matrices.

Write a java program that displays the number of characters, lines and words in a text file.

Cut here
3. (a) (b) Write a java program to illustrate overloading and overriding methods in Java.

Write a java program to count the number of words and characters in a text. Write a program to create package in Java.

4. (a) (b)

Write a java program for handling mouse events and keyboard events.

Cut here
5. (a) (b) Write an applet code to draw the various polygons.

Write a java program that illustrates the implementation of abstract class.

Cut here

31

DE 299

6. (a)

Write a java program to create and manipulate labels, lists, text fields, text areas and panels.

(b)

Write a java program to display the contents of file along with a line number before each line.

32

DE 299

Vous aimerez peut-être aussi