Chapter 7PASCAL English ver.A. Multiple choice1. Definition of file se translation - Chapter 7PASCAL English ver.A. Multiple choice1. Definition of file se English how to say

Chapter 7PASCAL English ver.A. Mult

Chapter 7
PASCAL English ver.
A. Multiple choice
1. Definition of file sekuensial is …
a) Sekumpulan rekaman bertipe sama yang diakses secara berurutan.
b) Sekumpulan data yang dapat diakses secara acak
c) Sekumpulan data yang bermacam tipe dan dapat diakses secara berurutan
d) Sekumpulan data yang bermacam tipe dan dapat diakses secara acak
e) Semua benar

2. Which operation that only can be used in file that has a type, that is …
a) Filesize, truncate, append
b) Filesize, assign, append
c) Seek, filesize, truncate
d) Append, seek, eoln
e) Eof, eoln, writeln

3. Berikut ini urutan penggunaan operasi yang benar, kecuali ...
a) Assign, read, close
b) Assign, write, close
c) Reset, read, close
d) Assign, seek, close
e) Seek, assign, close

4. Fungsi dari assign adalah …
a) Untuk menghubungkan / membuat koneksi antara file fisik dengan variabelnya
b) Untuk membuat file baru dan membuka file baru tersebut
c) Untuk membaca isi file yang ditunjuk oleh kursor lalu menyalin datanya ke variabel daftar
d) Untuk menuliskan isis dari variabel daftar ke file pada tempat yang ditunjuk oleh kursor
e) Menutup file setelah diproses

5. Fungsi dari close adalah …
a) Untuk menghubungkan / membuat koneksi antara file fisik dengan variabelnya
b) Untuk membuat file baru dan membuka file baru tersebut
c) Untuk membaca isi file yang ditunjuk oleh kursor lalu menyalin datanya ke variabel daftar
d) Untuk menuliskan isis dari variabel daftar ke file pada tempat yang ditunjuk oleh kursor
e) Menutup file setelah diproses

6. Fungsi dari read adalah …
a) Untuk menghubungkan / membuat koneksi antara file fisik dengan variabelnya
b) Untuk membuat file baru dan membuka file baru tersebut
c) Untuk membaca isi file yang ditunjuk oleh kursor lalu menyalin datanya ke variabel daftar
d) Untuk menuliskan isis dari variabel daftar ke file pada tempat yang ditunjuk oleh kursor
e) Menutup file setelah diproses
Perhatikan program di bawah ini!
Program di bawah ini untuk soal no. 7 – 10!
Program sekuensial;
Uses crt;
Type pegawai = record
( … )7 : string; gaji : longint; end;
Var
arsip : file of ( … ) 8;
p : pegawai;
i : integer;
Begin
Assign( ( … ) 9 , ‘cobacoba.dat’);
Rewrite(arsip);
For i:= 1 to n do begin
Writeln(‘input pegawai ke-’,i);
Write(‘Nama : ’); readln(p.nama);
Write(‘Gaji : ’); readln( … )10;
Write(arsip, p); End;
Close(arsip);
End.

Lengkapilah bagian teks algoritma di atas!
7. a) arsip
b) nama
c) pegawai
d) p.gaji
e) array

8. a) arsip
b) nama
c) pegawai
d) p.gaji
e) array

9. a) arsip
b) nama
c) pegawai
d) p.gaji
e) array

10. a) arsip
b) nama
c) pegawai
d) p.gaji
e) array

B. Essay
1. Jelaskan yang dimaksud dengan file sekuensial!
Jawaban :
Sekumpulan rekaman bertipe sama yang diakses secara berurutan. Data-data yang ada dalam program akan disimpan di dalam harddisk

2. Sebutkan dan jelaskan operasi-operasi yang ada pada file sekuensial!
Jawaban :
• Assign; untuk menghubungkan / membuat koneksi antara file fisik dengan variabelnya
• Rewrite; untuk membuat file baru dan membuka file baru tersebut
• Reset; untuk memindahkan kursor ke awal file atau membuka file yang sudah ada
• Read; untuk membaca isi file yang ditunjuk oleh kursor lalu menyalin datanya ke variabel daftar
• Write; untuk menuliskan isi dari variabel daftar ke file pada tempat yang ditunjuk oleh kursor
• Close; untuk menutup file setelah diproses

3. Sebutkan dan jelaskan operasi-operasi yang hanya dapat digunakan pada file sekuensial bertipe!
Jawaban :
• Seek; untuk menentukan / mencari data atau record pada file bertipe
• Filesize; untuk mengetahui banyak record dari file yang tersedia
• Truncate; untuk menghapus record tertentu

4. Sebutkan keuntungan dan kekurangan file sekuensial!
Jawaban :
Keuntungan dari file sekuensial adalah dapat menyimpan data yang sudah diproses dalam program. Sedangkan kerugian dari file sekuensial adalah membutuhkan memori yang lebih besar

5. Lengkapilah program di bawah ini!
Program sekuensial;
Uses crt;
Type pegawai = record
( … )1 : string; gaji : longint; end;
Var
arsip : file of ( … )2;
p : pegawai;
i : integer;
Begin
Assign( ( … )3 , ‘cobacoba.dat’);
Rewrite(arsip);
For i:= 1 to n do begin
Writeln(‘input pegawai ke-’,i);
Write(‘Nama : ’); readln(p.nama);
Write(‘Gaji : ’); readln( … )4;
Write(arsip, p); End;
Close(arsip);
End.
Jawaban :
1. nama
2. pegawai
3. arsip
4. p.gaji

C. Jurnal
1. Buatlah program dengan file sekuensial bertipe!
Program sekuensial;
Uses crt;
Type mahasiswa = record
nama,nim : string; end;
Var
arsip : file of mahasiswa;
m : mahasiswa;
i,n : integer;
Begin
Assign( arsip , ‘mahasiswa.dat’);
Rewrite(arsip);
Write(‘Masukkan banyak mahasiswa : ’); readln(n)
For i:= 1 to n do begin
Writeln(‘Input data mahasiswa ke-’,i);
Write(‘Nama : ’); readln(m.nama);
Write(‘NIM : ’); readln(m.nim);
Write(arsip, m); End;
Close(arsip);
End.

0/5000
From: -
To: -
Results (English) 1: [Copy]
Copied!
Chapter 7PASCAL English ver.A. Multiple choice1. Definition of sequential file is. .. a group of the same type of record) that are accessed sequentially.b) a set of data that can be accessed randomlyc) a set of various types of data and can be accessed sequentiallyd) a set of various types of data and can be accessed at randome) all true2. Which operation that only can be used in file that has a type, that is ...a) Filesize, truncate, appendb) Filesize, assign, appendc) Seek, filesize, truncated) Append, seek, eolne) eoln, Eof, printf3. The following sequence of operations that use true, except ... a) Assign, read, closeb) Assign, write, closec) Reset, read, closed) Assign, seek, closee) Seek, assign, close-up4. assign the function of the is. ..a) for connecting/make the connection between physical files fromb) to create a new file and open the new filec) for reading the contents of a file designated by your cursor and copy the data to a variable listd) to write down a list of variables from the isis to file at the place designated by cursore) close the file after it is processed5. The function of close is. ..a) for connecting/make the connection between physical files fromb) to create a new file and open the new filec) for reading the contents of a file designated by your cursor and copy the data to a variable listd) to write down a list of variables from the isis to file at the place designated by cursore) close the file after it is processed6. The function of read is. .. a) for connecting/make the connection between physical files fromb) to create a new file and open the new filec) for reading the contents of a file designated by your cursor and copy the data to a variable listd) to write down a list of variables from the isis to file at the place designated by cursore) close the file after it is processedNote the programs below!The program below to question No. 7 – 10!Sequential programs;Uses crt;Type employee = record ( … ) 7: string; salary: longint; end;Var Archives: files of (...) 8; p: employees; I: integer; Begin Assign ((...) 9, ' URcobacoba.dat ');Rewrite (archive);For i: = 1 to n do begin Begin WriteLn (' input to employees-', i);Write (' Name '); readln (name p.);Write (' Salary: '); readln (...) 10;Write (archives, p); End;Close (archive);End.Complete text of the above algorithm section!7. a) archive b) namec) clerkd) salaries of p.e) array8. a) archive b) namec) clerkd) salaries of p.e) array9. a) archive b) namec) clerkd) salaries of p.e) array10. a) archive b) namec) clerkd) salaries of p.e) arrayB. Essay1. Explain what is meant by sequential file!Answer:A collection of recordings of the same type are accessed sequentially. Existing data in the program will be stored in the hard disk2. Please specify and describe the operations that are in sequential file!Answer:• Assign; to connect/make the connection between physical files from• Rewrite; to create a new file and open the new file• Reset; to move the cursor to the beginning of the file or open an existing file• Read; to read the contents of a file designated by your cursor and copy the data to a variable list• Write; to write the contents of the variable list to the file at the place designated by cursor• Close; to close the file after it is processed3. Please list and explain the operations that can only be used on sequential file type!Answer:• Seek; to determine/find data or records on file of type• Filesize; to know many records from the files available• Truncate; to delete a specific record4. State the advantages and disadvantages of sequential files!Answer:The advantage of the sequential file is able to store data that is already processed in the program. While the loss of sequential file is in need of a larger memory5. Grant programs below!Sequential programs;Uses crt;Type employee = record ( … ) 1: string; salary: longint; end;Var Archives: files of (...) 2; p: employees; I: integer; Begin Assign ((...) 3, ' URcobacoba.dat ');Rewrite (archive);For i: = 1 to n do begin Begin WriteLn (' input to employees-', i);Write (' Name '); readln (name p.);Write (' Salary: '); readln (...) 4;Write (archives, p); End;Close (archive);End.Answer:1. the name of the2. employees3. archive4. p. salaryC. Journal1. make a program with a file type of sequential!Sequential programs;Uses crt;Type = student record name, nim: string; end;Var Archives: files of students; m: students; I, n: integer; Begin Assign (archive, ' URmahasiswa.dat ');Rewrite (archive);Write (' enter a lot of students: '); readln (n)For i: = 1 to n do begin Begin WriteLn (' data Input into student-', i);Write (' Name '); readln (m. name);Write (' NIM: '); readln (URm.nim);Write (archives, m); End;Close (archive);End.
Being translated, please wait..
Results (English) 2:[Copy]
Copied!
Chapter 7
PASCAL English ver.
A. Multiple choice
1. Definition of a sequential file is ...
a) A collection of recordings of the same type that is accessed sequentially.
B) A set of data that can be accessed randomly
c) A set of data that various types and can be accessed sequentially
d) A set of data that various types and can be accessed randomly
e) All of the above 2. Which operation that only can be used in a file that has a type, that is ... a) filesize, truncate, append b) filesize, assign, append c) Seek, filesize, truncate d) Append, seek, eoln e) EOF, eoln , writeln 3. Here is the order of the use of the correct operation, unless ... a) Assign, read, close b) Assign, write, close c) Reset, read, close d) Assign, seek, close e) Seek, assign, close 4. The function of assigning is ... a) To connect / make a connection between the physical file with the variable b) To create a new file and open the new file c) To read the contents of a file designated by the cursor and then copy the data to the variable list d) To write the contents of the variable list to a file in a place designated by the cursor e) Closing the file after processing 5. The function of the close is ... a) To connect / make a connection between the physical file with the variable b) To create a new file and open the new file c) To read the contents of a file designated by the cursor and then copy the data to the variable list d) To write the contents of the variable list to a file in a place designated by the cursor e) Closing the file after processing 6. The function of the read is ... a) To connect / make a connection between the physical file with the variable b) To create a new file and open the new file c) To read the contents of a file designated by the cursor and then copy the data to the variable list d) To write the contents of the variable list to a file in a place designated by the cursor e) Closing the file as it is processed Consider the program below! program below to question no. 7-10! Program is sequential; Uses crt; Type employee = record (...) 7: string; salary: longint; end; Var archive: file of (...) 8; p: employee; i: integer; Begin Assign ((...) 9 'cobacoba.dat "); Rewrite (archives); For i: = 1 to n do begin Writeln ( 'input to the employee -', i); Write ( 'name:'); Readln (p.nama); Write ( 'Salaries:'); Readln (...) 10; Write (archives, p); End; Close (archives); End. Complete the text portion of the algorithm! 7. a) archives b) name c) employees d) p.gaji e) array 8. a) archives b) name c) employees d) p.gaji e) array 9. a) archives b) name c) employees d) p.gaji e) array 10. a) archives b) name c) employees d) p.gaji e) array B. Essay 1. Explain what is meant by a sequential file! Answer: A collection of recordings of the same type that is accessed sequentially. The data contained in the program will be stored in the disk 2. Identify and explain existing operations in a sequential file! Answer: • Assign; to connect / make a connection between the physical file with variables • Rewrite; to create a new file and open the new file • Reset; to move the cursor to the beginning of the file or open an existing file • Read; to read the contents of a file designated by the cursor and then copy the data to the variable list • Write; to write the contents of the variable list to a file on the spot designated by the cursor • Close; to close the file after processing 3. Identify and explain the operations that can only be used on a sequential file of type! Answer: • Seek; to determine / data or records on file type • filesize; to know many records from the file provided • Truncate; to remove certain records 4. State the advantages and disadvantages of sequential files! Answer: The advantage of sequential files is that it can store data that has been processed in the program. While the loss of sequential files are requiring larger memory 5. Complete program below! Program is sequential; Uses crt; Type employee = record (...) 1: string; salary: longint; end; Var archive: file of (...) 2; p: employee; i: integer; Begin Assign ((...) 3, 'cobacoba.dat "); Rewrite (archives); For i: = 1 to n do begin Writeln ( 'input to the employee -', i); Write ( 'name:'); Readln (p.nama); Write ( 'Salaries:'); Readln (...) 4; Write (archives, p); End; Close (archives); End. Answers: 1. name two. clerks 3. archives 4. p.gaji C. Journal 1. Create a program with a sequential file of type! Program is sequential; Uses crt; Type student = record name, nim: string; end; Var archives: files of students; m: student; i, n: integer; Begin Assign (archives, 'mahasiswa.dat "); Rewrite (archives); Write (' Enter many students: '); Readln (n) For i: = 1 to n do begin Writeln ( 'Input data to the student -', i); Write ( 'Name:'); Readln (m.nama); Write ( 'NIM:'); Readln (m.nim); Write (archives, m); End; Close (archives); End.
























































































































































Being translated, please wait..
 
Other languages
The translation tool support: Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bosnian, Bulgarian, Catalan, Cebuano, Chichewa, Chinese, Chinese Traditional, Corsican, Croatian, Czech, Danish, Detect language, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Frisian, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Korean, Kurdish (Kurmanji), Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Myanmar (Burmese), Nepali, Norwegian, Odia (Oriya), Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Samoan, Scots Gaelic, Serbian, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Spanish, Sundanese, Swahili, Swedish, Tajik, Tamil, Tatar, Telugu, Thai, Turkish, Turkmen, Ukrainian, Urdu, Uyghur, Uzbek, Vietnamese, Welsh, Xhosa, Yiddish, Yoruba, Zulu, Language translation.

Copyright ©2025 I Love Translation. All reserved.

E-mail: