题目内容 (请给出正确答案)
[单选题]

(完形填空)()

A.name

B.place

C.symbol

D.rule

单选题,请选择你认为正确的答案:
提交
你的答案:
错误
正确
答案
B、place
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“(完形填空)()”相关的问题

第1题

(完形填空)()

A.rule

B.nimal

C.symbol

D.name

点击查看答案

第2题

●在下列程序中:Program test(input,output);var i.j:integer;procedure calc(p1,p2:integer);beg

●在下列程序中:

Program test(input,output);

var i.j:integer;

procedure calc(p1,p2:integer);

beginp2:=p2*p2 pl:=pl-p2;p2:=p2-p1;end{caic}

begin{main}i:=2;j:=3;

calc(i,j);write(j);

end{main}

当参数传递采用引用方式(Call by reference)时,所得结果j= (6) ;

当参数传递采用换名方式(Call by name)时,所得结果,j= (7) ;

当参数传递采用赋值方式(Call by value)时,所得结果,j= (8) 。

(6) A.3

B.6

C.10

D.16

(7) A.3

B.6

C.10

D.16

(8) A.3

B.6

C.10

D.16

点击查看答案

第3题

本题中,通过菜单“Connect”显示一个对话框,单击“ok”按钮后,所填写的内容就会传回到主窗口并显示出
来。

import java.awt.*

import java.awt.event.*;

import javax.swin9.*;

public class java3 extends JFrame. implements ActionL-

istener{

public java3(){

setTitle("java3");

setSize(300,300);

addWindowListener(new WindowAdapter(){

public void windowClosing(WindowEvent e){

System.exit(0);

}

});

JMenuBar mbar = new JMenuBar();

setJMenuBar(bar);

JMenu fileMenu=new JMenu("File");

mbar.add(fileMenu);

connectltem=new JMenuhem("Connect");

connecthem.addActionListener(this);

fileMenu.add(connecthem);

exithem=new JMenuhem("Exit");

exithem.addActionListener(this);

fileMenu.add(exithem);

}

public void actionPerformed(ActionEvent evt){

Object source=evt.getSource();

if(source= =connecthem){

Connectlnfo transfer=new ConnectInfo ("your-

name","pw");

if(dialog= =null)

dialog=new ConnectDialog(this);

if(dialog.showDialog(transfer)){

String uname=transfer.username;

String pwd=transfer.password;

Container contentPane=getContentPane();

contentPane.add(new JLabel("username="+

uname+",password="+pwd),"South");

validate();

}

}

else if(source= =exitltem)

System.exit(0);

}

public static void main(String[]args){

JFrame. f=new java3();

f.show();

}

private ConnectDialog dialog=null;

private JMenuhem connecthem;

private JMenuhem exithem;

}

class Connectlnfo{

public String username;

public String password;

public Connectlnfo(String U,String p){

username=u;password=P;

}

}

class ConnectDialog extends JDialog implements Ac-

tionListener{

public ConnectDialog(){

super(parent,"Connect",true);

Container contentPane=getContentPane();

JPanel pl=new JPanel();

pl.setLayout(new GridLayout(2,2));

pl.add(newJLabel("User name:"));

pl.add(username=new JTextField(""));

pl.add(new JLabel("Password:"));

pl.add(password=new JPasswordField(""));

contentPane.add("Center",pl);

Panel p2=new Panel();

okButton=addButton(p2,"ok");

cancelButton=addButton(p2。"Cancel");

contentPane.add("South",p2);

setSize(240,120);

}

JButton addButton(Container C,String name){

JButton button=new JButton(name);

button.addActionListener(this);

C.add(button);

return button;

}

public void actionPerformed(ActionEvent evt){

object source=evt.getSource();

if(source= =okButton){

ok=true:

setVisible(false);

}

else if(source= =cancelButton)

setVisible(false);

}

public void showDialog(Connectlnfo transfer){

username.setText(transfer.username);

password.setText(transfer.password);

ok=false;

show();

if(ok){

transfer.username=username.getText();

transfer.password=new String(password.get-

Password());

}

return ok;

}

private JTextField username

private JPasswordField password;

private boolean ok;

private JButton okButton;

private JButton cancelButton;

}

点击查看答案

第4题

A: Good morning.My name is Mr.Brown.I'm from Australia.Here is my card. B: Thank you.I'm pl

A: Good morning.My name is Mr.Brown.I'm from Australia.Here is my card.

B: Thank you.I'm pleased to meet you, Mr.Brown.My name is Kathy Perless, the representative of GREen Textile Import and Export Corporation.

A: Pleased to meet you too, Ms.Perless.I travel a lot every year on business, but this is my first visit to your country.I must say I have been much impressed by your friendly people.

B: Thank you for saying so.Have you seen the exhibition halls? On display are most of our products, such as silk, woolen knitwear, cotton piece goods, and garments.

A: Oh, yes.I had a look yesterday.I found some of the exhibits to be fine in quality and beautiful in design.The exhibition has successfully displayed to me what your corporation handles.I've gone over the catalogue and the pamphlets enclosed in your last letter.I've got some idea of your exports.I'm interested in your silk blouses.

B: Our silk is known for its good quality.It is one of our traditional exports.Silk blouses are brightly colored and beautifully designed.They've met with great favor overseas and are always in great demand.

A: Some of them seem to be of the latest style.Now I've a feeling that we can do a lot of trade in this line.We wish to establish relations with you.

B: Your desire coincides with ours.

A: Concerning our financial position, credit standing and trade reputation, you may refer to Bank of Hong Kong, or to our local Chamber of Commerce or inquiry agencies.

B: Thank you for your information.As you know, our corporation is a state-owned one.We always trade with foreign countries on the basis of equality and mutual benefit.Establishing business relations between us will be to our mutual benefit.I have no doubt that it will bring about closer ties between us.

A: That sounds interesting.I'll send a fax home.As soon as I receive a definite answer, I'll make a specific inquiry.

B: We'll then make an offer as soon as possible.I hope a lot of business will be conducted between us.

A: So do I.

点击查看答案

第5题

(完形填空)()

A.like

B.or

C.with

D.of

点击查看答案

第6题

完形填空难度()

A.大

B.一般

C.小

点击查看答案

第7题

完形填空12()

A.bring

B.take

C.plant

D.water

点击查看答案

第8题

阅读以下说明,回答问题1至问题3,将答案填入答题纸对应栏内。【说明】在某嵌入式处理器上,编写以下两

阅读以下说明,回答问题1至问题3,将答案填入答题纸对应栏内。

【说明】

在某嵌入式处理器上,编写以下两段秸序(编译选项中,存储采用4字节对齐方式)。

程序段1:

struct studentl {

char name [10] ;

long sno;

char sex;

float score [4] ;

*pl, al, bl;

程序段2:

union student2 {

char name [10] ;

long sno;

char sex,

float score [4] ;

*p2, a2, b2;

汉诺塔问题说明:有n个盘子在A处,盘子从小到大,最上面的盘予最小,程序要

把这n个盘子从A处搬到C处,可以在E处暂存,但任何时候都不能出现大的盘子压

在小的盘子上面的情况。

下列是一段求解汉诺塔问题的C语言程序。

include <stdio . h>

void move (int n, char a, char c)

{

static int Step=l;

printf ("Step %2d: Disk %d %c..--> %c\n", Step, n, a, c) ;

Step++;

}

void Hanoi (int n, char a, char b, cnar c)

{

if (n>l)

{

Hanoi (n-l, a, c, b) ;

move (n, a. c) ;

Hanoi (n-l, b, a, c) ;

}

else move (n,a,c);

}

void main()

{

Hanoi(3, ’A’, 、B’, 、C ’);

}

【问题1】(3分)

C语言函数的一般格式为:

<函数类型> <函数名> (<参数列表>)

{

<函数体>;

}

简答下述问题,将答案填写在答题纸中对应栏目。

(l)<函数类型>的含义是什么?

(2)<参数列表>的含义是什么?

(3)C语言函数之间的参数如何传递?

【问题2] (6分)

回答问题,将答案填写在答题纸中对应栏目。

(1)sizeof(struct studentl)结果是多少

(2) sizeof(union student2)结果是多少

(3)变量a2在程序段2中定义,写出执亍以下语句后的输出结果。

strcpy (a2. name,¨zhangwei¨);

a2.sex=’f’;

printf ("%s¨, a2 .name);

【问题3](6分)

仔细阅读求解汉诺塔问题的C语言程序,完成其中(1)~(4)空白填空,将答案

填入答题纸的对应栏内。

运行结果为:

Step1:Disk l A---->C

Step 2: (l)

Step 3: Disk I C---->B

Step4: (2)

Step 5: (3)

Step 6: Disk 2 B---->C

Step 7: (4)

点击查看答案

第9题

(完形填空)()

A.in

B.to

C.with

D.t

点击查看答案

第10题

完形填空11()

A.happiness

B.kindness

C.sadness

D.illness

点击查看答案

第11题

(完形填空)()

A.on

B.like

C.or

D.rom

点击查看答案
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信