Programming - Streams and Files
You Are Here :: Home > JAVA > Streams and Files - General Questions
25. |
___________________ method moves the file pointer to a specific location.
|
A. |
seek() |
B.
|
stop() |
C.
|
length()
|
D.
|
getFilePointer()
|
|
Answer: Option A
Explanation:
seek() method moves the file pointer to a specific location. |
|
26. |
___________________ gives the length of the file.
|
A. |
seek() |
B.
|
stop() |
C.
|
length()
|
D.
|
getFilePointer()
|
|
Answer: Option C
Explanation:
length() gives the length of the file. |
|
27. |
____________________ gives the current location of the file pointer.
|
A. |
seek() |
B.
|
stop() |
C.
|
length()
|
D.
|
getFilePointer()
|
|
Answer: Option D
Explanation:
getFilePointer() gives the current location of the file pointer. |
|
28. |
______________________ method of File Reader class reads the character and returns its integer value.
|
A. |
read() |
B.
|
write() |
C.
|
readLine()
|
D.
|
writeLine()
|
|
Answer: Option A
Explanation:
read() method is used to read data in bytes.It reads the character and returns its integer value. |
|
29. |
RAF Stands for _________________________________.
|
A. |
Random Access File |
B.
|
Read Access File |
C.
|
Random Access Format
|
D.
|
Random Appliance File
|
|
Answer: Option A
Explanation:
RAF Stands for Random Access File. |
|
30. |
______________ class has some functionalities which support the manipulation of file pointer.
|
A. |
Random Access File |
B.
|
Read Access File |
C.
|
Random Access Format
|
D.
|
Random Appliance File
|
|
Answer: Option A
Explanation:
RAF Stands for Random Access File is a class has some functionalities which support the manipulation of file pointer. |
|
« prev
next »