The ORDERS table has these columns:ORDER_ID NUMBER(4) NOT NULLCUSTOMER_ID NUMBER(12) NOT NULLORDER_TOTAL NUMBER(10,2)The ORDERS table tracks the Order number, the order total, and the customer to whom the Order belongs.Which two statements retrieve orders with an inclusive total that ranges between 100.00 and 2000.00 dollars? ()
A. SELECT customer_id, order_id, order_total FROM orders RANGE ON order _ total (100 AND 2000) INCLUSIVE;
B. SELECT customer_id, order_id, order_total FROM orders HAVING order _ total BETWEEN 100 and 2000;
C. SELECT customer_id, order_id, order_total FROM orders WHERE order _ total BETWEEN 100 and 2000;
D. SELECT customer_id, order_id, order_total FROM orders WHERE order_total>= 100 and <= 2000;
E. SELECT customer_id, order_id, order_total FROM orders WHERE order_total>= 100 and order_total <= 2000;
第1题:
b)
main()
{
union{ /*定义一个联合*/
int i;
struct{ /*在联合中定义一个结构*/
char first;
char second;
}half;
}number;
number.i=0x4241; /*联合成员赋值*/
printf("%c%c\n", number.half.first,
mumber.half.second);
number.half.first='a'; /*联合中结构成员赋值
*/
number.half.second='b';
printf("%x\n", number.i);
getch();
}
AB (0x41 对应'A',是低位;Ox42 对应'B',
是高位)6261 (number.i 和number.half 共用一块地址空
间)
第2题:
第3题:
24、如果Number=7,下列命题为真。 If Number = 7, point out the truth or false of the following expressions. Sqrt(Number*Number ) == Int(Sqrt(Number*Number))
第4题:
阅读下面程序: import javax.swing.JOptionPane; public class Comparison { public static void main (Stringargs[]){ String firstNumber, //用户输入第1个数据变量 secondNumber, //用户输入第2个数据变量 result; //输出结果变量 mtnumberl, //用于比较的第1个数 number2; //用于比较的第2个数 //用户输入第1个数据的字符串 firstNumber=JOptionPane.showlnputDialog(“输入第1个整数:”) //用户输入第2个数据的字符串 secondNumber=JOptionPane。showlnputDialog(“输入第2个整数:”); //将字符串转换为整数类型 number1=Integer.parseInt(firstNumber); number2=Integer.parseInt(secondNumber); //初始化结果变量 _________________________; //比较两个数据 if(number1=number2) result+=numberl+"="+number2; if(number1 !=number2) resun+=numberl+"!="+number2; if(number1<number2) result=result+"\n"+number1+"<"+nunlber2; if(number1>number2) result=result+"\n"+numberl+">"+number2; if(numberl<=number2) result二reSUlt+”h1”+numberl+”仁”+number2; if(number1>=number2) result=result+"\n"+number1+">="+number2; //显示结果 JOpdonPane.showMessageDialog(null,rcsult, "比较结果", JOpdonPane.INFORMATION_MESSAGE; System,exIT(0); } } 为使程序能正确运行并得到合理的输出结果,初始化结果变量语句(下划线处)应是 ( )。
A.result=""
B.resnlt=null
C.resun=number1
D.result=number2
第5题:
如果Number=3,请指出下列语句的真与假。 If Number = 3, point out the truth and false of the following statements. Int(Number * Number) = Number * Number
第6题:
23、假定 number=4,下面哪个语句不会出错?
A.print(format(number, "2d"), format(number ** 1.5, "4d"))
B.print(format(number, "2d"), format(number ** 1.5, "4.2d"))
C.print(format(number, "2d"), format(number ** 1.5, "4.2f"))
D.print(format(number, "2f"), format(number ** 1.5, "4.2d"))