niusouti.com

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

题目
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.


相似考题
更多“Which of the following will occur if an operator types the command vi file.out?() ”相关问题
  • 第1题:

    如果在表达式++x/y中,++是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为

    A.(operator++(x) ) .operator/(y)

    B.(operator++(0) ) .operator/(y)

    C.operator/((operator++(x,0) ) ,y)

    D.operator/((operator++(0) ) ,y)


    正确答案:A
    解析:C++中用成员函数重载++x为:x. operator++( ) ,用友元函数重载++x为:operator ++(x) ,用成员函数重载x/y为:x. operator/(y) ,用友元函数重载x/y为:operator/(x, y) 。

  • 第2题:

    That sound doesn’t _____ in his language so it’s difficult for him to pronounce.

    [A] happen

    [B] take place

    [C] occur

    [D] run


    正确答案:C

  • 第3题:

    如果表达式--x+y中,--是作为成员函数重载的,+是作为成员函数重载的,则该表达式还可为( )

    A.y.operator+(x.operator--(0))
    B.y.operator+(x.operator--())
    C.y.operator+(operator--(x,0))
    D.operator+(x.operator--())

    答案:B
    解析:

  • 第4题:

    窗体上有3个按钮Commandl、Command2和Command3,如以下代码: Private Sub Commandl Click() Command2.Enabled:Fal3e Command3.Vi3ible=Fal3e End Sub 该程序的功能是 ( )

    A.当单击按钮Command1时, Command2和Command3按钮不可用

    B.当单击按钮Command1时, Command2和Command3按钮不可见

    C.当单击按钮Command1时, Cammand2按钮不可用和Command3按钮不可见

    D.当单击按钮Command1时, Command2按钮不可见和Command3按钮不可用


    正确答案:C
    解析:本题主要是对命令按扭属性的考查。其中Enabled肩性用来表示按扭是否可用。Visible属性用来表示按扭是否可见。故选项C正确。

  • 第5题:

    [A] occur

    [B] engage

    [C] confront

    [D] encounter


    正确答案:D
    31. D 
    由第三段的最后一句话:If stressful situations are continually encountered, …可以找到此题答案。People of all ages encounter stress. 各个年龄段的人都会遇到压力。[D] encounter 遭遇,遇到,强调“偶然遇见”;[A] occur vi. 发生,出现;[B] engage vt. 使忙碌,雇佣,预定,使从事于;例:be engaged in…忙于(从事)……。[C] confront①面对;面临;遭遇。例:to confront danger(勇敢地)面对危险②(与with 连用)使面对;使面临。例:be confronted with crisis 面临危机。

  • 第6题:

    —How did you like Nick′s performance last night?
    —To be honest,his singing didn′t__________to me much.

    A.appeal
    B.belong
    C.refer
    D.occur

    答案:A
    解析:
    考情点拨:本题考查动词辨析应试指导:句意:——你觉得昨晚Nick的表演怎么样?——说实话,他的演唱并不怎么吸引我。appeal to吸引;belong to属于;refer to提到,涉及;occur to突然想到。