
Compro2 (Midterm) File, Input, Output
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Easy
Jan Eric Paghubasan
Used 8+ times
FREE Resource
Enhance your content in a minute
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
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
18 questions
Python: operadores y tipos de datos
Quiz
•
University
15 questions
Introduction to Programming
Quiz
•
University
19 questions
Kuis Kecerdasan Artifisial
Quiz
•
12th Grade - University
15 questions
ICT G7 Chapter 2.2 Direct Data Entry Devices
Quiz
•
7th Grade - University
15 questions
Mastering Python Control Flow
Quiz
•
University
15 questions
Python_MCQ_2
Quiz
•
University
16 questions
Java Basics Quiz for CH/PT Students
Quiz
•
University
20 questions
BAB 4 SISTEM KOMPUTER KELAS 8
Quiz
•
8th Grade - University
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
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
