Compro2 (Midterm) File, Input, Output

Compro2 (Midterm) File, Input, Output

University

20 Qs

quiz-placeholder

Similar activities

Sistematizacija gradiva IX

Sistematizacija gradiva IX

9th Grade - University

16 Qs

dasar_html

dasar_html

10th Grade - University

20 Qs

Unit 1 Basic Computer Knowledge Quiz

Unit 1 Basic Computer Knowledge Quiz

University

18 Qs

BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

10th Grade - University

20 Qs

Group 8 - chapter 2 slides 14-24

Group 8 - chapter 2 slides 14-24

University

18 Qs

Pemahaman Sistem Komputer Kelas 8

Pemahaman Sistem Komputer Kelas 8

8th Grade - University

15 Qs

Usable Encryption Quiz

Usable Encryption Quiz

University

20 Qs

computer vision Quiz

computer vision Quiz

University

20 Qs

Compro2 (Midterm) File, Input, Output

Compro2 (Midterm) File, Input, Output

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Easy

Created by

Jan Eric Paghubasan

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?