网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
民航气象数据库系统的BSB数据类型包括IN、FILE、OUT、()、SUB等五种。
参考答案
更多 “民航气象数据库系统的BSB数据类型包括IN、FILE、OUT、()、SUB等五种。” 相关考题
考题
要求打开文件d:\file.dat,可写入数据,正确的语句是()。
A.ifstreaminfile("d:\file.dat",ios::in);B.ifstreaminfile("d:\\file.dat",ios::in);C.ofstreaminfile("d:\file.dat",ios::out);D.fstreaminfile("d:\\file.dat",ios::in|ios::out);
考题
要想以读方式打开文件“D:\File.txt”,以下不能实现目的的语句是()。A、ifstreaminf("D:\\FilEtxt",ios::in);B、ifstreaminf("D:\\File.txt");C、ofstreaminf("D:\\File.txt",ios::out);D、fstreaminf("D:\\File.txt",ios::in|ios::out);
考题
Whatwritesthetext“”totheendofthefile“file.txt”?()
A.OutputStreamout=newFileOutputStream(“file.txt”); Out.writeBytes(“/n”);B.OutputStreamos=newFileOutputStream(“file.txt”,true); DataOutputStreamout=newDataOutputStream(os);out.writeBytes(“/n”);C.OutputStreamos=newFileOutputStream(“file.txt”); DataOutputStreamout=newDataOutputStream(os);out.writeBytes(“/n”);D.OutputStreamos=newOutputStream(“file.txt”,true); DataOutputStreamout=newDataOutputStream(os);out.writeBytes(“/n”);
考题
JAVA File类执行下面这段程序为什么会出现异常 File file=new File(args[0]); 这句是什么意思??
importjava.io.*;importjava.util.*;publicclassFileClass{/***@paramargs*/publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubtry{Filefile=newFile(args[0]);System.out.println(args[0]+"文件");if(file.isFile()){//是否为文件System.out.print(file.canRead()?"可读":"不可读");System.out.print(file.canWrite()?"可写":"不可写");System.out.print(file.length()+"字节");//注意不能调用数组类型File[]的length()例:File[]files=file.listFiles();不可以这么调用filess.length()}else{//列出所有文件及目录File[]files=file.listFiles();ArrayListFilefileList=newArrayListFile();for(inti=0;ifiles.length;i++){//先列出目录if(files[i].isDirectory()){//是否为目录//取得路径名System.out.println("路径"+"["+files[i].getPath()+"]");}else{//文件先存入fileList,待会再列出fileList.add(files[i]);}}//列出文件for(Filef:fileList){System.out.println(f.toString());}System.out.println();}}catch(ArrayIndexOutOfBoundsExceptione){System.out.println("using:javaFileDemopathname");}}}结果:using:javaFileDemopathname是不是创建的对象所代表的文件没有被创建成功
考题
下列程序中,要求输出一个特定文件(这里是ex2_1.java)的相关信息,包括文件的名字,相对路径以及文件的长度。请将程序补充完整。程序运行结果如下:name:ex2_1.javapath:ex2_1.javalength: 299import java.io.*;public class ex2_1{public static void main(String[] args) {File file2_1 = new File("ex2_1.java");System.out.println("name:"+file2_1.____________ );System.out.println("path:"+file2_1.____________ );System.out.println("length:"+file2_1.____________ );}}
考题
Which two construct an OutputSream that appends to the file “file.txt”? ()A、 OutputStream out=new FileOutputStream(“file.txt”);B、 OutputStream out=new FileOutputStream(“file.txt”, “append”);C、 FileOutputStream out=new FileOutputStream(“file.txt”, true);D、 FileOutputStream out=new FileOutputStream(new file(“file.txt”));E、 OutputStream out=new FileOutputStream(new File(“file.txt”)true);
考题
《中国气象局关于发展现代气象业务的意见》中指出,公共气象服务业务包括:气象灾害防御管理、决策气象服务、()和专业专项气象服务。A、农业气象服务B、民航气象服务C、公众气象服务D、预报预测气象服务
考题
Which of the following will occur if an operator types the command vi file.out?()A、If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.B、If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.C、If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.D、If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.
考题
在民航气象数据库通信系统中提供三种控制数据:其中BSB用于决定气象公报和产品的处理原则;()用于收集气象报告,确定报告的处理原则;()用于定时作业,也可看作定时编辑、定时转发、定时广播的时间表。
考题
目前,我国民航国际航线的气象保障主要由()航空气象中心提供,为此民航每年需支付大量外汇(约占伦敦航空气象中心总收入的1/5);而国际航空气象服务也正在形成被()和()两大航空气象中心垄断的格局。
考题
单选题《中国气象局关于发展现代气象业务的意见》中指出,公共气象服务业务包括:气象灾害防御管理、决策气象服务、()和专业专项气象服务。A
农业气象服务B
民航气象服务C
公众气象服务D
预报预测气象服务
考题
单选题Which of the following will occur if an operator types the command vi file.out?()A
If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.B
If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.C
If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.D
If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.
考题
多选题创建一个向文件“file.txt”追加内容的输出流对象的语句有()。AFileOutputStream out=new FileOutputStream(“file.txt”,true);BOutputStream out=new FileOutputStream(“file.txt”,“append”);COutputStream out=new FileOutputStream(“file.txt”);DFileOutputStream out=new FileOutputStream(new file(“file.txt”));EOutputStream out=new FileOutputStream(new File(“file.txt”),true.;
考题
单选题What writes the text “ ” to the end of the file “file.txt”?()A
OutputStream out= new FileOutputStream (“file.txt”); Out.writeBytes (“ /n”);B
OutputStream os= new FileOutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);C
OutputStream os= new FileOutputStream (“file.txt”); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);D
OutputStream os= new OutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
考题
单选题要求打开文件 D:///file.dat,并能够写入数据,正确的语句是()。A
ifstream infile(D:////file.dat,ios::in);B
ifstream infile(D:////file.dat,ios::out);C
ofstream outfile(D:////file.dat,ios::in);D
fstream infile(D:////file.dat,ios::inI.os::out);
热门标签
最新试卷