Which of the following File and Dir methods can be used to delete both files and folders?

A. remove
B. delete
C. kill
D. del


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. When an argument is passed by reference, the called method can access the argument’s value in the caller directly but cannot modify it. b. All arguments in Java are passed by value. c. To pass an individual array element to a method, use the indexed name of the array. d. To pass an object reference to a method, simply specify in the method call the name of the variable that refers to the object.

Computer Science & Information Technology

The first portion of the URL indicates the ____.

A. domain name B. file extension C. machine name D. protocol

Computer Science & Information Technology

Each link in a binary tree node points to a(n) ____ of that node.

A. parent B. child C. value D. sibling

Computer Science & Information Technology

What is the output of the following code:   loopCount = 1;while(loopCount < 3){   System.out.println("Hello");   loopCount = loopCount + 1;}

A. Hello B. HelloHello C. HelloHelloHello D. HelloHello

Computer Science & Information Technology