File Processing

File Processing

University

8 Qs

quiz-placeholder

Similar activities

Implementing Mass Storage Application

Implementing Mass Storage Application

10th Grade - University

10 Qs

Sorting and Selection DSA Quiz

Sorting and Selection DSA Quiz

University

12 Qs

WORD 1 THAO TÁC FILE, ĐỊNH DẠNG

WORD 1 THAO TÁC FILE, ĐỊNH DẠNG

University

10 Qs

6-文件操作

6-文件操作

University

10 Qs

Chap 1: What is a program made of?

Chap 1: What is a program made of?

University

13 Qs

Chapter 4 Revision

Chapter 4 Revision

University

10 Qs

ITESA Roadmap Event 12-09-24

ITESA Roadmap Event 12-09-24

University

10 Qs

Introduction to Excel

Introduction to Excel

KG - Professional Development

10 Qs

File Processing

File Processing

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

PANDU WICAKSONO

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?