• 2021-04-14 问题

    【多选题】已知代码如下 class Rectangle { private int width, height; public void setSize(int width, int height) { this.width = width; this.height = height; } } 下面哪些代码重载 setSize 方法 (10.0分) A. protected void setSize(int width, int height) { this(width, height) } B. public void setSize(int width, float height) { this.width = width; this.height = (int)height; } C. protected void setSize(int width) { this.width = width; } D. public void setSize(int height, int width) { this.width = width; this.height = height; }

    【多选题】已知代码如下 class Rectangle { private int width, height; public void setSize(int width, int height) { this.width = width; this.height = height; } } 下面哪些代码重载 setSize 方法 (10.0分) A. protected void setSize(int width, int height) { this(width, height) } B. public void setSize(int width, float height) { this.width = width; this.height = (int)height; } C. protected void setSize(int width) { this.width = width; } D. public void setSize(int height, int width) { this.width = width; this.height = height; }

  • 2022-05-31 问题

    中国大学MOOC: 已知:class Rectangle { private int width, height; public void setSize(int width, int height) { this.width = width; this.height = height; }}下面哪些代码重载 setSize 方法

    中国大学MOOC: 已知:class Rectangle { private int width, height; public void setSize(int width, int height) { this.width = width; this.height = height; }}下面哪些代码重载 setSize 方法

  • 2022-05-31 问题

    阅读下列程序,写出程序运行的结果:class Cube{int width;int height;int depth;Cube(int x,int y,int z){this.width=x;this.height=y;this.depth=z;}public int vol(){return width*height*depth;}}public class UseCube {public static void main(String[] args) {Cube a=new Cube(3,4,5);System.out.println("长度="+a. width);System.out.println("体积="+a.vol());}}

    阅读下列程序,写出程序运行的结果:class Cube{int width;int height;int depth;Cube(int x,int y,int z){this.width=x;this.height=y;this.depth=z;}public int vol(){return width*height*depth;}}public class UseCube {public static void main(String[] args) {Cube a=new Cube(3,4,5);System.out.println("长度="+a. width);System.out.println("体积="+a.vol());}}

  • 2022-06-07 问题

    以下id选择器书写正确的是() A: *div{width:100%;} B: text{width;100%;} C: #div{width:100%;} D: #class{width:100%;}

    以下id选择器书写正确的是() A: *div{width:100%;} B: text{width;100%;} C: #div{width:100%;} D: #class{width:100%;}

  • 2022-06-01 问题

    下列哪些是正确的声明变量的方式? A: int length; int width; B: int length, width; C: int length; width; D: int length, int width;

    下列哪些是正确的声明变量的方式? A: int length; int width; B: int length, width; C: int length; width; D: int length, int width;

  • 2021-04-14 问题

    @keyframes myfirst{ 0%{width:20px;} 100%{width:300px;} } 和 @keyframes myfirst{ from{width:20px;} to{width:300px;} } 以上两段代码的涵义和作用是一样的吗?

    @keyframes myfirst{ 0%{width:20px;} 100%{width:300px;} } 和 @keyframes myfirst{ from{width:20px;} to{width:300px;} } 以上两段代码的涵义和作用是一样的吗?

  • 2022-06-11 问题

    响应式布局中处理图片缩放的最佳方法是( )。 A: img { width: auto; max-width: 100%; } B: img{width:100%} C: img{width:auto;} D: img{width:npx}

    响应式布局中处理图片缩放的最佳方法是( )。 A: img { width: auto; max-width: 100%; } B: img{width:100%} C: img{width:auto;} D: img{width:npx}

  • 2022-06-03 问题

    页面中的div元素的width属性如何设置,才能在页面大小发生变化时,div元素距离页面两边都有10%的外边距? A: width : 100% ; B: width : 90% ; C: width : 80% ; D: width : 50% ;

    页面中的div元素的width属性如何设置,才能在页面大小发生变化时,div元素距离页面两边都有10%的外边距? A: width : 100% ; B: width : 90% ; C: width : 80% ; D: width : 50% ;

  • 2021-04-14 问题

    【单选题】inline类型的元素()。 A. height能设定、 width不能设定 B. height不能设定、 width能设定 C. height、 width都能设定 D. height、 width都不能设定

    【单选题】inline类型的元素()。 A. height能设定、 width不能设定 B. height不能设定、 width能设定 C. height、 width都能设定 D. height、 width都不能设定

  • 2022-06-03 问题

    The new bridge is ______ the one built last year. A: three times width of B: three times that of C: three times the width D: three times the width of

    The new bridge is ______ the one built last year. A: three times width of B: three times that of C: three times the width D: three times the width of

  • 1 2 3 4 5 6 7 8 9 10