
Stack & Queue, File Input and Output

Quiz
•
Computers
•
Professional Development
•
Hard
Gorantla Gopal
Used 2+ times
FREE Resource
42 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a file in C programming?
A pointer to memory
A collection of characters stored on disk
A data type
A library function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about text files?
They store data in binary form
They are readable by text editors
They cannot use fprintf()
They use fread() to read data
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Binary files are typically used when:
We want human-readable data
We want to store structured data efficiently
We need to print text
We use scanf()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the FILE* pointer in C represent?
File descriptor
File status
File stream
Memory buffer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to open a file in C?
fopen()
open()
read()
getfile()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to close a file?
fcloseall(fp);
fileclose(fp);
fclose(fp);
close(fp);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used to write formatted data to a file?
fprintf()
scanf()
getc()
puts()
Create a free account and access millions of resources
Similar Resources on Wayground
45 questions
M1 R5 ( Chapter 3)

Quiz
•
Professional Development
42 questions
Tin Mô đun 4

Quiz
•
Professional Development
44 questions
AWS Certified Cloud Practitioner

Quiz
•
5th Grade - Professio...
38 questions
IT Basic Assesment

Quiz
•
7th Grade - Professio...
45 questions
Android ATC_Practice 2

Quiz
•
Professional Development
40 questions
MSP430

Quiz
•
12th Grade - Professi...
44 questions
Working with Docker Registries, Images and Containers

Quiz
•
Professional Development
40 questions
See It-Name It

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade