单选题When the average of a list of course grades is multiplied by the number of courses, the result is n. What does n represent?A Half the number of coursesB Half the sum of course gradesC The number of coursesD The average of the course gradesE The sum of

题目
单选题
When the average of a list of course grades is multiplied by the number of courses, the result is n. What does n represent?
A

Half the number of courses

B

Half the sum of course grades

C

The number of courses

D

The average of the course grades

E

The sum of the course grades

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

The “rudder adjustment” control on an autopilot steering stand is used to ______.

A.align the rudder angle indicator with the true rudder angle

B.set the number of degrees of rudder per degree of course error

C.set the departure from base course before actuating the rudder

D.set the rate at which the rudder responds


正确答案:B
自动舵上“舵角调节”开关被用来调整每一度航向误差的度数。

第2题:

阅读下面程序

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


正确答案:A
解析:本程序是让用户输入两个数,然后对这两个数进行比较,最后输出比较结果。根据题目中的提示,下画线处的语句所完成的操作就是初始化result变量。因为result是一个字符串型变量,初始化就是要为其赋予一个字符型常量。选项B中的null不是字符串型数据。选项C和选项D均为整型数据,也不是字符串型数据。所以答案为A。

第3题:

SUM(number1,number2,....)是()函数。

A、反差

B、求和

C、逻辑

D、乘积


正确答案:B

第4题:

EIGRP has been configured to operate over Frame Relay multipoint connections. What should the bandwidth command be set to?()

  • A、the CIR rate of the lowest speed connection multiplied by the num ber of circuits
  • B、the CIR rate of the lowest speed connection
  • C、the CIR rate of the highest speed connection
  • D、the sum of all the CIRs divided by the number of connections

正确答案:A

第5题:

EIGRP has been configured to opera te over Frame Relay multipoint connections. What should the bandwidth command be set to?()

A. the CIR rate of the lowest speed connection multiplied by the number of circuits

B. the CIR rate of the lowest speed connection

C. the CIR rate of the highest s peed connection

D. the sum of all the CIRs divided by the number of connections


参考答案:A

第6题:

阅读下面程序

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


正确答案:A
解析:题目中的代码段比较长,因此首先要看懂代码所完成的功能,然后再进行选择。这段代码的功能是让用户输入两个数,然后比较这两个数,最后输出比较结果。程序开始生成三个字符串变量和两个数值型变量,然后要求用户根据屏幕上显示的提示信息输入数据。由于读取进来的原始数据是字符串,而程序所要的是数值型数据,因此调用Integer类的parseInt()方法进行转换。后面就对两个数进行比较,并把最后要输出的比较结果放到字符串变量result中。
  根据题目当中的提示,下划线处的语句所完成的操作就是初始化result变量。因为 result是一个字符串类型的变量,初始化这种类型的变量是要给它赋一个字符串常量。所以,选项B是错的,null根本就不是字符串类型的数据。另外,由于result中存放的是比较结果,而不是用户输入的数据,因此不能把number1或number2的值作为 result的初始值。因此,选项C和D也是不对的。选项A当中的””是一个空串,虽然这个字符串中不包含任何字符,但它是一个字符串常量。
  因此,本题的正确答案是A。

第7题:

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 共用一块地址空
间)

第8题:

SUM(number 1, number 2, ……)是_____函数。

A.方差

B.求和

C.逻辑

D.乘积


答案:B

第9题:

Zhang Jun's teacher suggests that he take a(n)__________language course to improve his English.

A.intermediate
B.middle
C.medium
D.average

答案:A
解析:
考查近义词辨析。intermediate“中等程度的,中级的”,侧重难易程度;middle“中间的”,侧重方位和时间;medium“中等的,中号的(尺寸、数量、规模等)”,average“平均的;普通的,一般的”。根据旬意可知,张军的老师建议他参加一门中级水平的语言课程来提高他的英语水平。故选A。

第10题:

EIGRP has been configured to opera te over Frame Relay multipoint connections. What should the bandwidth command be set to?()

  • A、the CIR rate of the lowest speed connection multiplied by the number of circuits
  • B、the CIR rate of the lowest speed connection
  • C、the CIR rate of the highest s peed connection
  • D、the sum of all the CIRs divided by the number of connections

正确答案:A

更多相关问题