
Seminar 3 - EDA25
Authored by ARNAU BLANCO
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the best practice when loading a file in C?
Simply open it.
Open it, check that it can be accessed and close it.
Open it and close it.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the difference between the following lines?
(I) FILE *f = fopen("example.txt", "r");
(II) FILE *f = fopen("example.txt", "w");
(III) FILE *f = fopen("example.txt", "a");
(I) reads the file in reading mode; (II) reads it in writing mode; (III) reads it in append mode
(I) reads the file in reading mode; (II) reads it in writing mode; (III) is not correct
They are equivalent
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the difference between the reading mode ("r") and the writing mode ("w")?
The reading mode allows multiple programs to access the same file, whereas the writing mode just one program.
Both modes allow multiple programs to access the same file.
Both modes allow only one program to access the same file.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the difference between the writing mode ("w") and the append mode ("a")?
They are equivalent, but the append mode allow multiple programs to access the same file.
The append mode does not exist.
The writing mode erases the contents of the file before making any changes, whereas the append mode adds the new changes at the end.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How does fscanf(...) handle whitespace (e.g., spaces, tabs, or newlines) when reading input?
It parses them normally.
It skips them.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider that p is an integer and f a file pointer. What does fscanf(f, "%d", &p) do?
It parses the formatted input, i.e., "%d", from file f, stores it in p and moves to the next character.
It parses the formatted input, i.e., "%d", from file f, and stores it in p.
It waits for the user's input in the file f and stores it in p.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider that p and q are integers and f a file pointer. What does fscanf(f, "%d %d", &p, &q) return?
True if it has been successfully parsed; false, otherwise.
The number of matches in the formatted input, i.e., 2.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
DBC CHAPTER 3 - REVISION
Quiz
•
University
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
15 questions
ADVACOMT-Quiz No.1 (final term)
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
15 questions
Firewall and Network Security
Quiz
•
University
10 questions
Information systems concepts
Quiz
•
University
13 questions
L1 - Computer Networks
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University