冷水的质量为m,温度为t0,吸收一定的热量后,温度升高到t1,另有质量为2m的热

题型:选择题

问题:

冷水的质量为m,温度为t0,吸收一定的热量后,温度升高到t1,另有质量为2m的热水,放出同样多的热量后,温度也降到t1,那么热水原来的温度为(  )

A.

B.

C.

D.

考点:热量的计算
题型:选择题

下列各项属于订货型生产的产品是()。

A.化肥

B.船舶

C.炼油

D.轴承

题型:选择题
—______ will it take us to get there by bus?
—About two hours. 

A. How soon     
B. How often    
C. How long     
D. How far
题型:选择题

我国奉行独立自主的和平外交政策的依据是()。

A.国家利益和国际关系

B.国家利益和国家性质

C.党的性质和政府宗旨

D.国际关系和国家主权

题型:选择题

[说明]
类Queue表示队列,类中的方法如表4-12所示。
表4-12 类Queue中方法说明表

方法 说明
IsEmpty() 判断队列是否为空,如果队列不为空,返回true;否则,返回false
Enqueue(object NewNode) 入队操作
Dequeue() 出队操作。如果队列为空,则抛出异常
类Node表示队列中的元素;类EmptyQueueException给出了队列中的异常处理操作。
[Java代码]
public class testmain //主类
public static viod main (string args[])
Queue q= new Queue;
q.enqueue("first!");
q.enqueue("second!");
q.enqueue("third!");
(1)
while(true)
system.out.println(q.dequeue());

catch( (2) )

public class Queue //队列
node m_firstnode;
public Queue()m_firstnode=null;
public boolean isempty()
if (m_firstnode= =null)
return true;
else
return false;

public viod enqueue(object newnode)//入队操作
node next = m_firstnode;
if (next = = null) m_firstnode=new node(newnode);
else
while(next.getnext() !=null)
next=next.getnext();
next.setnext(new node(newnode));


public object dequeue() (3) //出队操作
object node;
if (is empty())
(4)
else
node =m_firstnode.getobject();
m_firstnode=m_firstnode.getnext();
return node;



public class node //队列中的元素
object m_data;
node m_next;
public node(object data) m_data=data; m_next=null;
public node(object data,node next) m_data=data; m_next=next;
public void setobject(object data) m_data=data;
public object getobject(object data) return m_data;
public void setnext(node next)m_next=next;
public node getnext() return m_next;

public class emptyqueueexception extends (5) //异常处理类
public emptyqueueexception()
system. out. println ( "队列已空!" );

题型:选择题

()就是满足客人娱乐、健体、健身需要的综合性营业部门。

A、康乐部

B、前厅部

C、客房部

D、销售部

更多题库