Java Programming Section 5

Java Programming Section 5

University

15 Qs

quiz-placeholder

Similar activities

Python Control Structures

Python Control Structures

University

20 Qs

Java Questions & Answers

Java Questions & Answers

University

10 Qs

Basic Java

Basic Java

University

15 Qs

UTS Teori PJR 2024

UTS Teori PJR 2024

University

20 Qs

Topic 1-1: Introduction to Computer & Programming Language

Topic 1-1: Introduction to Computer & Programming Language

University

10 Qs

JAVA QUIZ

JAVA QUIZ

University

15 Qs

6thApril

6thApril

University

10 Qs

JavaScript Quiz

JavaScript Quiz

University

12 Qs

Java Programming Section 5

Java Programming Section 5

Assessment

Quiz

Computers

University

Medium

Created by

Ferdy Aditya

Used 5+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these construct a DataInputStream instance?

New dataInputStream(new file("java.txt"));

New dataInputStream(new InputStream("java.txt"));

New dataInputStream(new writer("java.txt"));

New dataInputStream("java.txt");

New dataInputStream(new FileInputStream("java.txt"));

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The java.nio.file package has improved exception handling.

True or false?

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The java.io package has problems with no support for symbolic links.

True or false?

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The normalize() method removes redundant name elements from a qualified path.

True or false?

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The new Paths class lets you resolve .. (double dot) path notation.

True or false?

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following static methods is not provided by the Files class to check file properties or duplication?

Files.isWritable(Path p);

Files.isHidden(Path p);

Files.isArchived(Path p);

Files.isReadable(Path p);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can read input by character or line.

True or false?

True

False

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?