File Processing

Quiz
•
Computers
•
University
•
Medium

PANDU WICAKSONO
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah fungsi fopen yang benar, jika file yang ingin dibaca berada dalam satu folder?
fopen("test2.txt", "r");
fopen("C:\\Users\\user\\Documents\\Latihan\\test2.txt", "r");
fopen("C:\Users\user\Documents\Latihan\test2.txt", "r");
fopen("test2.txt", "w");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
isi file test2: Pandu
fp = fopen("test2.txt", "r");
char ch = fgetc(fp);
printf("%c", ch);
apa output dari potongan kode diatas
Pandu
P
p
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
isi file test2: Pandu
FILE *fp = NULL;
fp = fopen("C:\\Users\\user\\Documents\\Development\\Latihan\\test2.txt", "r");
Lanjutkan kode diatas agar dapat membaca isi dari file test2
while (!feof(fp))
{
char ch = fgetc(fp);
printf("%c", ch);
}
while (feof(fp))
{
char ch = fgetc(fp);
printf("%c", ch);
}
while (!feof(fp))
{
char ch = fgets(fp);
printf("%c", ch);
}
while (!feof(fp))
{
char ch = fgetc(fp);
printf("%s", ch);
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
bagaimana membuat Buffer Area?
file *nama_variable;
File *nama_variable;
FILE *nama_variable;
*nama_variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
mode yang digunakan untuk membaca (read) dan menulis (write) file binary adalah
"rb" dan "wb"
"r" dan "w"
"r+" dan "w+"
"a" dan "b"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
file header mana yang dapat digunakan untuk File Processing
<stdio.h>
<stdlib.h>
<string.h>
<stdarg.h>
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
fungsi yang digunakan untuk membaca per karakter adalah
fgets()
fgetc()
fgetcc()
fstring()
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
fungsi untuk membaca file dengan panjang tertentu adalah
fgetc()
fgetch()
fgets()
gets()
Similar Resources on Wayground
13 questions
Bài 16 Định dạng khung

Quiz
•
12th Grade - University
10 questions
Bitmap v Vector Images

Quiz
•
KG - University
10 questions
KUIS PRAK. 9: MANAGEMENT FILE 😼

Quiz
•
University
13 questions
C directorios

Quiz
•
University
10 questions
Quiz MS. Word 2023

Quiz
•
University
6 questions
files

Quiz
•
University
10 questions
AFP Midtvejsevaluering

Quiz
•
University
8 questions
Files

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University