网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在一个过程中有如下语句Const a=80,b=30则在该过程中的正确语句是()。
- A、c=a+b
- B、a=100
- C、a=-a
- D、b=a
参考答案
更多 “在一个过程中有如下语句Const a=80,b=30则在该过程中的正确语句是()。A、c=a+bB、a=100C、a=-aD、b=a” 相关考题
考题
下列语句中,错误的是______。A.const int buffer=256;B.const double*point;C.int const buffer=256;D.double*const point;
考题
设在SQL Server 2008某数据库中有按如下格式定义的存储过程首部:CREATE PROC Pl@X int,@Y int,@Z int output AS…请补全下列调用该存储过程的语句。DECLARE@S intEXEC Pl 20,30,@S【7】
考题
有如下程序:#includeusing namespace std;class Base{private:void funl() const{cout"funl";}protected:void fun2() const{cout"fun2";}public:void fun3() const{cout"fun3";}};class Derived:protected Base{public:void fun4() const{cout"fun4";}};int main(){Derived obj;obj.funl(); // ①obj.fun2(); // ②obj.fun3(); // ③obj.fun4(); // ④return 0;}其中有语法错误的语句是A . ①②③④B . ①②③C . ②③④D . ①④
考题
( 18 ) 下列语句中,错误的是A ) const int buffer=256;B ) const double *point;C ) int const buffer=256;D ) double * const point;
考题
下列语句中错误的是( )。A.const int a;B.const int a=10;C.const int*point=0;D.const int*point=new int(10);
考题
下列关于Sub过程的叙述正确的是A.一个Sub过程必须有一个Exie Sub语句B.一个Sub过程必须有一个Enb Sub语句C.在Sub过程中可以定义一个Function过程D.可以用Goto语句退出Sub过程
考题
某类中有一个无参且无返回值的常成员函数Show,则正确的Show函数原型是A.const void Show();B.void const Show();C.void Show()const;D.void Show(const);
考题
有如下程序: include using namespace std; class Base { private:
有如下程序: #include<iostream> using namespace std; class Base { private: void funl()const {cout<<"funl";} protected: void fun2() const{cout<<"fun2";} public; void fun3() const {cout<<"fun3";} }; class Derived:protected Base { public; void fun4() const {cout<<"fun4";} }; int main() { Derived obj; obj.funl(); //① obj.fun2(); //② obj.fun3(); //③ obj.fun4(): //④ return 0; } 其中有语法错误的语句是A.①②③④B.①②③C.②③④D.①④
考题
对于语句const int x=10;的描述正确的是( )。A.该语句不允许定义为int const x=10;B.在程序中可以重新对X赋值C.变量X不能使用+ +运算符D.const关键字只能用来修饰常量
考题
在下列的标识符常量的定义语句中,错误的定义语句是()。A、const double PI=3.14159;B、const int N=20;C、const char ch;D、const bool mark=true;
考题
关于无条件转移语句Goto标号的说明,下列说法错误的是()。A、该语句的功能是把控制转移到“标号”所在的程序行B、其中的标号可以是一个标识符或整型数C、程序中必须为每一个Goto语句提供一个唯一的转向入口D、Goto语句与其相应的转向入口可以在同一过程中,也可在不同过程中。
考题
单选题在一个过程中有如下语句Consta=80,b=30则在该过程中的正确语句是()。A
c=a+bB
a=100C
a=-aD
b=a
热门标签
最新试卷
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)