网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
If a/b = 6/7 and a/c = 2/5, what is the value of 3b + c in terms of a?
A
12a
B
9a
C
8a
D
6a
E
4a
参考答案
参考解析
解析:
If a/b = 6/7, then 6b = 7a, so 3b = (7/2)a. If a/c = 2/5, then 2c = 5a, so c = (5/2)a.
Hence, 3b + c = (7/2)a + (5/2)a = (12/2)a = 6a
If a/b = 6/7, then 6b = 7a, so 3b = (7/2)a. If a/c = 2/5, then 2c = 5a, so c = (5/2)a.
Hence, 3b + c = (7/2)a + (5/2)a = (12/2)a = 6a
更多 “单选题If a/b = 6/7 and a/c = 2/5, what is the value of 3b + c in terms of a?A 12aB 9aC 8aD 6aE 4a” 相关考题
考题
有以下程序main(){ int i,t[][3]={9,8,7,6,5,4,3,2,1};for(i=0;i3;i++) printf(" % d",t[2-i][i]);}程序执行后的输出结果是A)7 5 3B)3 5 7C)3 6 9D)7 5 1
考题
1.publicclassSwitchTest{2.publicstaticvoidmain(String[]args){3.System.out.PrintIn(value=”+switchIt(4));4.}5.publicstaticintswitchIt(intx){6.intj=1;7.switch(x){8.case1:j++;9.case2:j++;10.case3:j++;11.case4:j++;12.case5:j++;13.default:j++;14.}15.returnj+x;16.}17.}Whatistheoutputfromline3?()A.Value=3B.Value=4C.Value=5D.Value=6E.Value=7F.Value=8
考题
气管分叉的位置相当于A.T10B.T4C.T12D.C7~T5E.T2~T6双侧乳头连线相当于A.T10B.T4C.T12D.C7~T5E.T2~T6胸骨柄上缘至剑突下平面相当于A.T10B.T4C.T12D.C7~T5E.T2~T6脐平面相当于A.T10B.T4C.T12D.C7~T5E.T2~T6两侧髂前上棘的连线相当于A.T10B.T4C.T12D.C7~T5E.T2~T6请帮忙给出每个问题的正确答案和分析,谢谢!
考题
1. public class Test { 2. public static void main (String args) { 3. unsigned byte b = 0; 4. b--; 5. 6. } 7. } What is the value of b at line 5?() A、 -1B、 255C、 127D、 Compilation will fail.E、 Compilation will succeed but the program will throw an exception at line 4.
考题
public class SwitchTest { public static void main(String[] args) { System.out.println(“value = “ + switchIt(4)); } public static int switchIt(int x) { int j = 1; switch (x) { case 1: j++; case 2: j++; case 3: j++; case 4: j++; case 5: j++; default: j++; } return j + x; } } What is the result?() A、 value = 3B、 value = 4C、 value = 5D、 value = 6E、 value = 7F、 value = 8
考题
public class Foo { public int a; public Foo() { a = 3; } public void addFive() { a += 5; } } and: public class Bar extends Foo { public int a; public Bar() { a = 8; } public void addFive() { this.a +=5; } } invoked with: Foo foo = new Bar(); foo.addFive(); System.out.println(”Value: “+ foo.a); What is the result?() A、 Value: 3B、 Value: 8C、 Value: 13D、 Compilation fails.E、 The code runs with no output.F、 An exception is thrown at runtime.
考题
单选题public class Foo { public int a; public Foo() { a = 3; } public void addFive() { a += 5; } } and: public class Bar extends Foo { public int a; public Bar() { a = 8; } public void addFive() { this.a +=5; } } invoked with: Foo foo = new Bar(); foo.addFive(); System.out.println(”Value: “+ foo.a); What is the result?()A
Value: 3B
Value: 8C
Value: 13D
Compilation fails.E
The code runs with no output.F
An exception is thrown at runtime.
考题
单选题If x is an integer and y=7x+11, what is the greatest value of x for which Y is less than 50?A
7B
6C
5D
4E
3
考题
单选题1. public class SimpleCalc { 2. public int value; 3. public void calculate() { value += 7; } 4. } And: 1. public class MultiCalc extends SimpleCalc { 2. public void calculate() { value -= 3; } 3. public void calculate(int multiplier) { 4. calculate(); 5. super.calculate(); 6. value *=multiplier; 7. } 8. public static void main(String[] args) { 9. MultiCalc calculator = new MultiCalc(); 10. calculator.calculate(2); 11. System.out.println(”Value is: “+ calculator.value); 12. } 13. } What is the result?()A
Value is: 8B
Compilation fails.C
Value is: 12D
Value is: -12E
The code runs with no output.F
An exception is thrown at runtime.
考题
单选题public class SwitchTest { public static void main (String args) { System.out.PrintIn(“value =” +switchIt(4)); } public static int switchIt(int x) { int j = 1; switch (x) { case 1: j++; case 2: j++; case 3: j++; case 4: j++; case 5: j++; default:j++; } return j + x; } } What is the output from line 3? ()A
Value = 3B
Value = 4C
Value = 5D
Value = 6E
Value = 7F
Value = 8
考题
单选题1. public class SwitchTest { 2. public static void main (String []args) { 3. System.out.PrintIn(“value =” +switchIt(4)); 4. } 5. public static int switchIt(int x) { 6. int j = 1; 7. switch (x) { 8. case 1: j++; 9. case 2: j++; 10. case 3: j++; 11. case 4: j++; 12. case 5: j++; 13. default:j++; 14. } 15. return j + x; 16. } 17. } What is the output from line 3?()A
Value = 3B
Value = 4C
Value = 5D
Value = 6E
Value = 7F
Value = 8
考题
填空题If t is a positive integer, and 18t is the cube of an integer, then what is the least possible value of t ?____
考题
单选题If a and b are positive integers such that (a-4)(b-5) = 0, what is the least possible value of a + b?A
5B
6C
8D
10E
11
考题
填空题If((6-3)r+4)/2= 13, what is the value of r?____
热门标签
最新试卷