建立新图形文件,用过下拉式菜单的操作方式是()A、File(文件)/OPEN(打开)B、File(文件)/Save(存盘)C、File(文件)/SaveAS(另存为)D、File(文件)/New(新建)

题目

建立新图形文件,用过下拉式菜单的操作方式是()

  • A、File(文件)/OPEN(打开)
  • B、File(文件)/Save(存盘)
  • C、File(文件)/SaveAS(另存为)
  • D、File(文件)/New(新建)
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

( 16 )要建立文件流并打开当前目录下的文件 file.dat 用于输入,下列语句中错误的是

A ) ifstream fin=ifstream.open ( "file.dat" ) ;

B ) ifstream*fir.=new ifstream ( "file.dat" ) ;

C ) ifstream fin; fin.open ( "file.dat" ) ;

D ) ifstream *fin=new ifstream ( ) ; fin 一 >open ( "file.dat" ) ;


正确答案:A

第2题:

Adobe illustrator在File菜单下提供了四种存储命令,它们分别是()

A.Save(存储)、SaveforWeb(存储为Web文件)

B.SaveAs(存储为)

C.SaveaCopy(存储副本)

D.SaveforGraphic(存储为图形文件)


参考答案:A, B, C

第3题:

若磁盘上已存在某个文本文件,其全路径文件名为 d:\ncre\test.txt ,下列语句中不 能打开该文件的是

A . ifstream file("d:\ncre\test.txt") ;

B . ifstream file("d:\ncre\test.txt");

C . ifstream file; file.open("d:\ncre\test.txt");

D . ifstream* pFile=new ifstream("d:\ncre\test.txt");


正确答案:A

 

第4题:

在CAD中把一个画好或编辑好的图形保存到磁盘上,可使用的方法有()

A.文件[File]保存[Save]

B.文件[File]另存为[Saveas]

C.鼠标左键点击工具条上保存按钮

D.输出(Export)


正确答案:ABCD

第5题:

若磁盘上已存全路径文件名为c:\ctest\test.txt的文件,下面语句中不能打开该文件的是( )。

A.ifstream *pFile=new ifstream("c:\\ctest\\test.txt");

B.ifstream file("c:\\ctest\\test.txt");

C.ifstream file;file.open("c:\\ctest\\test.txt");

D.ifstream file("c:\etest\test.txt");


正确答案:D

第6题:

UNIX系统命令catfile1>>file2功能是( )。

A、将文件file2的内容添加到文件file1的末尾

B、将文件file1的内容添加到文件file2的末尾

C、连接文件file1和file2

D、显示文件file1和file2


参考答案:B

第7题:

file=open('users/yourname/desktop/file','w')file.write('helloworld!')这句代码的作用是()。

A.打开一个文件,不管文件在不在

B.打开文件并写入

C.在桌面上打开一个文件(路径得看个人具体情况),w的意思是,如果有则在文件里写入helloworld,如果没有则创建一个文件。

D.打开文件,没有报错


参考答案:C

第8题:

下面创建一个新文件对象方法错误的是( )。

A.File myFile; myFile=new File("mulu/file");

B.File myFile=new File();

C.myFile=new FileC/mulu","filel");

D.File myDir=new file("/mulu"); myFile=new File(Dir, "filer');


正确答案:B

第9题:

要建立文件流并打开当前目录下的文件6le.dat用于输入,下列语句中错误的是( )。

A.ifstream fin=ffstream.open(”file.dat”);

B.ifstream*fin=new ifstream(”file.dat”);

C.ifstream fin;fin.open(”file.dat”);

D.ifstream*fin=new ifstream;fin->open(”file.dat”);


正确答案:A
本题考查对文件流输入的操作,可以调用文件流的成员函数pen,一般形式如下:文件流对象.0pen(磁盘文件名,输入/输出方式)。根据以上格式,可以判断A选项错误。

第10题:

若磁盘上已存在某个文本文件,其全路径文件名为d:\ncre\test.txt,下列语句中不能打开该文件的是

A.ifstream file("d:\ncre\test.txt");

B.ifstream file("d:\\ncre\\test.txt");

C.ifstream file;file.open("d:\\ncre\\test.txt");

D.ifstream* pFile=new ifstream("d:\\ncre\\test.txt");


正确答案:A
解析:本题考查的知识点是转义字符。在C++的字符常量或字符串中,以“\”开头的一系列字符被看作一个特殊的字符,即转义字符。要表示'\'字符时,必须使用转义字符'\\'。故本题应该选择A。

更多相关问题