SlideShare a Scribd company logo

file organization sheet 2 .pdf

This document contains instructions for a computer science course assignment on file organization. It lists 5 theoretical questions defining files, file structures, logical vs physical files, and standard I/O devices. It also lists 5 C programming exercises to create, open, read from and write to files. Finally it lists 2 additional C++ programming exercises and requests students choose one problem to implement in an IDE.

1 of 1
Download to read offline
Ministry of Higher Education
Higher Technological Institute
Computer Science Department
Second Year
Course: File organization- INF 221
1
| P a g e
Sheet 2: Fundamentals of Operations in File Processing
Theoretical
1. Define the file with example?
2. Where do file structures fit in CS?
3. What are differences between physical files and logical files?
4. State the logical filenames associated to std IO devices?
5. Describe in details the seeking for file by using C and C++?
Programs
6. Write a program to create a file and store a character b in it.
7. Write another program to open the file from question 5 and read it using C.
8. Write another program to open the file from question 5 and read it using C++.
9. Write a program to read one character and another to read 3 character from specified file
and write it in another file with C.
10. Repeat the question 8 with C++.
11. Write a program to calculate any file size.
Research
12. Choose one problem and make it by any IDE for C/C++.
with all my best wishes

Recommended

file organization sheet 2 .docx
file organization sheet 2 .docxfile organization sheet 2 .docx
file organization sheet 2 .docxMohamedAyman183185
 
File handling.pptx
File handling.pptxFile handling.pptx
File handling.pptxVishuSaini22
 
Assignment-2.docx
Assignment-2.docxAssignment-2.docx
Assignment-2.docxSree45865
 
Python reading and writing files
Python reading and writing filesPython reading and writing files
Python reading and writing filesMukesh Tekwani
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxNEHARAJPUT239591
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJmeharikiros2
 

More Related Content

Similar to file organization sheet 2 .pdf

Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...
Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...
Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...Shift Conference
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docMayurWagh46
 
c++session 1.pptx
c++session 1.pptxc++session 1.pptx
c++session 1.pptxPadmaN24
 
Paper7gnglishversion
Paper7gnglishversionPaper7gnglishversion
Paper7gnglishversionhappiashi
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyarsasikalaD3
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyarsasikalaD3
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyarsasikalaD3
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyarsasikalaD3
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyarsasikalaD3
 
Btech IT Sem VII and VIII-1 (1).pdf
Btech IT Sem VII and VIII-1 (1).pdfBtech IT Sem VII and VIII-1 (1).pdf
Btech IT Sem VII and VIII-1 (1).pdfAdityaBhateja1
 
Recommendation system for code bugs.
Recommendation system for code bugs.Recommendation system for code bugs.
Recommendation system for code bugs.Prashant Raaghav
 
VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5YOGESH SINGH
 
Event Driven Programming Course Outline.pptx
Event Driven Programming Course Outline.pptxEvent Driven Programming Course Outline.pptx
Event Driven Programming Course Outline.pptxBekeleTsanga2
 
Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...Laura Martin
 

Similar to file organization sheet 2 .pdf (20)

Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...
Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...
Shift AI 2020: Using AI for automatic synthesis | Boris Cergol (Comtrade Digi...
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).doc
 
c++session 1.pptx
c++session 1.pptxc++session 1.pptx
c++session 1.pptx
 
C++Basics2022.pptx
C++Basics2022.pptxC++Basics2022.pptx
C++Basics2022.pptx
 
Paper7gnglishversion
Paper7gnglishversionPaper7gnglishversion
Paper7gnglishversion
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyar
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyar
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyar
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyar
 
Python training centre in adyar
Python training centre in adyarPython training centre in adyar
Python training centre in adyar
 
12th computer-application-unit-8-study-material-english-medium
12th computer-application-unit-8-study-material-english-medium12th computer-application-unit-8-study-material-english-medium
12th computer-application-unit-8-study-material-english-medium
 
Btech IT Sem VII and VIII-1 (1).pdf
Btech IT Sem VII and VIII-1 (1).pdfBtech IT Sem VII and VIII-1 (1).pdf
Btech IT Sem VII and VIII-1 (1).pdf
 
Recommendation system for code bugs.
Recommendation system for code bugs.Recommendation system for code bugs.
Recommendation system for code bugs.
 
VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5
 
C Prog basics.ppt
C Prog basics.pptC Prog basics.ppt
C Prog basics.ppt
 
Event Driven Programming Course Outline.pptx
Event Driven Programming Course Outline.pptxEvent Driven Programming Course Outline.pptx
Event Driven Programming Course Outline.pptx
 
Unit i
Unit iUnit i
Unit i
 
Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...Computer Science Is The Study Of Principals And How The...
Computer Science Is The Study Of Principals And How The...
 
Test In Word
Test In WordTest In Word
Test In Word
 
WEB TECHNOLOGIES- PHP Programming
WEB TECHNOLOGIES-  PHP ProgrammingWEB TECHNOLOGIES-  PHP Programming
WEB TECHNOLOGIES- PHP Programming
 

More from MohamedAyman183185

More from MohamedAyman183185 (11)

Kareem Atif Mohamed 1851711195.pptx
Kareem Atif Mohamed 1851711195.pptxKareem Atif Mohamed 1851711195.pptx
Kareem Atif Mohamed 1851711195.pptx
 
sheet 3 answers.docx
sheet 3 answers.docxsheet 3 answers.docx
sheet 3 answers.docx
 
sheet 3-4.pdf
sheet 3-4.pdfsheet 3-4.pdf
sheet 3-4.pdf
 
Task mo7drt File Organization.docx
Task mo7drt File Organization.docxTask mo7drt File Organization.docx
Task mo7drt File Organization.docx
 
sheet 4.docx
sheet 4.docxsheet 4.docx
sheet 4.docx
 
sheet 5.docx
sheet 5.docxsheet 5.docx
sheet 5.docx
 
Mohamed Ayman Task3 RAID.docx
Mohamed Ayman Task3 RAID.docxMohamed Ayman Task3 RAID.docx
Mohamed Ayman Task3 RAID.docx
 
Temp. sheet 1& Modelnawer[1].docx
Temp.  sheet 1& Modelnawer[1].docxTemp.  sheet 1& Modelnawer[1].docx
Temp. sheet 1& Modelnawer[1].docx
 
Mohamed Ayman EL-Sayed ID 42020424 G4.pdf
Mohamed Ayman EL-Sayed   ID 42020424   G4.pdfMohamed Ayman EL-Sayed   ID 42020424   G4.pdf
Mohamed Ayman EL-Sayed ID 42020424 G4.pdf
 
Medical Diagnosis Expert System Report.docx
Medical Diagnosis Expert System Report.docxMedical Diagnosis Expert System Report.docx
Medical Diagnosis Expert System Report.docx
 
Report of Introduction and methods Explination.docx
Report of Introduction and methods Explination.docxReport of Introduction and methods Explination.docx
Report of Introduction and methods Explination.docx
 

Recently uploaded

Architecture portfolio by Katarina Misovic
Architecture portfolio by Katarina MisovicArchitecture portfolio by Katarina Misovic
Architecture portfolio by Katarina MisovicKatarina Misovic
 
CERVICAL CANCER presentation for the clinic
CERVICAL CANCER presentation for the clinicCERVICAL CANCER presentation for the clinic
CERVICAL CANCER presentation for the clinicShadreckChipapi1
 
Collaborators for Change: Research on the Relationship between Communications...
Collaborators for Change: Research on the Relationship between Communications...Collaborators for Change: Research on the Relationship between Communications...
Collaborators for Change: Research on the Relationship between Communications...Sarah Jackson
 
Bespoke Inspiration Tours and Factfinding Missions in Silicon Valley
Bespoke Inspiration Tours and Factfinding Missions in Silicon ValleyBespoke Inspiration Tours and Factfinding Missions in Silicon Valley
Bespoke Inspiration Tours and Factfinding Missions in Silicon ValleyNiki Skene
 
Masters Degree Parchment, Simon Fraser University
Masters Degree Parchment, Simon Fraser UniversityMasters Degree Parchment, Simon Fraser University
Masters Degree Parchment, Simon Fraser UniversityThomas GIRARD BDes
 
Richard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand ExplorationRichard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand Explorationrdtriple
 
312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdf
312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdf312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdf
312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdfHiteshVairale
 
Richard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand ExplorationRichard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand Explorationrdtriple
 
2024 QRC Praesentation Leistungsangebot - Vorstellung
2024 QRC Praesentation Leistungsangebot - Vorstellung2024 QRC Praesentation Leistungsangebot - Vorstellung
2024 QRC Praesentation Leistungsangebot - VorstellungJoerg Speikamp
 
_[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +...
_[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +..._[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +...
_[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +...ChitreshGyanani1
 
EFFECTIVE COACHING AND TRAINING ESP.pptx
EFFECTIVE COACHING AND TRAINING ESP.pptxEFFECTIVE COACHING AND TRAINING ESP.pptx
EFFECTIVE COACHING AND TRAINING ESP.pptxoforijulius77
 
Harvard Business Review Jan-Feb 2024.pdf
Harvard Business Review Jan-Feb 2024.pdfHarvard Business Review Jan-Feb 2024.pdf
Harvard Business Review Jan-Feb 2024.pdfNiravAjmera2
 
_[Session #3 +4] Technical Skills +Interview Preparation.pptx
_[Session #3 +4] Technical Skills +Interview Preparation.pptx_[Session #3 +4] Technical Skills +Interview Preparation.pptx
_[Session #3 +4] Technical Skills +Interview Preparation.pptxChitreshGyanani1
 
Masters Degree Acceptance, Royal College of Art
Masters Degree Acceptance, Royal College of ArtMasters Degree Acceptance, Royal College of Art
Masters Degree Acceptance, Royal College of ArtThomas GIRARD BDes
 

Recently uploaded (16)

Architecture portfolio by Katarina Misovic
Architecture portfolio by Katarina MisovicArchitecture portfolio by Katarina Misovic
Architecture portfolio by Katarina Misovic
 
CERVICAL CANCER presentation for the clinic
CERVICAL CANCER presentation for the clinicCERVICAL CANCER presentation for the clinic
CERVICAL CANCER presentation for the clinic
 
Collaborators for Change: Research on the Relationship between Communications...
Collaborators for Change: Research on the Relationship between Communications...Collaborators for Change: Research on the Relationship between Communications...
Collaborators for Change: Research on the Relationship between Communications...
 
Bespoke Inspiration Tours and Factfinding Missions in Silicon Valley
Bespoke Inspiration Tours and Factfinding Missions in Silicon ValleyBespoke Inspiration Tours and Factfinding Missions in Silicon Valley
Bespoke Inspiration Tours and Factfinding Missions in Silicon Valley
 
PNSQC 2024 Heather Wilcox Crafting Your Resume
PNSQC 2024 Heather Wilcox Crafting Your ResumePNSQC 2024 Heather Wilcox Crafting Your Resume
PNSQC 2024 Heather Wilcox Crafting Your Resume
 
Masters Degree Parchment, Simon Fraser University
Masters Degree Parchment, Simon Fraser UniversityMasters Degree Parchment, Simon Fraser University
Masters Degree Parchment, Simon Fraser University
 
Richard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand ExplorationRichard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand Exploration
 
312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdf
312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdf312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdf
312003- this is a syllabus of SOCIAL-AND-LIFE-SKILLS.pdf
 
Richard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand ExplorationRichard Duma, III - Personal Brand Exploration
Richard Duma, III - Personal Brand Exploration
 
2024 QRC Praesentation Leistungsangebot - Vorstellung
2024 QRC Praesentation Leistungsangebot - Vorstellung2024 QRC Praesentation Leistungsangebot - Vorstellung
2024 QRC Praesentation Leistungsangebot - Vorstellung
 
_[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +...
_[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +..._[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +...
_[Session #1+2] GDSC Program Overview & Effective Writing + Speaking Skills +...
 
Ron Wilson Five Tips for landing your dream job using LinkedIn and AI (ChatGPT)
Ron Wilson Five Tips for landing your dream job using LinkedIn and AI (ChatGPT)Ron Wilson Five Tips for landing your dream job using LinkedIn and AI (ChatGPT)
Ron Wilson Five Tips for landing your dream job using LinkedIn and AI (ChatGPT)
 
EFFECTIVE COACHING AND TRAINING ESP.pptx
EFFECTIVE COACHING AND TRAINING ESP.pptxEFFECTIVE COACHING AND TRAINING ESP.pptx
EFFECTIVE COACHING AND TRAINING ESP.pptx
 
Harvard Business Review Jan-Feb 2024.pdf
Harvard Business Review Jan-Feb 2024.pdfHarvard Business Review Jan-Feb 2024.pdf
Harvard Business Review Jan-Feb 2024.pdf
 
_[Session #3 +4] Technical Skills +Interview Preparation.pptx
_[Session #3 +4] Technical Skills +Interview Preparation.pptx_[Session #3 +4] Technical Skills +Interview Preparation.pptx
_[Session #3 +4] Technical Skills +Interview Preparation.pptx
 
Masters Degree Acceptance, Royal College of Art
Masters Degree Acceptance, Royal College of ArtMasters Degree Acceptance, Royal College of Art
Masters Degree Acceptance, Royal College of Art
 

file organization sheet 2 .pdf

  • 1. Ministry of Higher Education Higher Technological Institute Computer Science Department Second Year Course: File organization- INF 221 1 | P a g e Sheet 2: Fundamentals of Operations in File Processing Theoretical 1. Define the file with example? 2. Where do file structures fit in CS? 3. What are differences between physical files and logical files? 4. State the logical filenames associated to std IO devices? 5. Describe in details the seeking for file by using C and C++? Programs 6. Write a program to create a file and store a character b in it. 7. Write another program to open the file from question 5 and read it using C. 8. Write another program to open the file from question 5 and read it using C++. 9. Write a program to read one character and another to read 3 character from specified file and write it in another file with C. 10. Repeat the question 8 with C++. 11. Write a program to calculate any file size. Research 12. Choose one problem and make it by any IDE for C/C++. with all my best wishes