Python L35 File Path

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Future Teacher
Used 3+ times
FREE Resource
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/NameList.txt
/Users/Li/Documents/Class6A/NameList.txt
./Class6A/NameList.txt
Class6A:C:/NameList.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?
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Networking & the Internet

Quiz
•
6th - 8th Grade
14 questions
IDT 6 Mape i datoteke, putanje

Quiz
•
6th Grade
15 questions
File Formats Quiz

Quiz
•
8th Grade
12 questions
Creating Webpages

Quiz
•
6th - 8th Grade
12 questions
Bash Review

Quiz
•
7th - 8th Grade
11 questions
CIW IBA Lesson 4 Vocabulary

Quiz
•
8th Grade - Professio...
14 questions
File Extensions

Quiz
•
6th - 8th Grade
12 questions
Photoshop

Quiz
•
8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
22 questions
Figurative Language

Quiz
•
7th Grade