bca pgdca practical

72
PGDCA (Practicals) / MCA (I Yr) / B,CA Term-End Practical Examination Decambet, 2006 SOFTWARE CS-02: INTRODUCTION TO Timeallowed:2hours Maximum Marks: 700 (Weishtase 15%) Note : There are 3 questions in this paper for 70 morks. The rest 30 marks are lor the uiua-uoce, 1. Write a shell script that changes the name of the files passed as argumentsto lowercase. 2. Write a grep command to selectall the lines from a text file that have exactly two characters. List and executethe command to selecta text file and double space the lines. List and executethe command to list ail the usersfrom /etc/pass^Id in the alphabetically sorted order. 1A 25 25 3. (a) (b) 10 cs-o 2Pls1 3,000

Upload: rajendra-kumar-mishra

Post on 08-Apr-2015

177 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I Yr) / B,CA

Term-End Practical Examination

Decambet, 2006

SOFTWARECS-02: INTRODUCTION TO

T imea l l owed :2hou rs Maximum Marks : 700

(Weishtase 15%)

Note : There are 3 questions in this paper for 70 morks. The rest 30 marks are lor the

uiua-uoce,

1. Write a shell script that changes the name of the files passed as arguments to lowercase.

2. Write a grep command to select all the lines from a text file that have exactly two characters.

List and execute the command to select a text file and double space the lines.

List and execute the command to list ail the users from /etc/pass^Id in the alphabetically

sorted order. 1A

25

25

3. (a)

(b)

1 0

cs-o 2Pls1 3,000

Page 2: Bca Pgdca Practical

- - r .

; , . - r : "

, . . : .

" . . , , . , . ,

, . . - ' , . ,

. i , r , : l

:' ', i' t ', ,, : ":' : ,, . i ,, .: .,

' i,

'.r ";,i :,,, il

i . I '

t t t " : - .

,

Page 3: Bca Pgdca Practical

pGDCA (practicals) / MCA (I Yr) / BCA

Term-End Practical Examination

Decembet, 2006

TO SOFT\AIARECS-02: INTRODUCTION

T i m e a l l o w e d : 2 h o u r sMaximum Marks , 700

(Weishtage 750/0)

Note : There are 3 questions

uiua-uoce.

70 marks, The rest 30 marks qre fo, thein this pqper fo,

1. Write a shell program to count the number of vowels and the number of times of the occurrence

of each vowel in a given Slines text file'

2. Write a shell script that displays the last modification time of any file giwn as input'

List and execute the command to kill any process with the help of the PID.

List and execute the command that displays the lines ending with a period in a text

30

25

3. (a)

(b)

7

file. I

cs-o2Plsz2,000

Page 4: Bca Pgdca Practical

' , ) : , 1 , : ; . ' , " , ' 1 ,

Page 5: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I Yrl / BCA

Term-End Practical Examination

Decembet, 2006

CS-02 : INTRODUCTION TO SOtrWARE

T imea l l owed :2 hou rs Maximurn Marks : 700

(Weishtage 15W

Note : There are 3 questions in this paper for 70 marks. The rest 3O mcrks are for the

uiua-uoce.

1. Write a shell program that outputs all the ihtegers upto the command line argument (n) starting

from 1 and also should display them in tlk ranerse order. 30

2. Write a shell script that counts the English articles (a, an, the) in a given text file.

3. (a) List and execute the command to display all the list of the processes currentty running.

(b) List the text files in your current dirdctory.

25

7

I

cs-o2P/s3 2,000

Page 6: Bca Pgdca Practical

. ,

t

. { i . , , i , r , , i , , ' : : t , , . ' , , ,

'

i ; r i u i . , : f t j ; , i : i { " r i i : l i ; i $ ; : ] ' ] ; . i i : " ' , , - l * , . , * j . T t . * , . : . . : - i . $ ' ; i $

, , ;$ i * : , , ; ; ; ' r - i " i l ' " ; , . : , i ' : : i ; s i . , l i ; - . ; , . , , . i . ' r i : . i ; - i ' i i r , i i . . , . ' , ; , , ;

Page 7: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I Yr) / BCA

Term-End Practical Examination

Decembet, 2006

CS -02: INTRODUCTION TO SOFTWARE

T i m e q l l o w e d : 2 h o u r s Maximum Marks : 700

(Weishtage 750/o)

Note ; There are 3 questions in this paper t'or 70 morks. The rest 30 marks are t'or theuiva-uoce.

1. Write a shell program which deletes all the even numbered lines in any text file given as anargument. 25

2. Write a shell script to encrypt any text file. Assumptions can be made. 30

3. (a)

(b)

List and execute the command to delete all the files in the current directory whose nameends with ".bak".

List and execute the command to display the number of lines in a given file.

1 0

5

cs-o2P/s4 1 , 0 0 0

Page 8: Bca Pgdca Practical

rit\,.-'d,$ 'i,: d'i"'u,rit f,..i .,*t', l l;1 ", i;rirr,r ,ri:i.,;*;,*t{iH$ gi'rlt{--$4"X,*'5

j;i+,,ri $, t;;t :l'iitlti'; ;,"r,- $ i ;11 ';l:i ,i ';uitt $,''i!) $'*tt*;i$,-'{€;$i'?:o,,,$'$

'

; r : i . _ , : . , . i i ; l i f i ; i j : : , ; , . " i + , " _ t

N ) -,..\

i, r X' t : i , r L i , '

i ' . i : t : \ ; , a i . : , ' t r , r ' i : ' , '

Page 9: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I Yr) / BCA

Term-End Practical Examination

Decembet, 2006

CS-03 : FILE STRUCTURE AND PROGRAMMING lN COBOL

T i m e a l l o w e d : 2 h o u r s Maximum Msrks : 100

(Weightage 15%)

Genersl Instructions :

(i) There are two compulsory questions in this paper of 40 marks each' Rest

20 marks are for uiua-uoce.

(ii) Test your programs by running them on 5 to 1.0 records or data ualues.

(iii) Print the programs and the resulfs, if possible, otherwise write partial input and

output on your answer scriPt.

(iu) Make and stste suitable assumptions, if any.

l. A file contains data about employees of an organisation with the following record

description :

ID_NUMBER PIC 9(6)

NAME PIC X(24)

DEPARTMENT PIC X(10)

BASrC_PAY PIC 9(5)V99

ALLOWANCE PIC 9(4)V99

DEDUCTION PIC9(4]'V99

Write a program in COBOL to sort this file, first on DEPARTMENT in ascending sequence

and then records having the same value for DEPARTMENT are to be arranged from the40higher to the lower values of BASIC-PAY.

2. Write a program in COBOL to calculate total number of days in the given month. For example,

if given input is February then output is 28 days. OR If given input is December, output should40be 31 days.

cs-03P/s 1 3 ,000

Page 10: Bca Pgdca Practical
Page 11: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I yr) / BCATerm-End Practical Examination

Decembet, 2006

cs-03 : FILE srRUcruRE AND pRocRAMMtNG tN coBol

T i m e a l l o w e d : 2 h o u r sMaximum Morks : 700

(Weightase I5%)

General Instructions :

(i) There are two compulsory questions in this paper of 40 marks each. Rest20 marks are for uiua-uoce.

(ii) Test yoir programs by running them on 5 to 70 records or dqta uqlues.

(iii) Print the programs and the results, if possible, otherwise write partial input andoutput on your answer script.

(iu) Make qnd state suitable assumptions, if any.

1' Assume that the following fietd MARKS contains the total marks obtained by a student and thecolumn GRADE is one character alphanumeric field. Write a program in CoBOL to calculateGRADE of the students according to the foilowing rules : 40

MARKS GRADE

80 - 100

6 0 - 7 9

4 5 - 5 9

3 0 - 4 4

0 - 2 9

The literal ' (\ru' ' is moved to GRADE in the case of wrong marks.

A

B

C

D

CS-03 P/S2P . T . O .

Page 12: Bca Pgdca Practical

2: Write a program in COBOL to display a figure that looks like a triangle of arterisks. The value

entered is taken.as the number of lines to be displayed in the triangle. 40

For example ' If value entered is 5, then output should be

** * *

4! 4 .P -ar

::r *l ::. {: :i. * :i3

* 8 * } 8 * * 8 { . *

cs-03P/s2 2,000

Page 13: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I Yr) / BCA

Term-End Practical Examination

Decembet, 2006

CS-03 : FILE STRUCTURE AND PROGRAMMING lN COBOL

T i m e a l l o w e d : 2 h o u r s Maximum Marks ; 100

(Weishtage 15%)

General Instructions :

, (i) There are two compulsory questions in this paper of 40 msrks eqch. Rest

20 marks are lor uiuq-uoce.

(iil Test your programs by running them on 5 to 70 records or datq uqlues.

(iii) Print the programs rrnd the results, if possible, otherwise write partial input and

output on your answer script.

(iu) Make qnd state suitable assumptions, if any.

l. A file contains the following data about the applicants for the post of soldier. 40

NAME PIC X(25)

AGE PIC X(2)

HETGHT PrC X(3)

WEIGHT PIC X(3)

. Write a COBOL program to sort the file as per ascending order of AGE. For applicants

having same age sort them again as per ascending HEIGHT.

2. A fieldname STRING contains 100 characters. Thecharacter (/)and(, )are usedto indicate

the end of a word and a statement respectively within these 100 characters. Write a COBOL

program to find the number of words and the number of statements in the STRING. 40

CS-O3P/S3 2,000

Page 14: Bca Pgdca Practical
Page 15: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I Yr) / BCA

Term-End Practical Examination

December, 2006

CS.O3 : FILE STRUCTURE AND PROGRAMMING IN COBOL

T i m e a l l o w e d : 2 h o u r s

General lnstructions :

(i) There are two compulsory questions in this paper of 40 marks each. Rest

20 mqrks are for uiua-voce.

(ii) Test your programs by running them on 5 to !0 records or data volues.

(iil Print the programs and the results, il possible, otherwise write partial input ond

output on Your answer scriPt.

(iu) Make and state suitable assumptions, if any.

l. Consider the following table :

AMOUNT.TABLE

AMOUNT PIC 9(6)V99

AMOUNT.CODE PIC X

AMOUNT-TYPE PIC X

Write a program to find the total of all the amounts of the table in the following manner'

. If the amount code is 1, the corresponding amount is to be considered positive'

. Else, the amount is to be considered negative.

Note : Make necessory ossurnp tions, il any.

Maximum Morks : 700

(Weishtage 750/o)

40

CS-O3P/S4P . T . O .

Page 16: Bca Pgdca Practical

2. Consider the following fields :

NAME Prc x(25)40

cs-03P/S41 ,000

Page 17: Bca Pgdca Practical

THROUGH 'C'AND PASCAL

PGDCA (Practicats) / MCA (I yr)

Term-End Practical Examination

flecembet, 2006

CS-04: DATA STRUCTURES

T i m e a l l o w e d : 2 h o u r sMaximum Marks ; 100

(Weightage 15%)

Nofe : There xre

uiua-uoce.

two quest ions in

Answer both the

this paper totalling 70 marks. Rest s0 mqrks are fo, thequesf ions.

1. Write a program in 'C' language for performing Binary Search.

2. Write a program in 'C' language to implement a Doubly Linked List.

35

35

cs-04P/s 1 3 ,000

Page 18: Bca Pgdca Practical
Page 19: Bca Pgdca Practical

PGDCA (Practicals) / McA (I Yt)Term-End Practical Examination

December, 2006

cs-04 : DATA srRUcruRES THRoucH 'c'AND pAscAL

T i m e a l l o w e d : 2 h o u r sMaximum Marks : 700

(Weightage 150/o)

Note t There are two questions in this pqper totalling 70 marks. Rest S0 marks are for theuiua-wce. Answer both the guestions.

l' write a program in 'c' language for murtiprication of two porynomiars. 40

2' Write a program in 'C' language that accepts 5 integers as input and sorts them in ascendingorder using Bubble Sort. S0

cs-04Ptsz2,000

Page 20: Bca Pgdca Practical

i: ni

Page 21: Bca Pgdca Practical

PGDCA (Practicals) / McA (I Yr)

Term-End Practical Examination

f)ecembet, 2A06

THROUGH 'C'AND PASCALCS-04: DATA STRUCTURES

T i m e a l l o w e d : 2 h o u r sMaximum Marks r 100

(Weishtage 754/o)

Note : There are

uiua-uoce.

two quest ions in

Answer both the

rhis psper totqlling

quest ions.

70 marks. Rest 30 marks sre fo' the

1. Write a Program in

Post order.

2. Write a program in 'C'

language that accepts a Binary Tree as input and traverses it in

language for the addition of two sparse matrices'

40

30

CS.04P/S31 ,000

Page 22: Bca Pgdca Practical

: r i '

Page 23: Bca Pgdca Practical

PGDCA (Practicals) / MCA (I Yr)Term-End Practical Examination

Decembet, 2006

CS-04: DATA

T imea l l owed :2hours Maximum Marks : 700

(Weightage 750/o)

Note: There are two questions in this paper totalling 70 marks. Rest 30 marks are for theuiua-uoce. Ansuer both the questions.

l- write a program in 'c' language for the imptementation of a circular eueue. 35

2- Write a program in 'C' language that accepts a file as input and counts the number of lines init' ss

STRUCTURES THROUGH 'C'AND PASCAL

cs-o4P/s4 1 , O O O

Page 24: Bca Pgdca Practical

) i l

Page 25: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)Term-End Practical Examination

December, 2A06

cS-611 : COMPUTER FUNDAMENTALS ANDPC SOFTWARE

T i m e s l l o w e d : 2 h o u r s Mqximum Marks : 700

(Weightase 15%)

General Instructions :

(i) There are four questions (20 marks each) in this paper totalling 80 marks. Rest20 msrks are for uiuq-uoce.

(ii) Test the macras created by you (whereuer needed).

(iil write all the steps which you haue performed in your answer-script.

(iu) Print the files, iJ required and possible, otherwise write partial data input and outputin your answer-script.

(u) Mqke suitable assumptions, if any.

l' (a) Create letter-head of a sports company with its name, address, phone no. at top andintroduce companies product base line at the bottom. You are supposed to use headersand footers in the creation of the said document.

(b) Using the created letter-head, write a letter to the General Manager of the company aboutthe growth achieved by the company in 2006 _ 07 .

(c) Insert a hyperlink "Steps of Growth" in the letter, such that clicking on it the GeneralManager can view the powerpoint presentation explaining stepwise growth.

(d) Insert a clip-art into the letter-head created above, such that it serves the purpose ofcompany logo.

(e) At the end of the letter-head created above, insert a table to compare the sale of productsof the company in the current year with the sale of the past year. 20

CS-61 1 P /S 1 P . T . O .

Page 26: Bca Pgdca Practical

2. (i) Create a Powerpoint presentation of the sports company such that the slides express the

products' information, figures, growth charts and sales comparison (yearwise) of products

produced by the company. , 10

(b) Create a macro such that on pressing Ctrl+Alt+Tab a new letter-head is opened, with

name and address of the General,Manager of the cornpany (left aligned), Subject (centre

aligned) and Dear Sir (left aligned). 10

3. Create a data-file containing name, address, phone number of the clients of a sports company

and use Mailmerge feature to create the greeting letter for each of your clients using the data-file

created by you. 20

4. (a) Change home page to ignou.ac.in.

(b) Create a folder on desktop and make it shareable.

(c) Add a program to Start menu.

(d) Show Internet settings.

(e) Find free space in the hard disk. 20

C S - 6 1 1 P / S 1 5,000

Page 27: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

Decembet, 2006

CS-611 : COMPUTER FUNDAMENTALS ANDPC SOFTWARE

T i m e q l l o w e d : 2 h o u r s

General Instructions:

(il There are four questions (20 marks each) in this paper totalling 80 marks. Rest20 marks are lor uiua-uoce.

(ii) Test the macros created by you (whereuer needed).

(iil Write all the steps which you have pert'ormed in your answer-script.

(iu) Print the files, if required ond possible, otherwise write partial data input and outputin your answer-script.

(u) Make suitable ossumptions, if any.

Insert header in your document, write your name and roll number in it.

In the document created by you in 1(a), write a paragraph about Microsoft Office. Use

bullets marking to emphasise the softwares available in MS Office package.

At the end of the paragraph written in Lh), insert a table named MS Office with one

column for the softwares in MS Office and other column for the utility of respective

softwares. Choose suitable tabular format to display the information.

Insert a suitable clip-art into your document.

Using autoshapes draw the following figure exactly. You may use text boxes in your figure

to display the shown information. 20

Maximum Marks ; rcO

(Weishtage 150/0)

l. (a)

(b)

(c)

(d)

(e)

0 < 9 0 " 0 < 9 0 "

cs-61 1 P/S2 P . T . O .

Page 28: Bca Pgdca Practical

2. (a) Use autocorrect feature such that it expands the abbreviation I.G.N.O.U. whenever youuse it in your text.

(b) Create mirror images of odd and even pages.

(c) Create a Powerpoint presentation of 3 slides describing your name, roll no., address onone slide, exams cleared and exams not cleared on next two slides. Set slide transitiontime of 3 seconds and display your presentation.

(d) Write the equation ar*2 + brxl + cr = 0. 20

3. (a) Write a macro to rotate triangle in your document when Ctrl + # is pressed.

(b) Protect your document by adding password requirement for both, to open and to modify. 20

4. (a) Change wallpaper of your monitor.

(b) Find Internet settings.

(c) Set current time and date to 12.30 AM 31-72-2006.

(d) Change the screen resolution 20

cs-6 1 lPtS2 5,000

Page 29: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

Decembet, 2006

CS-611 : COMPUTER FUNDAMENTALS ANDPC SOFTWARE

Time al lowed : 2 hours Maximum Marks t 100

(Weightage 15%)

Genersl Instructions :

(i) There are four questions (20 morks each) in this poper totalling 80 marks' Rest

20 marks are for uiua'uoce.

(ii) Test the,macros created by you (whereuer needed)'

(iil write all the steps which you haue performed in your answer-script.

(iu) Print the files, if required ond possibl e, otherwise write partial data input and output

in your answer-scriPt'

(u) Make suitable assumpti,ons, if any.

1. (a) Demonstrate Word count utility to describe statistics of any Word document'

(b) Insert window split in your current MS Word document'

(c) Create a table in MS Word containing five students' Roll numbers in one column and their

marks in the other column. Now sort their mark by using Sort utility of MS Word'

(d) Insert date, time and page number on every page of your document'

(e). Customize the toolbar after resetting it. 20

2. Create a data file containing name, department, designation of at least 5 persons in different

companies. Write a letter to all of them using MS Word Mailmerge feature to inform that you

have cleared your examinations and now you want to do the project in their guidance' 20

CS.61 1 P/S3 P . T . O .

Page 30: Bca Pgdca Practical

3. (a) Using autoshapes and textboxes createl '

, . , 'figure shown below.

write name of course cs 6lr in capitalthe name to small letters.

Ietters and use utility "change case" to change

Change background colour of your Word document.

In word document write name of week days, repeatedry 2 times. Now useto replace "Sunday" with ,,holiday,,

at every place in the text.replace utility

that selects the current page and changes its font to Arial Black with size

(b)

(c)

(d)

4. (a)

(b)

Write a macroof 12 points.

(i) Write the formulu sr(t]) oc

20

1 0

(ii) Change default printer and

(iii) Interchange the functioning

[ ;) $*

make it available on network.

of mouse left click and right click. 1 0

CS-61 1 P/S33,000

Page 31: Bca Pgdca Practical

BACHELOR rN COMPUTER AppLrCATroNS (BCA)Term-End Practical Examination

flecembet, 2006

cS-611 : COMPUTER FUNDAMENTALS ANDPC SOFTWARE

T i m e a l l o w e d : 2 h o u r s Mqximum Mqrks : 100

(Weishtage 15%)

Genersl Instructions :

(i) There are t'our questions (20 marks each) in this paper totalling 80 marks. Rest20 marks are for uiuo-uoce.

(ii) Test the macros created by you (whereuer needed).

(iii) write all the steps which you have performed in your snswer-script.

(iu) Print the files, if required ond possibl e, otherwise write partial data input and outputin your answer-script.

(u) Make suitable assumptions, if any.

1' (a) Create a Word document having name of the game you like as a header. In this documentwrite a paragraph about the features of the game. Format this paragraph with doublespacing and 14 point size and Arial font.

(b) Insert a hyperlink at the end of your paragraph written in 1(a) such that it links yourdocument to a Powerpoint presentation with 3 slides. One slide should have your nameand roll number', next slide should have name of the players and last slide shows the word"Thank you" with suitable animation.

(c) Insert an appropriate clip-art in your document.

(d) Show the web page preview of the document created by you in e1 (a), (b), (c).

(e) Set all margins of document to 2.A,'. 20

CS-61 1 P/S4P . T . O .

Page 32: Bca Pgdca Practical

2. (a) Create a short-cut of an application and put it on the desktop'

(b) Show name of PC on which you are working.

(c) Show how to print 4 pages of your document on a single page'

(d) Change the screen saver of your PC and set its wait time to 1 minute.

1l

(e) Write the expression [ ,in2o ao.. J0

3. (a) Write a macro to print current page.

(b) Create a table with name of'player as one column and the sports s/he plays as second

column. Now add few more rows to the table and make few more entries. Also introduce

a new column named serial number to the table'

(c) Change the mouse double click speed.

(d) Find Internet settings.,

4. Createa data file containing name, address and contact number of your friends. Create a

greeting of New Year. Use Mailmerge feature to create the greeting letter for each of your

friends using the two files above.

20

20

20

CS-61 1 P/S4 3,000

Page 33: Bca Pgdca Practical

BACHELOR rN COMPUTER APPLTCATTONS (BCA)Term-End Practical Examination

Decembet, 2006

CS-62: 'C ' PROGRAMMING

T i m e a l l o w e d : 2 h o u r s

AND DATA STRUCTURE

Maximum Marks : 7a0

(Weishtage 150/0)

Note : There sre two questions in this paper totalling 70 marks. Rest 30 marks are t'oruiua-uoce. Answer both the auestions.

l. Write a program in 'C' 'language to generate fibonacci series.

2. Write a program in 'C' language to implement a queue.

30

40

C5-62P/S 1 5,000

Page 34: Bca Pgdca Practical
Page 35: Bca Pgdca Practical

ls ' * r l

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

December, 2006

CS-62 .'C'PROGRAMMING AND DATA STRUCTURE

T i m e a l l o w e d : 2 h o u r s Maximum Marks : 100

(Weishtage 750/o)

Note : There are two questions in this poper totalling 70 marks. Rest 30 marks are for

uiua-uoce. Answer both the guesfions.

1. Write a program in 'C' language for the addition to two matrices. 30

2. Write a program in 'C' language that accepts a file as input and prints its contents in reverse

order. That is, the last line in the file becomes the first line and vice-versa. 40

cs-6 2Pts2 4,000

Page 36: Bca Pgdca Practical
Page 37: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

December, ?OOG

CS-62 i'C' PROGRAMMING AND DATA STRUCTURE

T i m e a l l o w e d : 2 h o u r s Maximum Marks : 100

(Weightage 750/o)

Note : There are two questions in this paper totalling 70 msrks. Rest 30 marks are for

vius-uoce. Answer both the questions.

1. Write a program in 'C' language to evaluate expressions which consist of '+' and '-' operators. 30

2. Write a program in 'C' language to reverse the elements of a singly linked list. That is, the last

node of the singly linked list becomes first node etc' 40

1CS.62P lS3 3 ,000

Page 38: Bca Pgdca Practical
Page 39: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

Decemb et, 2006

CS=62 i'C' PROGRAMMING AND DATA STRUCTURE

T i m e a l l o w e d : 2 h o u r s Maximum Morks : 700

(Weishtage 750/o)

Note: There are two questions in this paper totalling 70 marks' Rest 30 mqrks are for

uiua-voce. Answer both the questions.

l. Write a program in 'C' language that accepts two files as input and appends the contents of35second file to the first file.

2. Write a program in 'C' language that accepts a Binary Tree as, input and counts the numtier

of leaves in it. 35

CS-62PIS4 3,000

Page 40: Bca Pgdca Practical
Page 41: Bca Pgdca Practical

BACHELOR rN COMPUTER APPLTCATTONS (BCA)

Term-End Practical Examination

December, 2006

CS-63 : INTRODUCTION TO SYSTEM SOFTWARE

T i m e a l l o w e d : 2 h o u r s Maximum Marks : 100

(Weishtage 15%)

Note : There are 2 questions in this paper. Answer them all. They corry 70 msrks. The rest

30 marks sre for the uiua-uoce.

l. Write a shell script to append the contents of any 3 text files whose file names are given as

command arguments. 30

2. List and execute the following commands : 4x70:40

(a) To select the lines that have only one hexadecimal number. The line should not have any

other character.

(b) To print the absolute pathname of the file.

(c) To set read, write and execute permissions for the user and remove the write permissions

for the group and others for any file.

(d) To kill any process using PID.

CS-63P IS 1 5 ,000

Page 42: Bca Pgdca Practical
Page 43: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

Decembet, ?OOG

CS-63 : INTRODUCTIONTO SYSTEM SOFTWARE

Time al lowed: 2 hours Ma:ximum Marks : 700

(Weightage 750/0)

Note : There are

30 marks

3 quesfions in this paqer.

ere fo, the uiua-uoce.

Answer them all. They carry 70 msrks. The rest

1. Write a shell program to translate all the upper case letters to lower case of any given text file' 30

and deletes the files which have the same2. Write a shell script that accepts two directory names

filenames and extension names.

3. List and execute the following commands :

(a) List the lines that differ between any two given files.

(b) Change the owner for a given file.

20

1 0

1 0

cs-63P/S2 4,000

Page 44: Bca Pgdca Practical
Page 45: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

December, 2006

CS-63 : INTRODUCTION TO SYSTEM SOFTWARE

T i m e q l l o w e d : 2 h o u r s

Note : There are 3 questions in this paper. Answer them all. They carry 7a marhs. The rest

30 marks' are t'or the uiua-voce.

1. Write a shell program to encrypt a given text file using a logic of your choice.

2. Write a shell script to echo the length of the string given as an argument.

3. List and execute the following commands :

(a) To display the total disk space used by files and directories.

(b) To display the current directory.

(c) To remove an existing directory.

(d) To summarize the free space on the disk

Maximum Marks ; 100

(Weightage 15%)

25

25

4x5=20

CS-63P/S3 1 3,000

Page 46: Bca Pgdca Practical
Page 47: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

December, ?OOG

CS-63 : INTRODUCTION TO SYSTEM SOFTWARE

T i m e a l l o w e d : 2 h o u r s

Note; There are 3 guestions in this paper. Answer them all. They carry 70 marks. The rest

30 marks are for the viua'uoce

1. Write a shell progmm to count the following in a text file :

(a) Number of blank spaces

(b) Number of lines

(c) Number of symbols

2. Write a shell script to implement the DISKCOPY command of DOS.

Maximum Morks : 700

(Weishtage 150/o)

20

20

3. List and execute the following commands : 3xl0=30

(a) To display all the users logged on to the system.

(b) To select the lines in a file that have one or more blank spaces'

(c) To display the number of times the alphabet "t" appeared in a text file.

cs-63P/S4 1 2,000

Page 48: Bca Pgdca Practical
Page 49: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)Term-End Practical Examination

Decembet, 2006

CS-65: WINDOWS PROGRAMMTNG

T i m e a l l o w e d : 2 h o u r s Maximum Marks : 75

Note : There are 2 questions in fhis paper. Answer both the questions. They carry S0 marks.The rest 25 marks are for the uiuq-uoce.

t ' Simulate a simple polling application and draw the results basing upon the votes gained by theindividual candidates. Assumptions can be made wherever necessary. 2s

2' Write a VB program to count the number of characters in a given string. The string is to beended by placing a " /" by the user. 25

CS-65P/S 1 5,000

Page 50: Bca Pgdca Practical
Page 51: Bca Pgdca Practical

BACHELOR rN COMPUTER APPLTCATTONS (BCA)

Term-End Practical Examination

Decembet, 2006

CS-65 : WINDOWS PROGRAMMING

Time al lowed: 2 hours Maximum Marks : 75

Note : There are 2 questions in fhis paper. Answer both the questions. They carry 50 marks.The rest 25 marks are for the viua-uoce.

l. Design a simple application to generate electricity-bill. The fotm should accept the previous

reading, present reading, either domestic household or commercial purpose etc. and should

display the amount to be paid. Interface should also display the time, date, printed by,

connection number, address, dues if any etc. along with the amount. Assumptions can be made

wherever necessary. 40

2. Design a splash-screen for the above application. 1 0

cs-65P/S2 5,000

Page 52: Bca Pgdca Practical
Page 53: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

Decembet, ?OOG

CS-65: WINDOWS PROGRAMMING

T i m e a l l o w e d : 2 h o u r s Maximum Marks : 75

Note : There are 2 questions in this paper. Answer both the questions. They carry 50 marks.

The rest 25 marks are t'or the uiva-uoce.

1. Design a simple application to display the hall-ticket. The basis for this is user enters the details

in the form of an examination application form. Assumptions can be made wherever necessary. 30

2. Write a program in VB to count the number of words in a given sentence, if the sentence is

ended with a "." (period). 20

C5.65P/S3 3,000

Page 54: Bca Pgdca Practical
Page 55: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

December, zOOb

CS-65 : WINDOWS PROGRAMMING

T imea l l owed t2hou rs Maximum Marks : 75

Note : There are 2 questions in fhis psper. Answer both the questions. They corry 50 marks.

The rest 25 marks are for the uiua-uoce.

1. Design a simple application to generate a bill for the car-service centre, wherein the user at

the centre will input the details of the car, accessories purchased, spare-parts used, insurance

coverage, mechanic charges etc. The bill should also contain the details like time, date,

mechanic (person) who handled the service, delivery time, etc. Assumptions can be made

40wherever necessary.

2. Design a splash screen for the above application. 1 0

CS-6 5 P/S4 2,000

Page 56: Bca Pgdca Practical
Page 57: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)Term-End Practical Examination

Decembet, ?OOG

CS-67 : RDBIVIS LAB

T i m e a l l o w e d : 2 h o u r s, Maximum Marks : 75

Note : There is one compulsory question in this paper carrying S0 marks. 25 marks arefor uiua-uoce.

l' A regional centre wants to do monitoring of study centres. For this purpose a database has tonbe designed for the following :

tres, names of study centre coordinators.

(ii) Programwise enrorment status at the various centres.

(iii) Programwise performance of students at the various centres.

(iv) Information about faculties qualification.

(v) Fee submission status (study centrewise).

tvi) Assignment.submission status.

Do the following tasks. (Make and justify suitable assumptions, if any) :

(a) Design and implement the-normalized database tables for the requirements listed above.You must implement the keys, validation checks and constraints including referentialconstraints' Enter 5 sets of meaningful data in each of the tabres.

(b) Design and implement suitable querieforms /reports for (i) to (vi) above.

5 ,000

24

26

cs-67P/S 1

Page 58: Bca Pgdca Practical
Page 59: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)Term-End Practical Examination

Decembet, 2006

CS-67: RDBMS LAB

T i m e a l l o w e d : 2 h o u r sMaximum Marks : 75

Nofe : There is one

fo, uiua-uoce.

compulsory question in this paper carrying s0 marks. 2s mqrks are

L. A bank wants to maintain informationinformation for the database :

about their credit card holders. It creates the following

(i) Details of credit card holders (name, dg€, designation, address).

(ii) Monthwise details of money withdrawal by card holders.

(iii) Monthwise details of purchasing of items.

(iv) Date of renewal of card.

(v) Preparation of monthly statements.

Do the following (Make and state suitable assumptions, if any) :

(a) Design and implement the normalized database tables for the requirements listed above.You must implement the key, validation checks and constraints including referentialconstraints. Enter 5 sets of meaningful data in each of the iables. .

(b) Design and irnplement suitable queriesforms/reports for (i) to (v) above.

25

25

cs- 67PtS24,000

Page 60: Bca Pgdca Practical
Page 61: Bca Pgdca Practical

BACHELOR rN COMPUTER APPLTCATTONS (BCA)

Term-End Practical Examination

Decembet, ?OOG

CS-67 : RDBMS LAB

T i m e s l l o w e d : 2 h o u r s Maximum Mqrks ; 75

Note: There is one compulsory question in this paper carrying 50 marks. 25 marks are

for uiua-uoce.

l. A regional passport office in Delhi wants to keep records of application forms received,

dispatched, pending, rejected and generate different types of reports accordingly. Applicants

may be in different categories : children, adults, students, professionals, government employees

and diplomats. Diplomats should be issued passports on high priority.

Do the following activities for the above.

(i) Design and implement the suitable normalized database tables considering the aboverequirements. You are also required to perform integrity checks and show the relationshipamong tables and key attributes (foreign key). 25

(ii) Design and implement suitable querieslorms for the above problem statement. 25

CS.67PlS3. , 3 ,000

Page 62: Bca Pgdca Practical
Page 63: Bca Pgdca Practical

BACHELOR rN COMPUTER APPLTCATIONS (BCA)

Term-End Practical Examination

Decembet, ?OOG

CS-67 : RDBMS LAB

T i m e a l l o w e d : 2 h o u r s Maximum Marks : 75

Note: There is one compulsory question in this paper carrying 50 marks. 25 marks are

Jor uiua-voce.

l. The university wants to keep records of students who have taken admission in the variousprogrammes. through online mode and generate different types of reports. The university also

wants to keep records of availability of bandwidth, computers and the required s/w to access

ihe online resources by students. There are different categories of programs : Certificate,

Diploma, Graduate and Post-graduate programs. Students joining the program could be

working, non-working, foreigners etc.

Do ihe following steps for the above problem statement.

(a) Design and implement relationslables considering the requirements as given above. Your

design should have normalized tables, integrity checks, relationship among tables and

key/foreign key attributes. 25

(b) Design and implement suitable queries,ftorms/reports for the problems mentioned above. 25

cs- 67P ts4 2 , 0 0 0 ,

Page 64: Bca Pgdca Practical
Page 65: Bca Pgdca Practical

I sE-f

Decembet, 2OOG

cs -72: G++ AND oBJEcT OR|ENTED

T i m e a l l o w e d : 2 h o u r s Maximum Marks : 700(Weishtage 150/o)

General Instructions :

(i) There are two compulsory questions in this paper of 40 marks each, Rest 20 marksare for uiua-uoce.

(ii) You must write the appropriate main( ) t'unction and test your programs.(iii) write / print the programs, input and resulits on your answer-script.(iu) Make and state suitable assumptions, if any.

l. Write a program in C++ which has

(a) The overloaded '+' add, which adds two affays erement wise.(b) The overloaded '-' subtract, which subtracts two arrays element wise, the right operand

from the left.

(c) The overloaded '=:' equal, which returns TRUE if each element of both arrays (eachoperand) is same, otherwise returns FAI-SE.

2. Degign and implement the following class hierarchy using C++ : 40Book

Science

Ancient Medieval Modern Indian Foreign Biology Chemistry Physics

You must include the following in your implementation :. Member variables for the classes.

. At least one constructor for each class and destructor, if needed.o I polymorphic member function that prints details of the Books.

CS-72P/S1 1

BACHELOR IN COMPUTER APPTICATIONS (BCA)Term-End Practical Examination

PROGRAMMING

40

History Literafure

5 ,000

Page 66: Bca Pgdca Practical
Page 67: Bca Pgdca Practical

BACHELOR IN COMPUTER APPLICATIONS (BCA)Term-End Practical Examination

Decembet, 2006

CS-72: G++

T i m e a l l o w e d : 2 h o u r s

AND OBJECT ORIENTEDPROGRAMMING

Maximum Marks : 700(Weishtage 1S%)

General

(i)

Instructions :

There are two compulsory questions in this paper ol 40 marks each. Rest 20 marksare for uiua-uoce.(ii) You must write the qppropriate main( ) function and(iii) Write / print the progrqffis, input snd results on your(iu) Make and state suitqble ossum ptions, if qny.

test your progrqms,

snswer-script.

l' Design and implement a class called "stopwatch" that emulates a stopwatch that keeps trackof elapsed time' use a constructor to initially set the elapsed time to zero. provide two memberfunctions called start( ) and stop( ) that tum on and off the timer, respectively. Also, include amember function that displays the elapsed time,

2. Design and implement the following class hierarchy using C++ :Living Things

r l - lI

Animal Bird plant

Mammal

Egg laying

You must include the following in your implementation :. Member variables for the classes

o At least one constructor of each class and destructor, if needed.o A polymorphic member function that prints information about the

40

40

Reptile

CS-7 2P I32

Living Things.

4,000

Page 68: Bca Pgdca Practical
Page 69: Bca Pgdca Practical

BACHELOR rN COMPUTER APPLTCATTONS (BCA)

Term-End Practical Examination

December, 2006

CS-72 : C++ AND OBJECT ORIENTED PROGRAMMING

T i m e s l l o w e d t 2 h o u r s Maximum Marks : 100

(Weishtage 15%)

Genersl Instructions :

(i) There qre two compulsory questions in fhis paper of 40 marks eqch. Rest 20 msrks

. are for uiua-uoce.

(ii) You must write the'appropriate main( ) function rrnd test your p,rograms,

(iii) Write / print the programs, input qnd results on your answer-script.

(iu) Mqke and stqte suitable assumptions, if any.

l. Design and implement a class Circular list. Write a C++ program that splits a circular linked

list into two separate circular linked lists. Each node in circular linked list should have two

fields : 40

o Data field having integer value.

o Pointer field having pointer to next node.

2. A university has two types of students : hostelers and day-scholars. The hostelers stay in a hostel

but pay hostel rent along with hhe fee, the day-scholars only pay the fee. The student may

register for one programme. The fee of one programme is different from others. 40

. Design and implement suitable class hierarchies for student class.

o Write necessary constructs and write the polymorphic function for printing the totalpayment due for a student.

. Write appropriate functions for the above design.

Note : Make suitable assumptions, if necessary.

CS-7 2P IS3 2 ,000

Page 70: Bca Pgdca Practical
Page 71: Bca Pgdca Practical

t- sEr4l

BACHELOR IN COMPUTER APPLICATIONS (BCA)

Term-End Practical Examination

December, 2006

CS-72: C++ AND OBJECT ORIENTED PROGRAMMING

T i m e a l l o w e d : 2 h o u r s

Genersl Instructions :

(i) There are two compulsory questions in this paper of 40 marks each, Rest 20 marks

are for uiua-uoce.

(i't You must write the appropriate main( ) function and test your progrsms.

(iil write / print the programs, input ond results on your answer-script.

(iu) Make and state suitsble assumptions, if any'

1. Design and implement a class matrix of size m x n (m > n). Write a program in C++ to find

whether the input matrix is a symmetric matrix or not'

Note : symmetric matrix is a matrix, urhich is equal to its transpose.

(lf matrix A is an m x n order then after transposing it, we will get an n x m matrix')

2. A university has two types of students : Full-timer and part-timer. A full-timer student can

register for maximum of four courses per semester, while a part-timer is allowed only for one

. course per semester.

. Design and implernent the suitable class hierarchy for the student, with suitable constructs

and input/output functions.

o Write a polymorphic function registration that allows the student to register a course'

given the above constraints.

Note : Make suitqble assumptions, if necessory.

Maximum Marks ; 100

(Weishtage 15%)

40

40

cs-7 2P ls4 2 ,000

Page 72: Bca Pgdca Practical