i have file(ps),dont know how many records are there. move
half of the records to 2 files. how can we do



i have file(ps),dont know how many records are there. move half of the records to 2 files. how can ..

Answer / a

Question confirmation: Move half-half records to 2 diff. files.

Precondition: You must be knowing how to read record.
Solution:
1. Read file from top.
2. Move each record in alternative file.

Is This Answer Correct ?    14 Yes 5 No

Post New Answer

More Design Patterns Interview Questions

Suppose we have file(ps), dont know how many records are there. Move half of the records to 2 files. How can we do?

0 Answers  


What is singleton design pattern in java?

0 Answers  


What is the creational design pattern?

0 Answers  


2. Create your own definition of a system. Based on the “system” definitions a. Identify your viewpoint of shortcomings in the definitions. b. Provide rationale as to why you believe that your definition overcomes those shortcomings. c. From an historical perspective, identify three precedented systems that were replaced by unprecedented systems.

0 Answers   IBM,


Why do we need singleton pattern?

0 Answers  






What is design pattern ?

4 Answers   Accenture,


how many types of cookies in php

1 Answers  


Which design pattern is mostly used in net?

0 Answers  


What is 'good design'?

2 Answers  


Explain the singleton, facade, or handle class design pattern?

2 Answers   ABC,


What is viper architecture?

0 Answers  


Dd you useuse OOA/OOD methodologies?did you use design patterns?

1 Answers   HP,


Categories