更多“File Reader对象使用()方法把图片显示出来A、read As Binary StringB、read As TextC、read As Date URLD、read As Array Buffer”相关问题
  • 第1题:

    下列不属于FileInputStream输入流的read()成员函数的是( )。

    A.int read (byte b[],int offset,int len)

    B.int read (int line)

    C.int read ()

    D.int read (byte b[])


    正确答案:B
    解析:打开FileInputStream输入流,就可以从里面读取信息。read()成员函数有以下几种:int read();int read (byte b[])和int read (byte b[],int offset,int len)。

  • 第2题:

    下列程序使用系统标准输入System.in从键盘获得输入字符串,请选择正确的一项填入下列程序的横线处。 import java.io.*; public class ex26 { public static void main(String args[]) { byte buffer[] = new byte[128]; int n; try { n = for(int i = 0; i < n; i++) System.out .print ( (char)buffer [i] ); catch (IOException e) { System.out.print (e); } } }

    A.System.in.read(buffer)

    B.system.in.read(buffer)

    C.System.in.read0

    D.System.in(buffer)


    正确答案:A

  • 第3题:

    在MIB的管理信息结构中,表对象和行对象其访问特性应为()。

    • A、Read-Write
    • B、Read-Create
    • C、Read-Only
    • D、Not-Accessible

    正确答案:D

  • 第4题:

    下列不属于FileInputStream输入流的read()成员函数的是()

    • A、 int read();
    • B、 int read(byte b[]);
    • C、 int read(byte b[],int offset,int len);
    • D、 int read(int line);

    正确答案:D

  • 第5题:

    要从文件"file.dat"中读出第10个字节到变量c中,下列哪个方法适合?()

    • A、FileInputStream in=new FileInputStream("file.dat");in.skip(9);intc=in.read()
    • B、FileInputStream in=new FileInputStream("file.dat");in.skip(10);intc=in.read()
    • C、FileInputStream in=new FileInputStream("file.dat");intc=in.read()
    • D、RandomAccessFile in=new RandomAccessFile("file.dat");in.skip(9);intc=in.readByte()

    正确答案:D

  • 第6题:

    In order to ensure best read performance, which of the following indicates how large an application’s read buffer size should be if the filesystem to be read is striped across N disks using LVM striping?()

    • A、 N times the stripe unit size
    • B、 N times the VMM minfree parameter
    • C、 The same value as that of the VMM maxfree parameter
    • D、 The same value as that of  the VMM maxrndwrt parameter

    正确答案:A

  • 第7题:

    You have a read-only tablespace on read-only media. You want to perform a media recovery on the existing data files, but using a backup control file. The backup control file indicates that the status of the read-only tablespace was read/write when the control file was backed up. What should you consider?()

    • A、 take data files from the read-only tablespace offline before performing a recovery
    • B、 recovery using backup control file is not possible, so restore all the files from the last full database backup, and then open the database
    • C、 drop the read-only tablespace and re-create the tablespace after recovery
    • D、 perform a recovery; status of the tablespace in control file will be changed automatically

    正确答案:A

  • 第8题:

    You have a read/x7fonly tablespace on read/x7fonly media. You want to perform a media recovery on the existing data files, but using a backup control file. The backup control file indicates that the status of the read/x7fonly tablespace was read/write when the control file was backed up. What should you consider?()

    • A、drop the read­only tablespace and re­create the tablespace after recovery
    • B、take data files from the read­only tablespace offline before performing a recovery
    • C、perform a recovery; status of the tablespace in control file will be changed automatically
    • D、recovery using backup control file is not possible, so restore all the files from the last full database backup, and then open the database

    正确答案:B

  • 第9题:

    In which of the following scenarios is a tablespace recovery required?()

    • A、 when recovering a lost read-only tablespace from a read-only tablespace backup
    • B、 when recovering a lost read-only tablespace from a read-write tablespace backup when the database is running in  ARCHIVELOG mode
    • C、 when recovering a lost read-only tablespace from a read-write tablespace backup when the database is running in  NOARCHIVELOG mode and the changes in the online redo log files have been overwritten
    • D、 when recovering a lost read-only tablespace from a read-only tablespace backup using the backup of the control file, the control file was created using the ALTER DATABASE BACKUP CONTROLFILE TO TRACE statement, and this statement was issued when the tablespace was read-only

    正确答案:B

  • 第10题:

    单选题
    SNMPv2的5种访问级别由小到大排列正确的是()。
    A

    not-accessible,accessible-for-notify,read-only,read-write,read-create

    B

    not-accessible,read-only,read-write,read-create,accessible-for-notify

    C

    read-only,read-write,read-create,accessible-for-notify,not-accessible

    D

    read-only,read-write,read-create,not-accessible,accessible-for-notify


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    File Reader对象使用()方法把图片显示出来
    A

     read As Binary String

    B

     read As Text

    C

     read As Date URL

    D

     read As Array Buffer


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    假设file是文本文件对象,下列选项中,哪个用于读取一行内容?()
    A

    file.read()

    B

    file.read(200)

    C

    fle.readline

    D

    flereadlies()


    正确答案: A
    解析: 暂无解析

  • 第13题:

    要从“file.dat”文件中读出第10个字节存到变量C中,下列______方法是合适的。

    A.FileInputStream in=new FileInputStream("file.dat");in.skip(9);int c=in.read( );

    B.FileInputStream in=new FileInputStream("file.dat");in.skip(10);int c=in.read( );

    C.FileInputStream in=new FileInputStream("file.dat");int c=in.read( );

    D.RandomAccessFile in=new RandomAccessFile("file.dat");in.skip(9);int c=in.readByte( );


    正确答案:A
    解析: Java提供FileInputStream是将文件以流的方式读取,它是按照文件顺序从位置0开始读取的,RandomAccessFile是随机读取数据的;读取位置不一定从0开始,可以使用skip(n)方法来跳过n个字符,通过readByte( )方法读取一个字符,通过read( )方法可以读取输入流中的一个字符。所以要从第10个字节开始读取,应该用skip(10)方法,所以选项A正确。

  • 第14题:

    SNMPv2的5种访问级别由小到大排列正确的是()。

    • A、not-accessible,accessible-for-notify,read-only,read-write,read-create
    • B、not-accessible,read-only,read-write,read-create,accessible-for-notify
    • C、read-only,read-write,read-create,accessible-for-notify,not-accessible
    • D、read-only,read-write,read-create,not-accessible,accessible-for-notify

    正确答案:A

  • 第15题:

    要从文件" file.dat"文件中读出第10个字节到变量C中,下列哪个方法适合? ()

    • A、 FileInputStream in=new FileInputStream("file.dat"); in.skip(9); int c=in.read();
    • B、 FileInputStream in=new FileInputStream("file.dat"); in.skip(10); int c=in.read();
    • C、 FileInputStream in=new FileInputStream("file.dat"); int c=in.read();
    • D、 RandomAccessFile in=new RandomAccessFile("file.dat"); in.skip(9); int c=in.readByte();

    正确答案:D

  • 第16题:

    InputStream子类对象继承了InputStream类的方法read(),read()方法的定义有()。

    • A、publicintread()
    • B、publicintread(byteb[])
    • C、publiccharread()
    • D、publiccharread(byteb[])

    正确答案:A,B

  • 第17题:

    SNMP不能改变主机的IP地址是由于IP地址表中管理对象的访问特性为()

    • A、Not-Accessible
    • B、Read-Only
    • C、Read-Create
    • D、Read-Write

    正确答案:B

  • 第18题:

    假设file是文本文件对象,下列选项中,哪个用于读取一行内容?()

    • A、file.read()
    • B、file.read(200)
    • C、fle.readline
    • D、flereadlies()

    正确答案:C

  • 第19题:

    One of the tablespaces is read/x7fonly in your database. The loss of all control files forced you to re/x7fcreate the control file.  Which operation do you need to perform after re/x7fcreating the control file and opening the database?()

    • A、drop and re­create the read­only tablespaces
    • B、rename the read­only data files to their correct file names
    • C、change the tablespace status from read/write to read­only
    • D、re­create the read­only tablespace because it is automatically removed

    正确答案:B

  • 第20题:

    You notice a high number of waits for the db file scattered read and db file sequential read events in the recent Automatic Database Diagnostic Monitor (ADDM) report. After further investigation, you find that queries are performing too many full table scans and indexes are not being used even though the filter columns are indexed. Identify three possible reasons for this.()

    • A、Missing or stale histogram statistics
    • B、Undersized shared pool
    • C、High clustering factor for the indexes
    • D、High value for the DB_FILE_MULTIBLOCK_READ_COUNT parameter
    • E、Oversized buffer cache

    正确答案:A,C,D

  • 第21题:

    The page will be posted to the server after one or more image files are selected for upload.You need to ensure that all unuploaded files are saved to the server within one call to a single event handler.  What should you do? ()

    • A、Read the HttpRequest.Files property and call the HttpPostedFile.SaveAs method for each file.
    • B、Read the HttpRequest.inputStream property and call the System.Io.File.WriteLines method for each file.
    • C、Read the HttpRequest.inputStream property and call the HttpResponse.WriteLine method for each file.
    • D、Read the HttpRequest.Files property and call the System.Io.File.WriteLines method for each file.

    正确答案:A

  • 第22题:

    单选题
    One of the tablespaces is read-only in your database. The loss of all control files forced you to re-create the control file. Which operation do you need to perform after re-creating the control file and opening the database?()
    A

     drop and re-create the read-only tablespaces

    B

     rename the read-only data files to their correct file names

    C

     change the tablespace status from read/write to read-only

    D

     re-create the read-only tablespace because it is automatically removed


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    In order to ensure best read performance, which of the following indicates how large an application’s read buffer size should be if the filesystem to be read is striped across N disks using LVM striping?()
    A

     N times the stripe unit size

    B

     N times the VMM minfree parameter

    C

     The same value as that of the VMM maxfree parameter

    D

     The same value as that of  the VMM maxrndwrt parameter


    正确答案: A
    解析: 暂无解析