
Week11 Low Level IO
Quiz
•
Architecture
•
University
•
Hard
Emma Nagy
Used 1+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
You are given the following text file: 'BlindingLightsLyrics.txt' and asked to count how many times the word 'lights' appears. How would you open the file?
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What data type is the file handle (fh) of a file?
char
double
logical
cell
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the proper way to individually close files?
close(fh)
fclose('filename')
fclose(all)
fclose(fh)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given a filename ending in '.txt' how would you create an updated filename that is the original filename with '_updated.txt' at the end?
(example in image)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given a filename ending in ANY extension how would you create an updated filename that is the original filename with '_updated' added before the extension?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To loop through every line in a file, what would I need to make the terminating condition of the while loop?
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
This code is supposed to go through every word on every line of the file. Which two EMPTY lines would you need to use 'strtok' on to make this code work? (answer using numbers separated by only commas!)
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For this code to loop through every word on every line, what should the input of the second strtok be?
word
line
count
rest
9.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What do you get when you use fgetl or fgets when there is nothing left to read in the file?
-1 (double)
1 (double)
1 (logical)
-1 (char)
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Architecture
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
