
Compro2 (Midterm) File, Input, Output

Quiz
•
Information Technology (IT)
•
University
•
Easy

Jan Eric Paghubasan
Used 8+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 2 pts
It is a complete path that does not need any information to locate a file on a system.
absolute path
relative path
2.
MULTIPLE CHOICE QUESTION
5 mins • 2 pts
depends on other path information. When working with a path containing only a filename, the file is assumed to be in the same folder as the program using it.
absolute path
relative path
3.
MULTIPLE CHOICE QUESTION
5 mins • 2 pts
Returns the String representation of the path, eliminating double backslashes.
Also, the toString() method is overridden from the Object class.
Path getName(int)
Path getFileName()
String toString()
int getNameCount()
4.
MULTIPLE CHOICE QUESTION
5 mins • 2 pts
Returns the file or directory denoted by this Path; the last item in the sequence of name elements. This is frequently a filename but also a folder name.
Path getName(int)
Path getFileName()
String toString()
int getNameCount()
5.
MULTIPLE CHOICE QUESTION
5 mins • 2 pts
Returns the number of name elements in the Path.
Path getName(int)
Path getFileName()
String toString()
int getNameCount()
6.
MULTIPLE CHOICE QUESTION
5 mins • 2 pts
Returns the name in the position of the Path specified by the integer parameter
Path getName(int)
Path getFileName()
String toString()
int getNameCount()
7.
MULTIPLE CHOICE QUESTION
5 mins • 2 pts
An abstract class that contains methods for performing input.
InputStream
FileInputStream
BufferedInputStream
OutputStream
FileOutputStream
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
2F-1 | Python Quiz | 14/10/2024

Quiz
•
University
25 questions
Fundamentals of programming Quiz

Quiz
•
University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
20 questions
Pretest Alpro Dasar

Quiz
•
University
20 questions
Revissão - Linguagem C (str, fun, stru, vt+mt,)

Quiz
•
University
20 questions
Pemrograman Blokly

Quiz
•
9th Grade - University
20 questions
Quizizz SIOTICS #2

Quiz
•
10th Grade - University
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade