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

Is oop a design pattern?

0 Answers  


What are the examples of the behavioral design patterns?

0 Answers  


If there is a Model class,View class,Controller class then How these are internally related? Which layer objects instantiated in which layer? How they communicates?

4 Answers   Honeywell,


Is singleton an anti pattern?

0 Answers  


What are the types of design patterns?

0 Answers  






What is Software development life cycle....??

5 Answers   TCS,


What is the use of repository pattern?

0 Answers  


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

1 Answers   IBM, Infosys,


Why is it important to use systems analysis and design methodologies when building a system? Why not just build the system in whatever way appears to be “quick and easy”? What value is provided by using an “engineering” approach?

1 Answers   DBU, KSV College, Sampson, University of Ibadan,


Write the code for a singleton class?

0 Answers  


Is dependency injection a design pattern?

0 Answers  


What are the benefits of the proxy in the design pattern?

0 Answers  


Categories