易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

Which method is an appropriate way to determine the cosine of 42 degrees?()  

A、 Double d = Math.cos(42);

B、 Double d = Math.cosine(42);

C、 Double d = Math.cos(Math.toRadians(42));

D、 Double d = Math.cos(Math.toDegrees(42));

E、 Double d = Math.cosine(Math.toRadians(42));

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?()   public class SmallProg {   public static void main(String args[])  { System.out.println("Good luck!"); }  }  

    A、java SmallProg

    B、avac SmallProg

    C、javac SmallProg.java

    D、java SmallProg main

  • package foo;  public class Outer (   public static class Inner (   )   )   Which statement is true?()  

    A、 An instance of the Inner class can be constructed with “new Outer.Inner()”

    B、 An instance of the inner class cannot be constructed outside of package foo.

    C、 An instance of the inner class can only be constructed from within the outer class.

    D、 From within the package bar, an instance of the inner class can be constructed with “new inner()”

  • 一个B类网络的子网掩码为255.255.192.0,则这个网络被划分成了(52)个子网。

    A.2

    B.4

    C.6

    D.8

  • class A {   public byte getNumber () {   return 1;   }   }   class B extends A {   public short getNumber() {   return 2;   }    public static void main (String args) {   B b = new B ();    System.out.printIn(b.getNumber())  }   }   What is the result?()  

    A、 Compilation succeeds and 1 is printed.

    B、 Compilation succeeds and 2 is printed.

    C、 An error at line 8 causes compilation to fail.

    D、 An error at line 14 causes compilation to fail.

    E、 Compilation succeeds but an exception is thrown at line 14.

  • 11. public enum Title {  12. MR(”Mr.”), MRS(”Mrs.”), MS(”Ms.”);  13. private final String title;  14. private Title(String t) { title = t; }  15. public String format(String last, String first) {  16. return title + “ “ + first + “ “ + last;  17. }  18. }  19. public static void main(String[] args) {  20. System.out.println(Title.MR.format(”Doe”, “John”));  21. }  What is the result?() 

    A、 Mr. John Doe

    B、 An exception is thrown at runtime.

    C、 Compilation fails because of an error in line 12.

    D、 Compilation fails because of an error in line 15.

    E、 Compilation fails because of an error in line 20.

联系客服 会员中心
TOP