Python L35 File Path

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Future Teacher
Used 5+ 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
12 questions
Creating Webpages

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

Quiz
•
7th - 8th Grade
13 questions
File Management Vocabulary

Quiz
•
8th Grade
10 questions
Perangkat Lunak (Software) dan Fiturnya

Quiz
•
8th Grade
15 questions
ИТ

Quiz
•
8th Grade
13 questions
Компютърна текстообработка

Quiz
•
6th Grade
15 questions
Module 1 Basic MS Word Summative Exam

Quiz
•
8th Grade
15 questions
File Formats Quiz

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade