
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
Java MCQs on Syntax and Semantics

Quiz
•
University
15 questions
CMDP2063 Unix and C Programming

Quiz
•
University
15 questions
Java Concepts Assessment For J.A

Quiz
•
University
15 questions
TCE - 1st Quiz

Quiz
•
11th Grade - University
16 questions
Sistematizacija gradiva IX

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

Quiz
•
10th Grade - University
20 questions
DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

Quiz
•
University
15 questions
C - Parithabangal

Quiz
•
University
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 Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University