
Python L35 File Path
Authored by Future Teacher
Computers
6th - 8th Grade
Used 6+ 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
30 sec • 1 pt
What does this line do?
Writes a new file called NameList.txt
Deletes a file
Opens an existing file for reading
Opens a folder named Class6A
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does number % 4 mean in the code?
Divide the number by 4 completely
Return the remainder when number is divided by 4
Multiply the number by 4
Check if the number is greater than 4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a relative file path?
C:/Users/Ali/Documents/Class6A/student_names.txt
/Users/Li/Documents/Class6A/student_names.txt
./Class6A/student_names.txt
Class6A:C:/student_names.txt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What file mode should you use to add names to an existing file without erasing the current content?
'w'
'r'
'a'
'x'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Absolute file paths always start from the root of your computer.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using 'a' mode in open() deletes the file first.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What’s the difference between a relative file path and an absolute file path?
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
10 questions
Microsoft Excel/ Google Sheets True or False
Quiz
•
7th Grade
15 questions
PERTANDINGAN KUIZ ASAS SAINS KOMPUTER SMK TANJONG SEPAT 2023
Quiz
•
7th - 9th Grade
15 questions
Microsoft PowerPoint 2016
Quiz
•
8th Grade
12 questions
Kuiz Komputer dan ICT
Quiz
•
1st Grade - University
10 questions
Internet
Quiz
•
8th Grade
10 questions
PENGENALAN PERANGKAT LUNAK PENGOLAH ANGKA
Quiz
•
8th Grade
10 questions
Year 7 ICT Starters On Track Stage 1 - Topic 4: Database
Quiz
•
7th Grade
10 questions
Gambar Bitmap
Quiz
•
8th Grade
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade