如果Number=3,判断下列命题的真假。 If Number = 3, judge the truth of the following propositions. (Number*Number)>=(2*Number)
第1题:
下列程序的输出结果是【 】。
include<iostream. h>
class MyClass
{
public:
int number;
void set(int i);
};
int number=3;
void MyClass: :set (int i)
{
number=i;
}
void main( )
{
MyClass my1;
int number=10;
my1.set(5),
cout<<my1, number<<',';
my1.set(number);
cout<<my1.number<<',';
my1.set(: :number);
cout<<my1.number<<'.';
}
第2题:
阅读下面程序
import javax.swing.JOptionPane;
public class Comparison{
public static void main(String args[]){
String firstNumber, //用户输入第1个数据变量
second Number, //用户输入第2个数据变量
result; //输出结果变量
int number1, //用于比较的第1个数
number2; //用于比较的第2个数
//用户输入第1个数据的字符串
firstNumber=JOptionPane. showInputDialog(“输入第1个整数:”);
//用户输入第2个数据的字符串
secondNumber=JOptionPane.showlnputDialog(“输入第2个整数:”);
//将字符串转换为整数类型
number1=Integer.parseInt(firstNumber);
number2=Integer.parseInt(secondNumber);
//初始化结果变量
___________________;
//比较两个数据
if(number1=number2)
result += number1 +" =" + number2;
if(number1 != number2 )
result += numberl +" !=" + number2;
if( number1 < number2 )
result = result + "\n" + numberl +" <" + number2;
if(number1 > number2 )
result = result + "\n" + number1 + ">" + number2;
if( number1 <= number2 )
result = result + "\n" + number1 +" <=" + number2;
if (number1 >= number2 )
result = result + "\n" + number1 + ">=" + number2;
//显示结果
JOptionPane.showMessageDialog(null,result," 比较结果",
JOptionPane. INFORMATION_MESSAGE);
System.exit(0);
}
}
为使程序能正确运行并得到合理的输出结果,初始化结果变量语句(下划线处)应是
A.result = ""
B.result = null
C.result = number1
D.result = number2
第3题:
下列程序的运行结果是( )。 public class Sun { public static void main(String args[ ]) { int number,digits; number=53; if(number<10) digits=1; else if(number<100) digits=2; else digits=3; System.out.println(digits); } }
A.1
B.2
C.3
D.0
第4题:
Which of the following represents the significance the fuel oil cetane number?
A.The cetane number has no affect on injection lag
B.The cetane number is an indication of the fuel's viscosity
C.Ignition lag is reduced with fuels having a high cetane number
D.The cetane number is of little significance in the combustion process
第5题:
定义如下枚举类型:enum Number{one=1,tow=2,four=4,eight=8},则下列语句正确的是( )。
A.Number num=1;
B.Number num=Number(20);
C.Number num=Number(eight|OxFF);
D.枚举类型Number的取值范围是0~15
第6题:
在MSCserver中,Event reporting的哪个event number记录的是关于M3UA层的问题?()
第7题:
Which of the following is STP BEST identified by under the cable sheath?()
第8题:
Which of the following is the primary consideration to scale VPNs?()
第9题:
Which of the following describes how to calculate the amount of storage in a RAID 5 array?()
第10题:
Number of drives X capacity of the smallest drive
(Number of drives 2) X capacity of the smallest drive
Number of drives X capacity of the largest drive
(Number of drives 1) X capacity of the smallest drive
第11题:
The cetane number affects the amount of injection lag
The cetane number is an indication of the fuels viscosity
Ignition lag is reduced with fuels having a high cetane number
The cetane number is of little significance in the combustion process
第12题:
Chart Number only
Chart Number + Previous NM Number/Year
Chart Number + Between Previous and Present Dates
Cumulative Number
第13题:
阅读以下说明和Java代码,将应填入(n)处的语句写在对应栏内。
【说明】
进行两个整数之间的比较,由考生通过输入窗口分别输入两个整数,程序比较出结果。例如:先后输入的两个数分别为25和36。
比较结果显示:
25!=36
25<36
25<=36
【Java代码】
import javax.swing.JOptionPane;
public class Java3
{
public static void main(String args[])
{
String (1) // 用户输入第1个字符串
secondNumber, // 用户输入第2个字符串
result; // 包含输出
int number1, // 比较的第1个数
number2; // 比较的第2个数
// 用户输入的第1个字符串
firstNumber =
JOptionPane. (2) ("Enter first integer:");
//读用户输入的第2个字符串
secondNumber =
JOptionPane.showlnputDialog("Enter second integer:");
将字符串类型转换成整数类型
number1= Integer. (3) (firstNumber);
number2= Integer.parselnt(secondNumber);
result= "":
if ((4))
result=number1+"=="+number2;
if (number1 != number2)
result=number1+"!="+number2;
if (number1<number2)
result=result+"\n"+number1+"<"+ number2;
if (number1>number2)
result=result+"\n"+number1+">"+number2;
if (number1<=number2)
result=result+"\n"+number1+"<="+number2;
if (numbed>=number2)
result=result+"\n"+number1+">="+number2;
//显示结果
JOptionPane.(5).(
null, result, "Comparison Results",
JOptionPane. INFORMATION_MESSAGE);
//程序正常退出
System.exit(0);
}
}
第14题:
阅读下面程序
import javax.swing.JOptionPane;
public class Comparison {
public static void main(String args[]) {
String firstNumber, //用户输入第1个数据变量
secondNumber, //用户输入第2个数据变量
result; //输出结果变量
int number1, //用于比较的第1个数
number2; //用于比较的第2个数
//用户输入第1个数据的字符串
firstNuinber=JOptionPane.showInputDialog("输入第1个整数:");
//用户输入第2个数据的字符串
secondNumber=JOptionPane.showInputDialog("输入第2个整数:");
//将字符串转换为整数类型
number1=Integer.parseInt(firstNumber);
number2=Integer.parseInt(secondNumber);
//初始化结果变量
______
//比较两个数据
if(number1==number2)result+=number1+"=="+number2;
if(number1! =number2) result+=number1+"!="+number2;
if(number1<number2) result=result+"\n"+number1+"<"+number2;
if(number1>number2) result=result+"\n"+number1+">"+number2;
if(number1<=number2) result=result+"\n"+number1+"<="+number2;
if(number1>=number2) result=result+"\n"+number1+">="+number2:
//显示结果
JOptionPane.showMessageDialog(null,result."比较结果",
JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
为使程序能正确运行并得到合理的输出结果,初始化结果变量语句(下画线处)应是
A.result=" ";
B.result=null
C.result=number1
D.result=number2
第15题:
定义如下枚举类型:enum Number{one=l,tow=2,four=4,eight=8},则下列语句正确的是( )。
A.Number num=1;
B.Number num=Number(20);
C.Number num=Number(eight|0xFF);
D.枚举类型Number的取值范围是0~15
第16题:
定义如下枚举类型:enum Number{one=1,two=2,four=4,eight=8),则下列语句正确的是( )。
A.Number num=1;
B.Numbernum=Number(20);
C.Number num=Number(eight│OxFF);
D.枚举类型Number的取值范围是0~15
第17题:
第18题:
A Channel ID mismatch occurs when ().
第19题:
Which of the following describes how to calculate the amount of storage in a RAID 5 array?()
第20题:
What is the typical number of trunks in a Call Center?()
第21题:
第22题:
5:8
3:4
3:5
2:3
1:3
第23题:
the forward boat on the starboard side
behind boat number 1 on the port side
behind boat number 1 on the starboard side
behind boat number 2 on the port side
第24题:
The cetane number has no affect on injection lag
The cetane number is an indication of the fuel’s viscosity
Ignition lag is reduced with fuels having a high cetane number
The cetane number is of little significance in the combustion