题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-03 02:25:48

[单项选择]某航空系统对机票的定义如下:机票由姓名、日期、航班号、起点、终点和费用组成;其中姓名必须大于等于两个字符,小于等于18个字符;航班号只能是YHK后接一位数字;终点只能是上海、北京中的一个;费用可选。以下哪个数据字典正确地描述了该机票信息______。
A. 机票=姓名+日期+航班号+起点+终点+(费用)
B. 机票=姓名+日期+航班号+起点+终点+(费用)
C. 机票=姓名+日期+航班号+起点+终点+费用
D. 机票=姓名+日期+航班号+起点+终点+费用

更多"某航空系统对机票的定义如下:机票由姓名、日期、航班号、起点、终点和费用"的相关试题:

[单项选择]某航空系统对机票的定义如下:机票由姓名、日期、航班号、起点、终点和费用组成;其中姓名必须大于等于两个字符,小于等于18个字符;航班号只能是YHK后接一位数字;终点只能是上海、北京中的一个;费用可选。以下哪个数据字典正确地描述了该机票信息______。
A. 机票=姓名+日期+航班号+起点+终点+(费用)
B. 机票=姓名+日期+航班号+起点+终点+(费用)
C. 机票=姓名+日期+航班号+起点+终点+费用
D. 机票=姓名+日期+航班号+起点+终点+费用
[简答题]简述操作系统的定义。
[填空题]原型化方法强调【 】地定义信息系统需求,并成为一种有效的系统需求定义策略。
[填空题]原型化方法强调  【20】  地定义信息系统需求,并成为一种有效的系统需求定义策略。
[判断题]“OPEN”票是不定期机票,即没有预订妥日期的无效机票。( )
[单项选择]TestClass类定义如下:
class TestClass

private:
intid;
char gender;
char*phone;
public:
TestClass ( ):id(0),gender(’#’),phone(NULL))
TestClass(int no,char ge=’#’,char *ph=NULL)
id=no;gender=ge;phone=ph;
;
下面类对象定义语句中错误的是( )。
A. TestClass myObj(i);
B. TestClass myObj(2,"11101111155");
C. TestClass myObj(1,’m’);
D. TestClass myObj;
[单项选择]类MyClass的定义如下:   classMvClass   {   public:   MyClass(){value=0;}   SetVariable(inti){value=i;}   private:   intvalue;   };   则对下列语句序列正确的描述是(  )。
A. 语句p=&my;是把对象my赋值给指针变量P
B. 语句MyClass*P,my;会调用两次类MyClass的构造函数
C. 对语句*
D. SetVariable(5)的调用是正确的
E. 语句p->SetVariable(5)与语句my.SetVariable(5)等价
[单项选择]类 Contain 的定义如下:
class Contain

private:
int x;
protected:
int z;
public:
class Embed

private:
int y;
public:
Embed ( )

y=100;

int Embed_Fun( );
MyEmbed;
int Contain_Fun( );

下列对上面定义的描述中,正确的是( )。
A. 定义类Embed对象的语句是:Contain::Embed Myobject;
B. 类Contain的成员函数Contain_Fun()中可以访问对象MyEmbed的私有成员y
C. 类Embed的成员函数Embed_Fun()中可以直接访问类Contain的所有成员
D. 类Embed的成员函数Embed_Fun()中只能直接访问类Contain的公有成员
[简答题]简述计算机操作系统的定义和特征。
[单项选择]TestClass类定义如下: class TestClass { private: intid; char gender; char*phone; public: TestClass ( ):id(0),gender(’#’),phone(NULL){) TestClass(int no,char ge=’#’,char *ph=NULL) {id=no;gender=ge;phone=ph;} }; 下面类对象定义语句中错误的是( )。
A. TestClass myObj(i);
B. TestClass myObj(2,"11101111155");
C. TestClass myObj(1,’m’);
D. TestClass myObj;
[填空题]已有定义如下:
struct node

int data;
struct node *next;
*p;
以下语句调用malloc函数,使指针p指向一个具有stmct node类型的动态存储空间。
请填空。
p=(struct node *)malloc( );
[单项选择]类 Contain 的定义如下: class Contain { private: int x; protected: int z; public: class Embed { private: int y; public: Embed ( ) { y=100; } int Embed_Fun( ); }MyEmbed; int Contain_Fun( ); }; 下列对上面定义的描述中,正确的是( )。
A. 定义类Embed对象的语句是:Contain::Embed Myobject;
B. 类Contain的成员函数Contain_Fun()中可以访问对象MyEmbed的私有成员y
C. 类Embed的成员函数Embed_Fun()中可以直接访问类Contain的所有成员
D. 类Embed的成员函数Embed_Fun()中只能直接访问类Contain的公有成员
[填空题]类Test定义如下: public class Test{ public static void main(String args[]) { String sty=new String("abcde"); char ch[]={’A’,’B’,’C’,’D’,’E’}; ml(str,ch); System.out.print(str+","); System.out.println(ch); } public static void ml(String s,char ch[]) { s="Hello"; ch[3]=’Z’; } } 那么程序的执行结果为: 【9】
[填空题]类Test定义如下:
public class Test
public static void main(String args[])

String sty=new String("abcde");
char ch[]=’A’,’B’,’C’,’D’,’E’;
ml(str,ch);
System.out.print(str+",");
System.out.println(ch);

public static void ml(String s,char ch[])

s="Hello";
ch[3]=’Z’;
那么程序的执行结果为: 【9】

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码