37
A2-R3: BUSINESS SYSTEMS January 2006 July 2003 July 2005 January 2004 January 2006 TOTAL TIME: 3 HOURS TOTAL MARKS: 100 (PART ONE-40; PART TWO – 60) PART ONE (Answer all the questions) 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10) 1.1 Which one of the following is not a liability? A) Investments B) Secured loans C) Share capital D) Reserves and surplus 1.2 When information flows from one department to another department, it is termed as: A) Vertical flow B) Parallel flow C) Horizontal flow D) Departmental flow 1.3 In executing a computer program ‘subtraction’ has been performed in place of addition erroneously. The error may be called. A) Syntax error B) Arithmetic error C) Error of commission D) Logic error 1.4 Identify the invalid field name out of the following: A) “RS.53.89” B) “CURRENCY” C) PQR 32 D) “32 PQR”

A2-R3

Embed Size (px)

Citation preview

Page 1: A2-R3

A2-R3: BUSINESS SYSTEMS

January 2006 July 2003

July 2005

January 2004

January 2006 TOTAL TIME: 3 HOURS TOTAL MARKS: 100

(PART ONE-40; PART TWO – 60)

PART ONE (Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate

one and enter in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

1.1 Which one of the following is not a liability? A) Investments B) Secured loans C) Share capital D) Reserves and surplus 1.2 When information flows from one department to another department, it is termed as: A) Vertical flow B) Parallel flow C) Horizontal flow D) Departmental flow 1.3 In executing a computer program ‘subtraction’ has been performed in place of addition

erroneously. The error may be called. A) Syntax error B) Arithmetic error C) Error of commission D) Logic error 1.4 Identify the invalid field name out of the following: A) “RS.53.89” B) “CURRENCY” C) PQR 32 D) “32 PQR”

Page 2: A2-R3

1.5 Which of the following statements is false? A) FIND and SEEK commands need Index file. B) CONTINUE cannot be used to find the next matching record after using FIND/SEEK. C) Contents of a variable can be searched with FIND and SEEK commands. D) None of the above. 1.6 If SENT is a logical field in a database file, which of the following is a valid command? A) DISPLAY FOR SENT = “T” B) DISPLAY FOR SENT = “.T.” C) DISPLAY FOR SENT D) DISPLAY FOR SENT = T 1.7 The command used to add a new field to an active database file is A) MODIFY LABEL B) MODIFY COMMAND C) MODIFY STRUCTURE D) MODIFY REPORT 1.8 Payroll is integrated with financial accounts through A) A month and journal voucher B) On-line updation C) Maintaining each employees record in a subsidiary ledger D) All of the above 1.9 The command used to change the contents of a database file using contents of another file

by linking them on a common key field is A) REPLACE B) UPDATE C) CHANGE D) JOIN 1.10 If AGE and SALARY are numeric field in a database file, which one of the following

commands is correct? A) REPLACE ALL AGE WITH AGE + 1 FOR AGE < 20 B) REPLACE ALL AGE WITH AGE + 1 WHILE AGE > 20 C) REPLACE AGE WITH AGE + 1 FOR AGE < 20 ALL D) All of the above

Page 3: A2-R3

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the “tear-off” sheet attached to the question paper, following instructions therein. (1 x 10)

2.1 In double entry book keeping system, it is not necessary that debit equal credit.

2.2 Managing Director of a Private Limited Company is the owner of the company

2.3 In software development life cycle the coding phase will precede design phase.

2.4 The computer can execute the source program and not the object program.

2.5 The REINDEX command automatically re-indexes all open index files for the database file open in the current work area.

2.6 When a database file ABC.dbf is opened its index file ABC.cdx is open automatically.

2.7 CLOSE ALL closes all files in all work areas.

2.8 LOCK( ) and FLOCK( ) are identical functions.

2.9 IF – ENDIF cannot be used within DO CASE - ENDCASE

2.10 BOF( ) returns true when the record pointer is at the first record. 3. Match words and phrases in column X with the closest related meaning/

word(s)/phrases in column Y. Enter your selection in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

X Y

3.1 EOQ A. Programming aid

3.2 Pseudo code B. Also copies index file

3.3 SET FILTER C. ACCEPT / SPACE

3.4 WITH CDX D. Executes a DOS program

3.5 Current Assets E. Creditors Analysis

3.6 Creates Character Variable F. Flow Chart

3.7 RUN G. Financial Accounts

3.8 Purchase bills H. Inventory Management System

3.9 Diamong I. TIME OUT

3.10 Used with WAIT WINDOW J. Restricts number of records with commands

K. Timely supply

L. Dead Lock

Page 4: A2-R3

4. Each statement below has blank space to fit one of the word(s) or phrases in the list below. Enter your choice in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

A. CONFIG.FPW B. SET SKIP TO C. Cost

D. Character E. ALL TRIM( ) F. Centralized

G. Left & Right parenthesis H. Set function I. Balance Sheet

J. ABC Analysis K. A replica L. config.sys

4.1 Computerized Railway reservation system is an example of _________ data processing

system.

4.2 After every year the accountant merges the profit and loss of operations with _________.

4.3 _________ is a method where high value and bulk items are monitored for effective control

of materials.

4.4 Where as Foxpro for DOS uses CONFIG.FP as the configuration file, Foxpro for Windows

uses the _________ file.

4.5 The _________ command clears the one-to-many relationship.

4.6 Inventory included in the _________ of the item.

4.7 The REPLICATE( ) function repeats a specified _________ expression.

4.8 Pay image file is _________ of Pay slip.

4.9 The _________ function removes leading and trailing blanks from a character expression.

4.10 The delimiters used to delimit subscripts, indexes, and conditions for arithmetic expressions

are _________.

PART TWO

Page 5: A2-R3

(Answer any FOUR questions) 5. a) What are the main problems that can arise in capturing raw data for use within a computer

system? b) Why is data validation necessary? What are the different types of data validation checks that

are kept in a programme? c) Distinguish between structure programming and modular programming.

(5+5+5) 6. a) How information is stored by FoxPro? b) How does indexing works? c) What is the relational database system? Explain with example.

(5+5+5) 7. a) What are the three commonly used file organizations in business data processing? Describe

any one-file organization. b) Explain Query designer and multiple tables.

(10+5) 8. The database table called PERSON contains the fields NAME, BASIC and HRA. Write a set

of commands to print a report with employee name and total salary for those employees whose total salary is more than 2000. Total salary = BASIC + HRA. At the end, the program should also print the total number of employees with those whose total salary is more than 2000.

(15) 9. a) What do you understand by Object Linking and Embedding? b) Describe computerized Inventory Control System.

Page 6: A2-R3

July-2003

A2-R3: BUSINESS SYSTEMS

TOTAL TIME: 3 HOURS TOTAL MARKS: 100

(PART ONE-40; PART TWO – 60)

PART ONE (Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate

one and enter in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

1.1 Using Visual FoxPro, the number of table that we can use simultaneously is: A) 225

B) 205 C) 255 D) 252

1.2 The Windows element in Visual FoxPro are:

A) Application Window B) Project Manager Window C) Command Window D) All of the above

1.3 One of the following is not true for the Status Bar of a Visual FoxPro Window

A) This bar is placed at the bottom of the application window B) It provides the details of the currently open window C) An active window will make the colour of the status bar to change to dark D) Information like OVR, NUM, Caps etc. is displayed on the Status Bar

1.4 Which one of the following is not true for the Memo data type in Visual FoxPro?

A) Memo fields act as variable-length character fields. B) The limit to the length of the Memo field is 254 characters C) Memo data type can hold scanned images and digitized sound D) You can manipulate this data type by using any of the functions that manipulate

Character fields 1.5 In an Accountant’s system, collection of all money on temporary and permanent accounts is

maintained in the A) Cash journal

B) General ledger C) Accounts payable component D) Double entry balance system

Page 7: A2-R3

1.6 Which one of the following is a valid SQL command: A) SELECT Emplist.Iname, Emplist.fname, Wages.date, Wages,wage; FROM Wages, Emplist; WHERE Wages.empno = Emplist.empno B) SELECT Emplist.Iname, Emplist.fname, Wages.date, Wages.wage FROM Wages, Emplist WHERE Wages.empno = Emplist.empno C) SELECT Emplist.Iname, Emplist.fname, Wages.date, Wages.wage, FROM Wages, Emplist, WHERE Wages.empno = Emplist.empno D) SELECT Emplist.Iname Emplist.fname Wages.date Wages.wage, FROM Wages Emplist; WHERE Wages.empno = Emplist.empno

1.7 In a program, if you desire to exit unconditionally out of SCAN – ENDSCAN loop, you will

use the following command: A) RETURN B) LOOP C) SKIP D) EXIT

1.8 Visual FoxPro lets you use floating toolbars to work with Reports. They are:

A) Report Control toolbar B) Layout toolbar C) Color Palette D) All of the above

1.9 Consider the following expression A=”11/08/03” B=SUBSTR(A,7,2) ? B What is the value of B?

A) 11/08/ B) /08/03 C) 03 D) 08

1.10 Consider the following code: Status = IFF(debit>=credit, “Amount due”, “Credit”) The above code is equivalent to:

A) IF debit>=credit Status = “Amount due”

Page 8: A2-R3

ELSE Status = “Credit” ENDIF B) IF debit>=credit Status = “Credit” ELSE Status = “Amount due” ENDIF C) Both A) and B) above are correct D) There is no equivalence of the code listed in the problem.

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and

ENTER in the “tear-off” sheet attached to the question paper, following instructions therein. (1 x 10)

2.1 While deciding on the media for Real Time Systems, you will ensure that it is a magnetic

tape based system.

2.2 A suspense account is a one, which are to be used for unforeseen expenses during the financial year.

2.3 In ABC Analysis, we classify items, which are small in numbers but contribute maximally into C category.

2.4 On the liability side of the balance sheet, you will normally keep the Reserves and the Surpluses.

2.5 In a double entry book keeping system, it is not necessary that debits equal credits.

2.6 ?? will display the contents of a field, memory variable or a result of a mathematical equation at the beginning of a new line.

2.7 UNIQUE command can be used to prevent the display or access of the duplicate records.

2.8 You can modify the structure of an existing table using the MODIFY TABLE command.

2.9 In Visual FoxPro, indexing can be done on multiple fields of different types.

2.10 Balance Sheet shows the company’s health at an instant while Profit and Loss Account shows the company’s performance over a period of time.

3. Match words and phrases in column X with the closest related meaning/

word(s)/phrases in column Y. Enter your selection in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

X Y

3.1 Inventory valuation A. The SELECT command

3.2 Loan to employees is recorded in B. Uses data from an existing database file as the basis for changes to data records in the active database file

Page 9: A2-R3

3.3 Skills Inventory C. Working capital

3.4 Hash totals D. Subsidiary Ledger

3.5 Current assets E. Personnel Systems

3.6 Selects a work area F. It is used to remove the trailing blanks from a character string.

3.7 SET RELATION G. Causes an active database file to appear to contain only the records meeting the specified condition.

3.8 TRIM( ) H. Validation

3.9 UPDATE I. Links the active database file to another open database file according to key expression that is common to both files.

3.10 SET FILTER J. LIFO

K. Random access

L. Low Inventory Storage

M. Payroll Systems

N. SKIP

4. Each statement below has blank space to fit one of the word(s) or phrases in the list

below. Enter your choice in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

A. Record key B. Buffer stocks

C. Trial balance D. Subsidiary ledger

E. Pseudocode F. Loop

G. ABC Analysis H. Utility programs

I. Top down J. Testing

Page 10: A2-R3

K. Dummy L. Transaction

M. Books of accounts N. Balance sheet

4.1 In a _______ approach, the main program is decomposed into progressively lower level modules.

4.2 At the end of every year the accountant carries the balance of Profit and Loss Account to _______.

4.3 A(n) _______ is a listing of the ledger of accounts, along with their net dibit or credit balances.

4.4 The process of executing the developed programs with various data inputs in order to detect programming errors or an omission is called as _______.

4.5 An unique identifying value that is found in every record in a file is called as a _______.

4.6 Purchases from vendors form part of the _______.

4.7 Variations in demand of a product are taken care by carrying _______.

4.8 _______ is a programming term used to represent a set of instructions in a programme, which is to be repeated.

4.9 the _______ shows classification of various stock items on the basis of their values.

4.10 A term that describes program segments written in ordinary language, rather than in a programming language is _______.

PART TWO (Answer ALL questions)

5. Answer any five of the following in not more than 100 words: a) Visual FoxPro permits four different types of indexes. Describe in brief about each one of

them. b) Write the steps to the change the structure of an existing table in Visual FoxPro. c) Write the steps that you will take to create multiple key index using the Table Designer dialog

box. d) Explain with an example the use of a Macro (&) command.

(5 x 3)

Page 11: A2-R3

6. Answer any three from the following: a) Visual FoxPro has some built in date functions by which you can do any date-oriented tasks.

Describe any five of them in the following tabular format:

Date Function Meaning of the Date Function Format in which you will use

b) The subscribers’ details of a magazine are maintained in a database. The fields are

Subscriber number, Subscriber name, Address (three fields) and Expiry Date (Month and Year in the form MM/YY). Write a command module to accept month and year through terminal and printout names and addresses of all subscribers whose subscriptions are expiring in the next month. The printing should be done in such a way that the name and address could be used as an address sticker.

c) Consider the following library database.

Field Name Description Type Width

TITLE Book Name Character 50

AUTHOR Name of author Character 30

CLASS Number of book Character 10

DETAIL Details of the book Memo 10

STOCK Quantity in stock Numeric 3

ISSUED Quantity issued Numeric 3

Write procedures that will handle the following queries on such a database: i) A query enquiring whether a particular book is available. ii) A query enquiring about the books written by an author. iii) A query enquiring about books of the same name but by different authors.

d) The names of persons are available in a database split into three fields: FIRSTNAME, MIDNAME AND LASTNAME. It is desired that names of the persons be printed in alphabetical order of LASTNAME. It is

however found that some records have blanks in the field LASTNAME. In such cases the MIDNAME should be taken as LASTNAME.

Write a program in Visual FoxPro to print it as directed. (5 x 3)

7. A credit card company maintains the records of its customers in a table named

CUSTOMER.DBF. The structure of the table is give below:

Field Name Type Width Dec Remarks

CUST_NO Char 5 Customer Number

C_FNAME Char 10 Customer's First Name

C_MNA ME Char 10 Customer's Middle Name

C_SNAME Char 10 Customer's Surname

C_ADRS Char 10 Customer's Address

C_PHONE Char 10 Customer's Phone Number

Page 12: A2-R3

AMT_DUE Char 9 2 Amount Due

AMT_DEP Char 7 2 Amount Deposited

AMT_WITH Char 7 2 Amount Withdrawn

DATE Char 8 Date of transaction

D_DATE Char 8 Due Date

M_DATE Char 9 Maturity Date

Write a program in Visual FoxPro for the company to find the information about any existing customer by entering the customer number with proper windowing facility.

(15) 8. In a Payroll system, you are provided with Employee number, employee name, Department,

Designation, City which is either a Metro or an Non-Metro and Basic pay. Write a Visual FoxPro program to read this file, calculate allowances and total salary as follows:

a) Dearness allowance (DA)– Up to Rs. 3500 110% of basic pay

Above Rs. 3500 90% of basic pay subject to minimum of Rs. 3850 and a maximum of Rs. 6300

b) House Rent allowance (HRA) is 15% of the basic pay subject to a maximum of Rs.800. c) If City is Metro, City Compensatory Allowance (CCA) = 800 else if it is non-Metro, City

Compensatory Allowance (CCA) = 600 d) Provident fund PF) is 12% of the basic pay. e) Total salary=Basic Pay+Dearness Allowance+House Rent Allowance+CCA– PF Each payslip printed should contain all information of input record, all allowances, deductions

and total salary for each employee. (15)

Page 13: A2-R3

A2-R3 Page 13 of 7 JULY, 2003

January 2004

A2-R3: BUSINESS SYSTEMS TOTAL TIME: 3 HOURS TOTAL MARKS: 100

(PART ONE-40; PART TWO – 60)

PART ONE (Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate

one and enter in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

1.1 Using Visual FoxPro, the number of table that we can use simultaneously is: A) 225

B) 205 C) 255 D) 252

1.2 The Windows element in Visual FoxPro are:

A) Application Window B) Project Manager Window C) Command Window D) All of the above

1.3 One of the following is not true for the Status Bar of a Visual FoxPro Window

A) This bar is placed at the bottom of the application window B) It provides the details of the currently open window C) An active window will make the colour of the status bar to change to dark D) Information like OVR, NUM, Caps etc. is displayed on the Status Bar

1.4 Which one of the following is not true for the Memo data type in Visual FoxPro?

A) Memo fields act as variable-length character fields. B) The limit to the length of the Memo field is 254 characters C) Memo data type can hold scanned images and digitized sound D) You can manipulate this data type by using any of the functions that manipulate

Character fields 1.5 In an Accountant’s system, collection of all money on temporary and permanent accounts is

maintained in the A) Cash journal

B) General ledger C) Accounts payable component D) Double entry balance system

1.6 Which one of the following is a valid SQL command:

Page 14: A2-R3

A2-R3 Page 14 of 7 JULY, 2003

A) SELECT Emplist.Iname, Emplist.fname, Wages.date, Wages,wage; FROM Wages, Emplist; WHERE Wages.empno = Emplist.empno B) SELECT Emplist.Iname, Emplist.fname, Wages.date, Wages.wage FROM Wages, Emplist WHERE Wages.empno = Emplist.empno C) SELECT Emplist.Iname, Emplist.fname, Wages.date, Wages.wage, FROM Wages, Emplist, WHERE Wages.empno = Emplist.empno D) SELECT Emplist.Iname Emplist.fname Wages.date Wages.wage, FROM Wages Emplist; WHERE Wages.empno = Emplist.empno

1.7 In a program, if you desire to exit unconditionally out of SCAN – ENDSCAN loop, you will

use the following command: A) RETURN B) LOOP C) SKIP D) EXIT

1.8 Visual FoxPro lets you use floating toolbars to work with Reports. They are:

A) Report Control toolbar B) Layout toolbar C) Color Palette D) All of the above

1.9 Consider the following expression A=”11/08/03” B=SUBSTR(A,7,2) ? B What is the value of B?

A) 11/08/ B) /08/03 C) 03 D) 08

1.10 Consider the following code: Status = IFF(debit>=credit, “Amount due”, “Credit”) The above code is equivalent to:

A) IF debit>=credit Status = “Amount due”

Page 15: A2-R3

A2-R3 Page 15 of 7 JULY, 2003

ELSE Status = “Credit” ENDIF B) IF debit>=credit Status = “Credit” ELSE Status = “Amount due” ENDIF C) Both A) and B) above are correct D) There is no equivalence of the code listed in the problem.

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and

ENTER in the “tear-off” sheet attached to the question paper, following instructions therein. (1 x 10)

2.1 While deciding on the media for Real Time Systems, you will ensure that it is a magnetic

tape based system.

2.2 A suspense account is a one, which are to be used for unforeseen expenses during the financial year.

2.3 In ABC Analysis, we classify items, which are small in numbers but contribute maximally into C category.

2.4 On the liability side of the balance sheet, you will normally keep the Reserves and the Surpluses.

2.5 In a double entry book keeping system, it is not necessary that debits equal credits.

2.6 ?? will display the contents of a field, memory variable or a result of a mathematical equation at the beginning of a new line.

2.7 UNIQUE command can be used to prevent the display or access of the duplicate records.

2.8 You can modify the structure of an existing table using the MODIFY TABLE command.

2.9 In Visual FoxPro, indexing can be done on multiple fields of different types.

2.10 Balance Sheet shows the company’s health at an instant while Profit and Loss Account shows the company’s performance over a period of time.

3. Match words and phrases in column X with the closest related meaning/

word(s)/phrases in column Y. Enter your selection in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

X Y

3.1 Inventory valuation A. The SELECT command

Page 16: A2-R3

A2-R3 Page 16 of 7 JULY, 2003

3.2 Loan to employees is recorded in B. Uses data from an existing database file as the basis for changes to data records in the active database file

3.3 Skills Inventory C. Working capital

3.4 Hash totals D. Subsidiary Ledger

3.5 Current assets E. Personnel Systems

3.6 Selects a work area F. It is used to remove the trailing blanks from a character string.

3.7 SET RELATION G. Causes an active database file to appear to contain only the records meeting the specified condition.

3.8 TRIM( ) H. Validation

3.9 UPDATE I. Links the active database file to another open database file according to key expression that is common to both files.

3.10 SET FILTER J. LIFO

K. Random access

L. Low Inventory Storage

M. Payroll Systems

N. SKIP

4. Each statement below has blank space to fit one of the word(s) or phrases in the list

below. Enter your choice in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

A. Record key B. Buffer stocks

C. Trial balance D. Subsidiary ledger

Page 17: A2-R3

A2-R3 Page 17 of 7 JULY, 2003

E. Pseudocode F. Loop

G. ABC Analysis H. Utility programs

I. Top down J. Testing

K. Dummy L. Transaction

M. Books of accounts N. Balance sheet

4.1 In a _______ approach, the main program is decomposed into progressively lower level modules.

4.2 At the end of every year the accountant carries the balance of Profit and Loss Account to _______.

4.3 A(n) _______ is a listing of the ledger of accounts, along with their net dibit or credit balances.

4.4 The process of executing the developed programs with various data inputs in order to detect programming errors or an omission is called as _______.

4.5 An unique identifying value that is found in every record in a file is called as a _______.

4.6 Purchases from vendors form part of the _______.

4.7 Variations in demand of a product are taken care by carrying _______.

4.8 _______ is a programming term used to represent a set of instructions in a programme, which is to be repeated.

4.9 the _______ shows classification of various stock items on the basis of their values.

4.10 A term that describes program segments written in ordinary language, rather than in a programming language is _______.

PART TWO (Answer ALL questions)

5. Answer any five of the following in not more than 100 words: a) Visual FoxPro permits four different types of indexes. Describe in brief about each one of

them. b) Write the steps to the change the structure of an existing table in Visual FoxPro.

Page 18: A2-R3

A2-R3 Page 18 of 7 JULY, 2003

c) Write the steps that you will take to create multiple key index using the Table Designer dialog box.

d) Explain with an example the use of a Macro (&) command. (5 x 3)

6. Answer any three from the following: a) Visual FoxPro has some built in date functions by which you can do any date-oriented tasks.

Describe any five of them in the following tabular format:

Date Function Meaning of the Date Function Format in which you will use

b) The subscribers’ details of a magazine are maintained in a database. The fields are

Subscriber number, Subscriber name, Address (three fields) and Expiry Date (Month and Year in the form MM/YY). Write a command module to accept month and year through terminal and printout names and addresses of all subscribers whose subscriptions are expiring in the next month. The printing should be done in such a way that the name and address could be used as an address sticker.

c) Consider the following library database.

Field Name Description Type Width

TITLE Book Name Character 50

AUTHOR Name of author Character 30

CLASS Number of book Character 10

DETAIL Details of the book Memo 10

STOCK Quantity in stock Numeric 3

ISSUED Quantity issued Numeric 3

Write procedures that will handle the following queries on such a database: i) A query enquiring whether a particular book is available. ii) A query enquiring about the books written by an author. iii) A query enquiring about books of the same name but by different authors.

d) The names of persons are available in a database split into three fields: FIRSTNAME, MIDNAME AND LASTNAME. It is desired that names of the persons be printed in alphabetical order of LASTNAME. It is

however found that some records have blanks in the field LASTNAME. In such cases the MIDNAME should be taken as LASTNAME.

Write a program in Visual FoxPro to print it as directed. (5 x 3)

7. A credit card company maintains the records of its customers in a table named

CUSTOMER.DBF. The structure of the table is give below:

Field Name Type Width Dec Remarks

CUST_NO Char 5 Customer Number

C_FNAME Char 10 Customer's First Name

Page 19: A2-R3

A2-R3 Page 19 of 7 JULY, 2003

C_MNA ME Char 10 Customer's Middle Name

C_SNAME Char 10 Customer's Surname

C_ADRS Char 10 Customer's Address

C_PHONE Char 10 Customer's Phone Number

AMT_DUE Char 9 2 Amount Due

AMT_DEP Char 7 2 Amount Deposited

AMT_WITH Char 7 2 Amount Withdrawn

DATE Char 8 Date of transaction

D_DATE Char 8 Due Date

M_DATE Char 9 Maturity Date

Write a program in Visual FoxPro for the company to find the information about any existing customer by entering the customer number with proper windowing facility.

(15) 8. In a Payroll system, you are provided with Employee number, employee name, Department,

Designation, City which is either a Metro or an Non-Metro and Basic pay. Write a Visual FoxPro program to read this file, calculate allowances and total salary as follows:

a) Dearness allowance (DA)– Up to Rs. 3500 110% of basic pay

Above Rs. 3500 90% of basic pay subject to minimum of Rs. 3850 and a maximum of Rs. 6300

b) House Rent allowance (HRA) is 15% of the basic pay subject to a maximum of Rs.800. c) If City is Metro, City Compensatory Allowance (CCA) = 800 else if it is non-Metro, City

Compensatory Allowance (CCA) = 600 d) Provident fund PF) is 12% of the basic pay. e) Total salary=Basic Pay+Dearness Allowance+House Rent Allowance+CCA– PF Each payslip printed should contain all information of input record, all allowances, deductions

and total salary for each employee. (15)

Page 20: A2-R3

A2-R3 Page 1 of 6 JANUARY, 2004

A2-R3: BUSINESS SYSTEMS

NOTE:

1. There are TWO PARTS in this Module/paper. PART ONE contains FOUR questions and PART TWO contains FOUR questions.

2. PART ONE is to be answered in the TEAR-OFFANSWER SHEET only, attached to the

question paper, as per the instructions contained therein. PART ONE is NOT to be answered in the answer book.

3. Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO will be

supplied at the table when the answer sheet for PART ONE is returned. However, candidates who complete PART ONE earlier than one hour, can collect the answer book for PART TWO immediately after handing over the answer sheet for PART ONE.

TOTAL TIME: 3 HOURS TOTAL MARKS: 100 (PART ONE-40; PART TWO – 60)

PART ONE

(Answer all the questions) 1. Each question below gives a multiple choice of answer. Choose the most appropriate

one and enter in the "tear-off" answer sheet attached to the question paper, following instruction therein. (1 x 10)

1.1 One of the field names listed below is incorrect. It is A) First_Name B) FirstName C) First Name D) Firsrt_Nome 1.2 A sequential file organization is suited for A) Examination processing B) Airline reservation system C) Online trading of shares D) Monitoring the movement of a satellite 1.3 In a payroll system, the year-end processing will include A) Provident fund contribution statement for the last month B) Income Tax statement for the year C) Pay slip for the last month D) All of the above 1.4 Employee advances are generally A) Kept in the subsidiary account B) Not incorporated in financial accounts C) Are part of the memorandum accounts D) None of the above

Page 21: A2-R3

A2-R3 Page 2 of 6 JANUARY, 2004

1.5 In an accountant’s system, collection of all temporary and permanent accounts is maintained

in the A) Cash journal B) General ledger C) Accounts payable component D) Double entry balance system 1.6 The command DISPLAY STRUCTURE will: A) List the structure of the database file in use B) List the structure of the index file in use C) List the structure of the command file in use D) List the structure of all active files in use 1.7 SET UNIQUE command

A) Used along with the INDEX command to exhibit an ordered listing of unique field values

B) Used along with the SORT command to exhibit on ordered listing of unique field values

C) Can be used both with INDEX and SORT D) Is exclusively used with BROWSE command to edit an ordered listing of unique field

values 1.8 The command SORT ON NAME/D TO TEMP will A) Arrange the sorted data in descending order B) Delete the unsorted data after arranging it in descending order C) Download the sorted names from a web site D) None of the above 1.9 ? STUFF ("Baba",3,2,"by") returns A) baby B) Byby C) Baby D) Babbya 1.10 Consider the following code: Status = IIF(debit>=credit, "Amount due", "Credit") The above code is equivalent to: A) IF debit>= credit Status = "Amount due" ELSE Status = "Credit" ENDIF B) IF debit>= credit Status = “Credit” ELSE Status = "Amount due" ENDIF C) Both A) and B) above are correct D) There is no equivalence of the code listed in the problem.

Page 22: A2-R3

A2-R3 Page 3 of 6 JANUARY, 2004

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and

ENTER in the "tear-off" sheet attached to the question paper, following instructions therein. (1 x 10)

2.1 In a real-time system, all changes are recorded on an online transaction file and the master

file updated for report production when required. 2.2 Money withdraw from the bank to make cash payment would result in debiting the bank and

crediting cashbook. 2.3 Books of account for a proprietary concern may or may not have subsidiary ledgers. 2.4 Reserves and surpluses constitute the liabilities side of the balance sheet. 2.5 In a situation of zero lead-time of supplies, we may not need to hold any inventory. 2.6 ABS(-20.25) returns 20.25 and ABS(20.25) returns –20.25. 2.7 JOIN will create a third database file by combining records and fields from two open

database files when the specified condition is true. 2.8 LOCATE FOR UPPER(NAME) = "MANSI" .AND. UPPER(PROFF) = "DOCTOR" .AND.

Y_ENTER >= 2010 .AND. Y_PASS<=2016 is a correct usage. 2.9 Consider the following code- M= "Hi Ankita! I am Pooja" ? LEN (M) Will return the value as 21. 2.10 The set of procedures can be kept just after completion of the main program or it can be

saved in another file having the extension as .PRG. 3. Match words and phrases in column X with the closest related meaning word(s)

phases in column Y. Enter your selection in the "tear-off" answer sheet attached to the question paper, following instructions therein. (1 x 10)

X Y

3.1 Ageing analysis A. Creates numeric variables

3.2 Depreciation B. Uses data from an existing database file as the basis for changes to data records in the active database file.

3.3 Stock valuation C. Current assets

3.4 Contra account D. Expense item in books

3.5 Working capital E. LIFO

3.6 INPUT F. It is used to remove the trailing blanks from a character string

3.7 ZAP G. Cause an active database file to appear to contain only the records meeting the specified condition

3.8 TRIP( ) H. Always zero

3.9 UPDATE I. Removes all records

3.10 SET FILTER J. Debtor control.

K. FIFO

L. Always on

Page 23: A2-R3

A2-R3 Page 4 of 6 JANUARY, 2004

4. Each statement below has a blank space to fit one of the word(s) or phrases in the list

below. Enter your choice in the "tear-off" answer sheet attached to the question paper, following instructions therein. (1 x 10)

A. SET RELATION B. Top down C. Subsidiary ledger

D. testing E. Financial statements F. matching

G. Flowchart H. Annual accounts I. ABC analysis

J. P & L statements K. QPR L. Skip

4.1 ________ shows that the maximum proportional value of the inventory is made up by a small

number of items.

4.2 The process of executing the developed program with various data inputs in order to detect

programming error or omissions is called_________.

4.3 Purchases from the vendors form part of_________.

4.4 After each year we need to start with the__________ afresh.

4.5 To establish a link between two database files, the________ command can be used.

4.6 Schedules to _________ show detailed information regarding the working of the company.

4.7 The approach towards program design in which main program is decomposed into

progressively lower level modules is called________.

4.8 Debits and credits must be__________ in a double entry book keeping system.

4.9 Detailed design logic of an application, developed using a package, can be represented

by_________.

4.10 _________ allows decision makers to measure, interpret, analyze and communicate

financial information.

Page 24: A2-R3

A2-R3 Page 5 of 6 JANUARY, 2004

PART TWO (Answer any FOUR questions)

5. Answer any three of the following in not more than 100 words:

a) Describe briefly with an example, the difference between REPLACE and UPDATE.

b) What is the purpose of DO WHILE command? Explain its two options EXIT and LOOP.

What is the different between DO WHILE .T. and DO WHILE .NOT. EOF()?

c) Differentiate between Real Time and Online processing. Give one example of each type.

d) What is the different FIND and SEEK. Give one example of each type.

(5 x3) 6. Answer any three of the following: a) Using Visual FoxPro write a program that will compute rebate and print an output comprising

of three things - Customer Identification number, Purchase Amount and Rebate for each record. The customer identification number is provided to you along with the Purchase amount and the slabs of rebate. Use the table listed below:

Amounts of Purchase Rebates applicable on purchase

amounts

>= Rs. 5000 6%

> Rs. 5000 but<= Rs. 10000 9%

> Rs. 10000 12%

b) A database table called PAYROLL contains the fields EMPNAME, BASICSAL and ALLOWANCES. Write a program to print a report with Name and Total salary (BASICSAL+ALLOWANCES) is more than 20000. At the end of the program you should also print a total number of employees whose Total salary is more than 20000.

c) Write a program to calculate the telephone bill. Each time when the program is run, it should

first ask for the program first ask for the number of calls made and then print the amount payable as per the following rules:

- First 200 calls are free - Next 100 calls @Rs. 1.80 per call

- And the next calls @ Rs. 2.30 per call d) Blue chip Company keeps a record of their employees in a table by the name PERS.DBF.

The structure of the table is an under:

Field Name Type Width Dec Remarks

NAME Char 30 Name of the employee

ADRS Char 40 Address

PAY Num 7 2 PayAmount

Page 25: A2-R3

A2-R3 Page 6 of 6 JANUARY, 2004

Write a program in visual FoxPro to:

i) To print the records from the table either on console or on paper, as per the choice of the user.

ii) To append the table for the new records.

iii) To edit the existing records.

iv) To delete any records from the table.

v) To search any data from the table.

(5 x 3) 7. In a hotel there are 5 floors and on each floor, there are 10 rooms. Write a program in Visual

FoxPro to:

a) Search the room accommodation position.

b) Reserve the required room, if it is vacant for the new boarder.

(15) 8. A bookshop sell three types of books, namely Science subject, Commerce subjects and Arts

subjects. They offer discount @ 2%, 3% and 4% on respective subjects. Besides this the shop also offers another discount @ 2.5% on Gross Amount of purchase, if it exceeds Rs. 200.00,. Develop a program to calculate the bill amount for the same.

(15) 9. a) What are the master and transaction file in inventory control system? Show a typical

structure of these files. b) Write an algorithm to list out leap years from 1950 to 2050. c) Explain briefly the role of "Trial balance" in accounting system.

(5x3)

Page 26: A2-R3

A2-R3 Page 7 of 6 JANUARY, 2004

January 2004 TOTAL TIME: 3 HOURS TOTAL MARKS: 100

(PART ONE-40; PART TWO – 60)

PART ONE (Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate

one and enter in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

1.1 The objective of maintaining an inventory control operation is A) To maximize the money invested B) To reduce the cost of storing, handling and insuring a large quantity of goods C) To search stock D) None of the above 1.2 Which of the following is true about a disk file where WRITE statement will always place a

record in the next physical position? A) Sequential file B) Relative file C) Indexed file D) None of the above 1.3 The most efficient and well designed computerized payroll system would be A) On-line real time system B) Batch processing system C) Both A) and B) D) None of the above 1.4 Purchases from suppliers is part of A) Subsidiary ledger B) Payroll transaction file C) Balance sheet D) Sales register 1.5 If AGE and SALARY are numeric fields in a database file, which of the following commands

in incorrect? A) REPLACE ALL AGE WITH AGE+1 FOR AGE < 20 B) REPLACE ALL AGE WITH AGE+1 WHILE AGE > 20 C) REPLACE AGE WITH AGE+1 WHILE AGE < 20 ALL D) All of the above 1.6 The command to create a new database file based on two open database files is A) SET RELATION B) UPDATE C) JOIN

Page 27: A2-R3

A2-R3 Page 8 of 6 JANUARY, 2004

D) None of the above 1.7 ROUND( ) function is A) A numeric function B) Used to round a number to a specified number of decimal places C) Both A) and B) above are correct D) None of the above is correct 1.8 ? STUFF (“Baby”,3, 2,”ba”) returns A) baby B) baba C) Baba D) Bob 1.9 The command WAIT A) causes all FoxPro processing to pause until any key is pressed B) permits usage of a prompt which must be a character expression C) has a default prompt which is “Press any key to continue…” D) all of the above 1.10 The command REINDEX will A) Rebuild all open index files in the currently selected work area using the key expression

defined by the original INDEX command B) Rebuild all the index files on the hard disk C) Rebuild all the index files in a particular directory D) Both B) and C) above are correct 2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and

ENTER in the “tear-off” sheet attached to the question paper, following instructions therein. (1 x 10)

2.1 Structured programming diminishes the efficiency of coding of programs.

2.2 A purchase transaction increases the liability of a company.

2.3 Invoice detail file is a master file in a sales invoicing system.

2.4 In indexed sequential operation, records are held in sequential order on the disk and the index is kept permanently on the main storage for fast access.

2.5 While creating a report with CREATE REPORT, each record can occupy only one detail line.

2.6 SORT ON NAME + AMOUNT TO BANK is a valid command

2.7 If a database file contains 5 fields, its structural compound index file can have a maximum of 5 index tags.

Page 28: A2-R3

A2-R3 Page 9 of 6 JANUARY, 2004

2.8 ALLTRIM() removes leading blanks from the specified character expression.

2.9 Consider the following code:

X=”Hello! How are you?”

? LEN(X)

It will return the value as 16.

2.10 A task started within DO WHILE and ENDDO loop will be continued until the condition is satisfied.

3. Match words and phrases in column X with the closest related meaning/

word(s)/phrases in column Y. Enter your selection in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

X Y

3.1 Zero inventory level A. programming aid

3.2 pseudocode B. warning signal

3.3 Re-order level C. sends to printer

3.4 ??? D. displays in the same line

3.5 VAL( ) E. low inventory storage

3.6 TRANSFORM( ) F. it is a numeric function to change character strings to numeric

3.7 IFF( ) G. provides a picture formatting to the numeric output

3.8 RANGE H. results in compactness in the program code

3.9 ALIAS I. copies the contents of previous record to the text

3.10 SET CARRY ON J. links the active database file to another database file

K. alternate name for a database file

L. restricts entry in a numeric field

4. Each statement below has blank space to fit one of the word(s) or phrases in the list

below. Enter your choice in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

A. query language B. fields C. data processing

D. report generator E. tools F. data definition language

G. RETURN H. LOCATE I. data manipulation language

J. transaction file K. SEEK L. close database/use

Page 29: A2-R3

A2-R3 Page 10 of 6 JANUARY, 2004

4.1 __________ is defined as a series of actions of operations, which convert data into useful

information.

4.2 The __________ is used to define the structure of a database.

4.3 The ___________ enables users to define their requirements for extracting the desired

information from the database in the form of queries.

4.4 The ________ enables the users of a database to design the layout of a report in the desired

format.

4.5 A(n) ________ is used to store input data until it can processed.

4.6 ________ is the basis of FoxPro’s indexes.

4.7 To start the Table Wizard, open the ________ option from the system menu and select

Wizards. From the list select the Table Wizard.

4.8 If the table has no appropriate indexes, you have to use ________.

4.9 The ________ command is used to close a database file in use.

4.10 Each function should end with a(n) __________ statement.

PART TWO (Answer any FOUR questions)

5. a) What is business data processing? b) State some of the advantages and disadvantages of getting the accounting data processed

by a computer. c) What are the main problems that can arise in capturing raw data for use within a computer

system? (5x3)

6. a) What is meant by file organization? What are the three commonly used file organizations in

business data processing? How do we decide to use a particular file organization for an application?

b) Distinguish between structure programming and modular programming. (10+5)

7. a) How information is stored by FoxPro? b) What is a relational database system? Explain with example. c) How does indexing works in Database?

(5x3) 8. Explain the following:

Page 30: A2-R3

A2-R3 Page 11 of 6 JANUARY, 2004

a) What is the purpose of SET FILTER command? Give an example. b) What do you understand by object linking and embedding? c) Explain Query designer and Multiple tables.

(5x3) 9. a) Explain the IIF( ) function with an example. b) In a Payroll system, you are provided with Employee number, Employee name, Department,

Designation, City which is either a Metro or a Non-Metro and Basic pay. Write a FoxPro program to read this file, calculate allowances, total income and net salary as follows:

i. Dearness Allowance (DA): Up to Rs. 8000 60% of basic pay Above Rs. 8000 50% of basic pay

ii. If city is Metro, House Rent allowance (HRA) is 30% of basic pay else if it is non-metro, HRA is 15% of basic pay.

iii. City compensatory allowance (CCA) is Rs.300 iv. Provided fund is 6% of the basic pay. v. Total income = Basic pay + DA+HRA+CCA and

Net Salary = Total income – PF Each payslip printed should contain the information for each employee as per the sample

payslip output below:

PAYSLIP

Employee # : 7567 Department: COMPUTER Employee Name: RAJ Designation: LECTURER

Payslip for the month of: December, 2003

INCOME Rupees

Basic Pay 6000 Dearness Allowance 3600 HRA 1800 CCA 300 ------------------------------------------------------------------------------------------------------------------------------------- Total Income 11700 ------------------------------------------------------------------------------------------------------------------------------------- DEDUCTIONS -------------------------------------------------------------------------------------------------------------------------------------

Page 31: A2-R3

A2-R3 Page 12 of 6 JANUARY, 2004

PF 360 ------------------------------------------------------------------------------------------------------------------------------------- Net Salary 11340 -------------------------------------------------------------------------------------------------------------------------------------

ACCOUNT OFFICER (5+10)

Page 32: A2-R3

A2-R3 Page 13 of 6 JANUARY, 2004

July 2005 TOTAL TIME: 3 HOURS TOTAL MARKS: 100

(PART ONE-40; PART TWO – 60)

PART ONE (Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate

one and enter in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

1.1 Products returned by the customers would affect the Financial Accounts in the following

manner: A) Debits stock & Credits customers B) Credits stock & Debits customer C) Credits rejected stock and Debits customer D) None of the above 1.2 Whish of the following is a valid command? A) INPUT “Enter your age” AGE B) INPUT “Enter your age”, AGE C) INPUT “Enter your age” GET AGE D) INPUT “Enter your age” TO AGE 1.3 The command used to add a new field to an active database file is A) MODIFY LAEBL B) MODIFY COMMAND C) MODIFY STRUCTURE D) MODIFY REPORT 1.4 Audit can be done A) Through the computer B) Bottom-up C) Ad Hoc D) None of these 1.5 If AGE and SALARY are numeric fields in a database file, which one of the following

commands in incorrect? A) REPLACE ALL AGE WITH AGE + 1 FOR AGE < 20 B) REPLACE ALL AGE WITH AGE + 1 WHILE AGE > 20 C) REPLACE AGE WITH AGE + 1 FOR AGE < 20 ALL

Page 33: A2-R3

A2-R3 Page 14 of 6 JANUARY, 2004

D) All of the above 1.6 Payroll is integrated with financial accounts through A) A month end Journal voucher B) One line up-dation C) Maintaining each employees record in a subsidiary ledger D) All of the above 1.7 Identify which of the following menu options is not displayed on the CREATE QUERY menu

screen. A) Set Filter B) Nest C) Display D) Decimals 1.8 Identify which of the following commands cannot be used to Query an active catalog file. A) USE B) REPORT FORM C) SET INDEX TO D) SET ALTERNATE TO 1.9 Identify which of the following is not a database maintenance task A) Renaming database B) Copying database C) Combining database D) Viewing database 1.10 Which of the following is not a liability? A) Share Capital B) Reserves and Surplus C) Secured Loans D) Investments

Page 34: A2-R3

A2-R3 Page 15 of 6 JANUARY, 2004

2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the “tear-off” sheet attached to the question paper, following instructions therein. (1 x 10)

2.1 When two or more sequential files are combined to form one sequential file, the process is called sorting.

2.2 Data validation is generally accomplished by making use of various types of control tools.

2.3 Ageing analysis of debtors is an important control report of the sales analysis system.

2.4 ABS(-13.98) return 13.98 and ABS (6.45) returns – 6.45.

2.5 RELEASE command is used to remove memory variables form memory.

2.6 CHANGE and EDIT are identical commands.

2.7 STORE [20] TO NUM creates a character variable.

2.8 In a highly volatile system, indexed files are preferred over sequential file organization for data retrieval.

2.9 ABC Analysis shows that the maximum proportional value of the inventory is made up of a large number of items.

2.10 If you enter “n” in a logical field, it is not accepted. 3. Match words and phrases in column X with the closest related meaning/

word(s)/phrases in column Y. Enter your selection in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

X Y

3.1 General Ledger A. Warning signal

3.2 Re-order level B. Programming aid

3.3 Pseudo-code C. EXIT

3.4 PICTURE "@!" D. Restricts number of records with commands

3.5 Double entry books E. ACCEPT/SPACE

3.6 Comes out of a DO WHILE END DO loop

F. Unclear account records

3.7 SET FILTER G. GL Code

3.8 Diamond H. Converts to upper case

3.9 Current Assets I. Runs a program file

3.10 Suspense Account J. Financial Accounts

K. Flow Chart

L. Match Dr. and Cr.

Page 35: A2-R3

A2-R3 Page 16 of 6 JANUARY, 2004

4. Each statement below has blank space to fit one of the word(s) or phrases in the list

below. Enter your choice in the “tear-off” answer sheet attached to the question paper, following instructions therein. (1 x 10)

A. Do not B. Accounting Systems C. .SPR

D. GOTO E. Liabilities F. Asterisks

G. ? ? ? H. ORDER BY I. 9

J. 10 K. Transaction L. Assets

4.1 To arrange the records as per some order with RQBE, the SELECT Command uses the

clause _________.

4.2 Reserves and surpluses constitute the _________ side of the balance sheet.

4.3 Journal Vouchers _________ affect the bank or cash book balance.

4.4 A(n) _________ file is used to update a master file.

4.5 _________ allows decision makers to measure, interpret, analyze and communicate

financial information.

4.6 The field name can be upto _________ character long.

4.7 If a variable NUMBER contains 11500, STR (VALUE,3) returns _________.

4.8 Regardless of the setting of SET PRINTER _________ sends output of the printer.

4.9 The default extension name used with a screen file created with CREATE SCREEN.

4.10 _________ statement is not desirable in a structured program.

Page 36: A2-R3

A2-R3 Page 17 of 6 JANUARY, 2004

PART TWO (Answer any FOUR questions)

5.

a) Explain the FOR and WHILE condition.

b) Write the differences between LIST and DISPLAY.

c) Distinguish between Distributed Data Processing and Centralized Data Processing. (5 x 3)

6.

a) What are the main functions of Database Management System (DBMS)? How will you differentiate it from File Management System?

b) Why is data validation necessary? What are the different types of data validation checks that are kept in a programme?

c) Define the meaning of Data Structures. (5 x 3)

7. The names of persons are available in a database split into three fields: FIRSTNAME,

SURNAME, LASTNAME. It is proposed to print the names of persons in the alphabetical order of LASTNAME. It is

however, found that some records have blanks in the field LASTNAME and in such cases the SURNAME should be taken as LASTNAME.

(15) 8.

a) Discuss any two of the following:

i) Trial Balance

ii) Systems Audit

iii) Indexing & Sorting

b) What are the master and transaction files in a Payroll Systems? Show the typical structure including type and width.

(10 + 5) 9.

a) Explain Data Manipulation.

b) How many ways we can organize a file? Explain any one of them.

c) List out the difference between Locate and Seek commands in the FoxPro data management.

Page 37: A2-R3

A2-R3 Page 18 of 6 JANUARY, 2004