【单选题】【消耗次数:1】
在程序中不需要用public等命令明确声明与建立,刻直接使用的内存变量就是
局部变量
公共变量
私有变量
全局变量
参考答案:
复制
纠错
相关题目
【单选题】 当全局变量与函数内部的局部变量同名时,则在函数内部( )。
①  全局变量与局部变量都无效
②  全局变量有效
③  局部变量有效
④  全局变量与局部变量都有效
【单选题】 当全局变量与函数内部的局部变量同名时,则在函数内部( )
①  全局变量与局部变量都无效
②  全局变量有效
③  局部变量有效
④  全局变量与局部变量都有效
【单选题】 局部变量可以隐藏全局变量,那么在有同名全局变量和局部变量的情形时,可以用()提供对全局变量的访问。
①  作用域运算符
②  指针运算符
③  提取运算符
④  插入运算符
【判断题】 C语言中全局变量和局部变量不能同名。
①  正确
②  错误
【单选题】 如果局部变量和成员变量同名,如何在局部变量作用域内引用成员变量?( )
①  不能引用,必须改名,使它们的名称不相同
②  在成员变量前加 this,使用 this 访问该成员变量
③  在成员变量前加 super,使用 super 访问该成员变量
④  不影响,系统可以自己区分
【判断题】 JavaScript不声明变量的数据类型,变量可直接使用。
①  正确
②  错误
【判断题】 编码时尽量多用全局变量。()
①  正确
②  错误
【单选题】 不能释放内存变量的命令就是( )
①  release all
②  clear all
③  clear
④  clear memo
【单选题】 PHP中存在多种变量,其中在函数外定义的变量称之为( )。
①  局部变量
②  变量
③  超全局变量
④  全局变量
【单选题】 PHP中存在多种变量,其中在函数内部定义的变量称之为( )。
①  变量
②  局部变量
③  全局变量
④  内部变量
随机题目
【单选题】 Of course, talking about something which affects them personally is _____motivating for students.
①  chiefly
②  correctly
③  currently
④  eminently
【单选题】 A well written composition _____ good choice of words and clear organization among other things.
①  calls for
②  calls on
③  calls up
④  calls off
【单选题】 At her word she stood up and walked away, stopping at the window to pull back the curtain and _____.
①  look round
②  look out
③  look up
④  look on
【单选题】 It _____to see so many children in that mountainous area cannot even afford elementary education.
①  pains her
②  makes her pain
③  is paining
④  is pained
【单选题】 To an especially sensitive child, a simple scolding can be a _____experience.
①  hysterious
②  grievous
③  gracious
④  sensible
【单选题】 It is _____ with the customer not to let the shop assistants guess what she really likes and wants until the last moment.
①  in her honor
②  on her honor
③  a point of honor
④  an honor
【单选题】 It was requested that all of the equipment _____in the agreed time.
①  erected
②  would be erected
③  be erected
④  will be erected
【单选题】 I will be glad to get acquainted _____ the girl you introduced.
①  on
②  with
③  to
④  by
【单选题】 She stumbled and _____ the coffee.
①  spoiled
②  spilled
③  poured
④  splashed B
【单选题】 Nobody knows his _____ for helping us.
①  motive
②  motion
③  mood
④  moral