【多选题】【消耗次数:1】
参数在主程序与子程序或过程中的传递方式有( )。
形式参数
全局变量
私有变量
局部变量
参考答案:
复制
纠错
相关题目
【单选题】 当全局变量与函数内部的局部变量同名时,则在函数内部( )。
①  全局变量与局部变量都无效
②  全局变量有效
③  局部变量有效
④  全局变量与局部变量都有效
【单选题】 当全局变量与函数内部的局部变量同名时,则在函数内部( )
①  全局变量与局部变量都无效
②  全局变量有效
③  局部变量有效
④  全局变量与局部变量都有效
【单选题】 局部变量可以隐藏全局变量,那么在有同名全局变量和局部变量的情形时,可以用()提供对全局变量的访问。
①  作用域运算符
②  指针运算符
③  提取运算符
④  插入运算符
【判断题】 C语言中全局变量和局部变量不能同名。
①  正确
②  错误
【单选题】 C++语言中所有在函数中定义的变量,连同形式参数,都属于()
①  全局变量
②  局部变量
③  静态变量
④  函数
【单选题】 如果局部变量和成员变量同名,如何在局部变量作用域内引用成员变量?( )
①  不能引用,必须改名,使它们的名称不相同
②  在成员变量前加 this,使用 this 访问该成员变量
③  在成员变量前加 super,使用 super 访问该成员变量
④  不影响,系统可以自己区分
【判断题】 编码时尽量多用全局变量。()
①  正确
②  错误
【单选题】 以下有关过程中形式参数的描述,错误的是( )。
①  函数过程可以没有形式参数
②  形参数组只能按地址与实参数组结合
③  事件过程一定没有形式参数
④  窗体和控件也可以作为过程的参数
【判断题】 以变量名作为函数参数时,传递的信息是变量的值;以数组名作为函数参数时,传递的信息是实参数组首元素的地址。
①  正确
②  错误
【单选题】 在程序中不需要用public等命令明确声明与建立,刻直接使用的内存变量就是
①  局部变量
②  公共变量
③  私有变量
④  全局变量
随机题目
【单选题】 3.Many American people lost their jobs in the economic_________of 1929.
①  emergency
②  crisis
③  time
④  stage
【单选题】 Many people complain of the rapid _____ of modern life.
①  rate
②  speed
③  pace
④  growth
【单选题】 _____his sister, Jack is quiet and does not easily make friends with others.
①  Dislike
②  Unlike
③  Alik
④  Liking
【单选题】 The assistant wrapped it _____ for her as quickly as possible.
①  round
②  about
③  in
④  up
【单选题】 1.If my memory serves me, there was a_________hill near your hometown.
①  bare
②  empty
③  empty
④  nude
【单选题】 6. He is now___________the company.
①  in doubt
②  in possession of
③  in a hurry
④  in a sense
【单选题】 4.People are liable to______othersfromtheir own first impressions.
①  judge
②  peek
③  leak
④  look
【单选题】 9.The_______could not be followed up.
①  clue
②  rope
③  value
④  invent
【单选题】 They made a _____ search for the lost ring, but didn’t find it.
①  though
②  although
③  thorough
④  thoroughly
【单选题】 1. His paper was singled ______ as an example.
①  over
②  out
③  on
④  with