单选

有3个关系R、S和T如下:

由关系R和S通过运算得到关系T,则所用的运算为(  )。

  • A.并 
  • B.自然连接
  • C.笛卡儿积 
  • D.交
参考答案
您可能感兴趣的试题

本题中,主窗口中有两个下拉菜单,一个控制绘制图形的颜色,另一个控制绘制的图形,在画板中单击鼠标,则以单击的位置为左上角、以选定的颜色绘制选定的图形。

import java.awt.*;

import java.awt.event.*;

class java3 extends Frame. {

String[]figureNames={"圆形","椭圆形","正

方形","长方形");

String[]colorNames={"红色","绿色","蓝

色","黄色"};

Color[]colorValues={Color.red,Color.green,

Color.blue,Color.yellow);

Choice chFigure=new Choice;

Choice chColor=new Choice;

int curX,curY;

java3{

super("java3");

addWindowListener(new WindowAdapter{

public void windowClosing(WindowEvent e){

System.exit(O);

}

});

Panel P=new Panel(new GridLayout(1,O));

for(int i=0;i

ehFigure.addhem(figureNames[i]);

}

for(int i=0;i

chColor.addhem(eolorNames[i]);

}

P.add(chColor);

P.add(chFigure);

add(p,BorderLayout.NORTH);

addMouseListener(this)

setSize(300,300);

show;

}

public void update(Graphics g){

g.getColor(colorValues[chColor,getSelectedIndex

])

switch(chFigure.getSelectedlndex){

case 0;

g.fillOval(curX,curY,30,30);

break;

case l:

g.fillOval(curX,curY,30,50);

break;

case 2:

g.fillRect(curX,curY,30,30);

break;

case 3:

g.fillRect(curX,curY,30,50);

break;

}

}

class MouseEventListener implements MouseAda-

pter{

public void mousePressed(MouseEvent evt){

curX=evt.getX;

curY=evt.getY;

repaint;

}

}

static public void main(String[]args){

new java3;

}

)

在Java中,负责对字节代码解释执行的是(  )。

  • A.垃圾回收器 
  • B.虚拟机
  • C.编译器 
  • D.多线程机制

在一个单链表中,若要删除P结点的后续结点,则执行(  )。

  • A.P↑.next:=P↑.next↑.next;
  • B.P:=P↑.next;P↑.next:=P↑.next↑.next;
  • C.free(P↑.next);
  • D.P:=P↑.next↑.next;
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服